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 |
No comments:
Post a Comment
Your comment may wait for moderation....