题库 软件开发 题目列表 关于取出/etc/passwd中root用户的uid(第3字段)和gid...
单选题

关于取出/etc/passwd中root用户的uid(第3字段)和gid(第4字段),下面正确的是(  )

A.

awk –P: ‘/^root/{print $3,$4}’ /etc/passwd

B.

awk -F: ‘/^root/{print $3,$4}’ /etc/passwd

C.

awk -P: ‘/^root/~{print $3,$4}’ /etc/passwd

D.

awk -F: ‘/^root/~{print $3,$4}’ /etc/passwd

题目信息
校招真题
-
正确率
0
评论
18
点击