Posts which you will also like.

Showing posts with label Basic Linux commands. Show all posts
Showing posts with label Basic Linux commands. Show all posts

Wednesday, December 1, 2010

Basic UNIX/LINUX commands:ls command

Some of the most frequently used commands in Linux are:
1.ls: This command is used for directory listing.It is same as dir command in MSDOS.
Switches used with this command are:
COMMAND SWITCH RESULT
ls -a displays all file name including those beginning with a dot
ls -d .* Only filenames beginning with a dot
ls / lists the contents of the root directory
ls -l prints long listing with description of permissions,links,ownership,size etc
ls /dir filenames inside dir
ls -d /dir only shows the description of dir not its content
ls -R recursive file list
ls -t Filenames sorted by last modification time
ls -u Filenames sorted by last access time
ls -i inode number
ls -ltr sorts listing chronologically form older to newer
Read More ->>
DMCA.com Protected by Copyscape Online Plagiarism Tool