Change Directory
cd [directory]
List files in a directory
ls [directory]
List hidden files in a directory
ls -a [directory]
Long Listing Format
ls -l
This will show file permissions (r)ead, (w)rite and e(x)ectute for owner, group and everyone else. The owner and group. File in size in bytes. When it was last modified. And the file/ directory name.
Remove a File
rm [file]
Remove a Directory
rm -r [directory]
-r means recursive. It is needed if the directory contains files or other folders.
Move a File or Directory
mv [source] [destination]
Make a Directory
mkdir [directory]
mkdir -p [path/to/directory]
-p will create folders if they don’t exist.
Editing a File with Nano
Nano is an easy to use text editor. It isn’t always installed.
nano [file]
To save exit Ctrl-s Ctrl-x