...
ls directory/file-name(s) : list contents of directory
Here are some of the most useful options of the 'ls' command:
-a | list all files including invisible files (starting with '.') | |
-l | long list - shows ownership, permission, and links | |
-h | list size in human readable format (k-, M-, GBytes) | |
-t | list files chronologically | |
-r | reverse order of listing | |
-d | do not display directory contents but only the directory itself | |
-S | list in order of size (helps to find the largest files) |
...
Understand the "long list (-l)" output:
Example:
...
See 'chmod' below about how to change the permissions.
Change Directory
cd : to change to your home directory
cd directory-name : to change to another directory
cd - : to change back to the previous directory
...