what is the command 'ls' used for?


       ls – list directory contents.
   
       Format ls [options] file

       Eg1: ls –a /data1

       List also the hidden files in directory data1

       Eg1: ls /data1

       Here it list the contents of the directory data1

       Eg2: ls –l /etc

       Here it displays the information about the files in the directory ‘etc’

       Eg3: ls –ld /etc

       Here it displays the information about the directory ‘etc’.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...

'mv' command in linux

       mv – renames and move files     Format mv...

Powered by WHMCompleteSolution