Which option is used with ls to display attributes of the directory ?

Answer: c
Explanation: ls command when used with directory name as an argument, lists all the files in the directory. To force ls to list the attributes of the directory we use the -ld option.
Code:
$ ls  -ld 
drwxr-xr-x     5 george   users   4096  Sep 25  08:30 go
drwx------      3 george   users   4096  Sep 27  10:49 irc
drwxr-xr-x    2 george   users   32768 Oct  4   09:15 logs
drwxr-xr-x    8 george   users   4096   Oct  2   17:13 src
 

Tìm kiếm

Back
Top