■Copy between two machines:
scp srcFile destUser @ destIP: destDir
■Login from one machine to another
■View a certain progress information
ps -ef | grip processName
■Copy files in the machine
cp srcFile destFile
copy folder
cp srcDir -r srcDir
■Empty the contents of a file
ehco "" > fileName
■ zip package
zip zipFilename.zip -r srcDir
■Unzip the zip package
unzip srcZIP -d destDir
■Tar package
tar czvf xx.tar.gz file/dir
■Decompression
tar xzvf /tmp/etc.tar.gz
■Give maximum permissions to paths or files
chmod -R 777 xxxxxx
■Give executable permission to a path or file
chmod +x xxxxxxx
■Install rpm
rpm -ivh xxx.rpm
rpm -ivh --force xxx.rpm (force installation)
■Uninstall rpm
rpm -e xxx.rpm
■View environment variables
vim /etc/profile
■Enable environment variables
source /etc/profile
■Change time
date -s 14:36:00 (change time only)
date -s "2008-08-08 12:00:00" (date and time are changed)
■Find files
find / -iname "*.txt" (i ignore case, name by name)