What are the options under ls command in linux?In: Linux |
Some of the more important options are:
- -a - show all files (do not hide files starting with .)
- -h - human readable (e.g., show file size as 2K instead of 2048)
- -l - long listing format (show much more information about each file)
The options can be combined. For example "ls -lha".
[Note: I often need a long listing of all files with the most recently modified file(s) at the end of the listing so I frequently use the command:
ls -latr
to accomplish this task. JHM]
|
|
|
First answer by Avir. Last edit by John.m.horn. Contributor trust: 12 [recommend contributor]. Question popularity: 14 [recommend question]
|
Research your answer: |
Can you answer other questions about linux?
|
|


