Useful Commands

A

B

C

cat {filename} – Displays the content of a file.

cd {directory(folder) name} – Changes direcotry (folder).

cd .. – Moves to the parent directory at the top of the directory tree.

cp {filename} – Makes a copy of a file.

clear – Clears the terminal screen.

D

date – Displays the date and time,

E

F

G

H

I

J

K

L

ls – Displays the contents of the current directory.
ls -l – Displays a detailed list of the contents of the current directory.

M

man {command} – Displays the manual page for the command.
mv {filename} {directory} – Moves the file to the new location (directory).
mkdir {directory name} – Creates a new directory.

N

nano – Opens the nano text editor.
nano {filename} – Opens the chosen file in the nano text editor.

O

P

pwd – Shows the current directory you are working in.

Q

R

rm {filename} – Deletes the chosen file.

S

T

U

V

W

X

Y

Z