Following commands are often used when we use Unix/Linux systems
If you would like to learn how to use a command, use the "man" command before googling;-), for e.g.
man [command]
List directory contents
ls [file]
Return working directory name
pwd
Make directories
mkdir [dir1] [dir2] ...
Change directory
cd [dir]
Default (no argument): change directory to home (equivalent to cd ~ or cd $HOME)
Copy files
cp [file1] [file2]
Move files
mv [file1] [file2] mv [file] [dir] mv [file1] [file2] ... [dir]
Remove directory entries
rm [file1] [file2] ...
Remove directories
rmdir [directory]
Manipulate tape archives Extract files from an archive
tar xf [tar file]
Extract files from a compressed (gzip'd) archive
tar zxf [tgz (or tar.gz) file]
or
gzip -c [tgz (or tar.gz) file] | tar xvf -
Create an archive
tar cf [tar file] [file1] [file2] ...
Create a compressed (gzip'd) archive
tar cf - [file1] [file2] ... | gzip -c > [tar.gz (tgz) file]
or
tar zcf [tgz (tar.gz) file] [file1] [file2] ...
Secure copy (remote file copy program)
Copy files to a remote host
scp [file1] [file2] ... [userID]@[remote host]:[remote directory]
Copy files in a remote host to a local host
scp [userID]@[remote host]:[remote directory]/[file] [local directory]
A text editor (usages)
A text editor
Force to terminate a command
Ctrl+c
Current directory
.
Upper directory
..
Home directory
~
or
$HOME