adspace
What are the commands in UNIX to list the files in a Directory?
Answer Posted / 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 View All Answers