Lists the contents of the current working directory
(pwd - "Print Working Directory" To see the current working directory)
ls -a
List all files including the files with Dot prefix
ls -l
List name of files with details like permission,date time (created/modified)
Commands can be combined
Say you want to list all files with details you type
ls -a -l or ls -al
This joining can be only done for Short options
for long options like -all you cannot join to options
(example ls -al)
Long and short options can be mixed.
ls --all -l
No comments:
Post a Comment