Du-sh * Query all file sizes in this directory rm-rf/root/* delete all files in this directory df-h disk size Create directory: mkdir create file touch with "cp-r" recursive copy yum install lrzsz sz download RZ upload
History Command Query/etc/init.d/nginx reload use the following command to create an account that specifies the home directory/alidata/www/wwwroot for the user pwftp, and you can define the account name and directory yourself: #useradd- D/alidata/www/wwwroot-s/sbin/nologin pwftp Modify the account password: #passwd pwftp Modify permissions for the specified directory #chown-r pwftp.pwftp/alidata/www/wwwroot . zip Decompression: Unzip Filename.zip compression: Zip filename.zip Dirname.tar unpacking: Tar xvf Filename.tar package: Tar cvf filename.tar DirName copy locally to remote scp/home/daisy/full.tar.gz [Email Protected]:/home/root (then you will be prompted to enter the password for the root user of the other 172.19.2.75 host, and then the copy is started), Copy directory plus parameter-r to copy from remote to local
SCP [Email protected]/172.19.2.75:/home/root/full.tar.gz/home/daisy/full.tar.gz
View a port
Netstat-an|grep:22
Log paging display
Less file name
Linux Common commands