Common CentOS Commands #安装中文输入法yum install "@Chinese support" #安装zip解压工具yum install zip unzip #tail命令tail-F/xxx.log #启动openofficecd /openoffice/programsoffice-headless-accept= "SOCKET,HOST=127.0.0.1,PORT=8100;URP;"-nofirststartwizard & # PS Lookup Process Ps-ef | grep Javaps-ef | grep tomcat# parameter-e displays all processes, environment variable-F full format-H does not display title-L long Format-W-wide output A shows all processes on terminal, including other user processes R only shows running process x shows no control terminal process #kill结束进程kill-9 [ PID] #zip unzip compression decompression zip./test.zip./dir./file.html# to compress the dir directory and file.html files into Test.zipunzip./dir.zip-d./testdir # SCP Remote Replication
scp-r [Email Protected]:/remote/path/local/path
Copy the/remote/path file to the/local/path directory of this host #将远程linux主机上
Scp-r/local/path [Email Protected]:/remote/path
#将本主机的/local/path directory Copy to/remote/path file on a remote Linux host #ssh命令ssh [email protected]#输入登录密码exit # exit the current connection
Linux Common commands