The is command is used to display the names of the files and sub-directories in a directory.
Example
[ Steve@localhost Steve ] $ 1s /home/Steve
DEADJOE X baseball comm tennis
Desktop a.out basketball program.cc
[ Steve@localhost Steve ] $ _
In the above example , all the files and directories under the directory named Steve are listed. If the files and directories under the current directory are to be listed, it is optional to specify the directory name with 1s.
In the above output, you are shown the file names but not the types of files. The -1 option, when used with 1s displays a detailed list of files and directories
Thursday, June 25, 2009
Listing the Contents of a Directory in Linux
1:43 AM
raj
Posted in: Listing the Contents of a Directory in Linux