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’.