sudo rm-r-F Delete Folder
PWD Displays the current directory
Ls-a Show all hidden files or folders
Cat Display file contents
Touch Create File
RM Delete File
PWD Current Working directory
CD (without parameters) into root
CD (folder) access to folders
Cd.. Parent Directory
cd ~ Back to Root
CD-Returns the last visited directory
RM File name Delete
Cat file name (|less) to view files under Terminal
LS lists all files in the directory
CP file name destination directory copy files to target directory
~ stands for root such as: ~/document/cpp2/
Mkdiv new Folder
g++ source file name compile source files, generate a.out
./file name run for example:./a.out < input file name > output file name
Control+d Interrupt a.out operation
Nano scripting language Ctrl+o storage
Nano .... SH Open
Bash .... SH Run script
echo "... $i ..." Output statement
TAR-ZXF abc.tar.gz tar file extract
SSH [email protected] Remotely connect 222 servers to the root account
Unrar x abc.rar rar file decompression, need to install RAR tool
Tips for Mac terminal use