Google News
logo
Unix - Quiz(MCQ)
Which command is used for listing files in a directory?
A)
ps
B)
ls
C)
wc
D)
list

Correct Answer :   ls


Explanation : ls command is one of the most powerful commands used in UNIX system. It comes available with a bunch of options for listing files available in the directory. There are a number of options like -l, -a which are used for listing files in different manners according to user’s need.

$ ls
001.sh        
FILE2       
abc.txt
dir08​

Advertisement