How I use ls on Linux
When I run ls, I run it as ls -lAhog:
- lsays to put each file or folder on its own line
- Asays to list all files – hidden files, backups, etc. – but omit the current directory (- .) and the parent directory (- ..)
- hsays to use human readable file sizes –- 1.5Ginstead of- 1628688384
- gsays to omit the user
- osays to omit the group
Occasionally I use the -R parameter, which lists folders and subfolders recursively.