What are the commands in UNIX to list the files in a Directory?



What are the commands in UNIX to list the files in a Directory?..

Answer / Sanjay Kumar Piporiya

The ls command is used to list the files and directories in a UNIX directory. To display hidden files as well, you can use the -a option (ls -a). To sort the files alphabetically, use the -S or -l options (ls -l or ls -S).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?

6 Answers   Deloitte, Polaris,


How do I search for text in vi?

1 Answers  


What is the first character of the output in ls l command?

1 Answers  


Write a grep (or grep) command that selects the lines from a file that have exactly three characters.

24 Answers   Mac, Nokia,


how to change a normal file into hidden file

3 Answers  


in unix echo is used for

10 Answers   BFL, BirlaSoft, Patni,


How do you change file permissions and ownership in Unix?

2 Answers  


how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


What do know about tee command and its usage?

1 Answers  


How to know a process is a zombie or orphan process?

3 Answers   Perot Systems,


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1 Answers  


Write a command to kill the last background job?

1 Answers  


Categories