.gobump img{ border: 5px solid #ccc; float: left; margin: 15px; -webkit-transition: margin 0.5s ease-out; -moz-transition: margin 0.5s ease-out; -o-transition: margin 0.5s ease-out; border-radius: 5px 5px 5px 5px; } .gobump img:hover { margin-top: 2px; }

twitter

Thursday, June 25, 2009

Listing the Contents of a Directory in Linux

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

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 

Categories