Skip to content

Instantly share code, notes, and snippets.

@JQL
Last active August 25, 2018 10:47
Show Gist options
  • Save JQL/9d00e9cc99dfe124a805f9f891ab7ec1 to your computer and use it in GitHub Desktop.
Save JQL/9d00e9cc99dfe124a805f9f891ab7ec1 to your computer and use it in GitHub Desktop.
How to list files in the Linux (BASH) Terminal
The "ls Command
How to list files in Terminal
COMMANDS & LINKS:
ls : list current directory
ls -l : list current directory using the "long" format
ls -a : list all the files, including hidden files, in the current directory
ls -al : list all the files, including hidden files, in the current directory using the "long" format
ls -Al : list all the files, including hidden files, in the current directory using the "long" fomat but omitting the . and ..
ls -alh : list all the files, including hidden files, in the current directory using the "long" format with human readable file sizes
ls -C : list the files in the current directory multiple columns (this is the default)
ls -F : list the files in the current directory showing the type - directory, file etc.
ls -l /var: list the files in the "var" directory in "long" format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment