单选题What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?()A  cut -d: -f 1,3 /etc/passwdB  chop -c 1,3 /etc/passwdC  tac 1-3/etc/passwdD  fmt -u /etc/passwd

题目
单选题
What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?()
A

 cut -d: -f 1,3 /etc/passwd

B

 chop -c 1,3 /etc/passwd

C

 tac 1-3/etc/passwd

D

 fmt -u /etc/passwd

参考答案和解析
正确答案: A
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

计算当前Linux系统中所有用户的数量,可以使用什么命令()

A、wc-l/etc/passwd

B、wc-l

C、cat/etc/passwd|wc-l

D、cat/etc/passwd>wc-l


答案:ABC

第2题:

在UNIX中保存用户信息的文件是()。

A./etc/password

B./etc/passwd

C./dev/password

D./dev/passwd


参考答案:B

第3题:

如何显示Linux系统中注册的用户数(包含系统用户)()。

A.account-l

B.nl/etc/passwd|head

C.wc--users/etc/passwd

D.wc--lines/etc/passwd


正确答案:D

第4题:

UNIX操作系统的帐号管理和权限分配主要是通过哪三个文件管理来实现()。

  • A、/etc/passwd,/etc/profile和/etc/group
  • B、/etc/group,/etc/profile和/etc/shadow
  • C、/etc/group,/etc/shadow和/etc/passwd

正确答案:C

第5题:

AIX中下面哪个文件包含了对用户密码的设置信息()。

  • A、/etc/passwd
  • B、/etc/security/passwd
  • C、/etc/security/environ
  • D、/etc/security/user

正确答案:D

第6题:

Whichfilesaremanagedthroughtheuseofthefilecollection"HACMP_Files"?()

A.ThePowerHAGlobalODM.

B.Systemnetworkingfilesincluding/etc/hosts,/etc/inetd.confand/etc/services

C.Securityfilesincluding/etc/passwd,/etc/security/passwd,/etc/groupand/etc/security/group

D.UserconfigurablefilesincludingApplicationserverstartandstopscripts,custompreandpostnotificationeventsandapplicationmonitoringscripts


参考答案:D

第7题:

linux系统中,显示文件/etc/passwd文件的5-8行,下面的命令正确的是()。

  • A、head -8 /etc/passwd
  • B、tail -8 /etc/passwd
  • C、more -8 /etc/passwd
  • D、less -8 /etc/passwd

正确答案:A

第8题:

Whatcommandwillprintalistofusernames(firstcolumn)andtheircorrespondinguserid(uid,thirdcolumn)from/etc/passwd?()

A.cut-d:-f1,3/etc/passwd

B.chop-c1,3/etc/passwd

C.tac1-3/etc/passwd

D.fmt-u/etc/passwd


参考答案:A

第9题:

下面()文件中包含用户id(uid),工作目录,和登录后的shell信息。

  • A、/etc/security/passwd
  • B、/etc/security/user
  • C、/etc/security/environ
  • D、/etc/passwd

正确答案:D

第10题:

以下哪个vi命令可以在当前位置插入/etc/passwd文本文件()。

  • A、:r/etc/passwd
  • B、:i/etc/passwd
  • C、:w/etc/passwd
  • D、:s/etc/passwd

正确答案:A

更多相关问题