InterviewSolution
Saved Bookmarks
| 1. |
What command is used to list files or folders in alphabetical order in UNIX? |
|
Answer» By USING the LS command, you can list down the current DIRECTORY’s content LIKE files and folders. With no arguments and no options, ls displays a list of all files in the current working directory: Examples:
Output cache db empty games lock log mail opt spool tmpFiles are arranged in alphabetical order across as many columns as your terminal can accommodate.
Output drwxr-xr-x 6 linuxer USERS 1824 Jun 9 16:46 sabon-rw------- 1 linuxer users 1064 Oct 28 14:35 music-rw------- 6 linuxer users 5119 Apr 28 16:00 splus2-rw-r--r-- 3 linuxer users 9853 Dec 27 11:14 ssh_known-rw-r--r-- 1 linuxer users 4231 Apr 21 15:23 swlist.out-rw-r--r-- 1 linuxer users 94031 Sep 14 16:07 tarnti.zip |
|