ls
(display list of files and sub directories in current directory)
linux command flags for "ls"
- -a list all files including hidden files starting with '.'
- -d list directories with '*/'
- -l list with long format (show permissions)
- -F append indicator (one of */=>@|) to entries
- -lh show file sizes
- -r list in reverse order
- -i list file index number (aka inode number)
- -ltr view reverse output order by date
- -t sort by time and date
- -n print group id and owner id instead of file name
- -m list of entries separated by commas, fill the width of screen
- -g allows you to exclude the owner and group information columns
- -q force printing of non graphic characters in file names as the character '?'
- -Q place double quotations around entry names
back