vim /etc/ssh/sshd_config ##編輯容許登錄的配置文件linux
systemctl rstart sshd ##重起sshd服務vim
PermitRootLogin no ##不容許root用戶被遠程登錄ssh
Allowusers linux westos ##容許那個用戶能夠被訪問ide
壓縮命令 壓縮參數 壓縮後文件名 待壓縮的文件名(路徑)ip
tar -cf etc.tar /etc/ ##建立etc.tar壓縮文件,原文件爲/etc/ create fileget
tar -xf etc.tar ##解壓縮etc.tar文件 it
tar -rf etc.tar file ##把file文件添加到etc.tar壓縮文件中 readd file class
tar -f etc.tar --get file ##僅僅把壓縮文件中的file文件解壓縮出來配置
tar f etc.tar --delete file ##僅僅刪掉壓縮文件中的file文件file
du -sh /etc/ ##查看文件大小
gzip etc.tar ##壓縮
gunzip etc.tar.gz ##解壓縮
bzip2 etc.tar##壓縮
bunzip2 etc.tar.bz2##解壓縮
xz etc.ta##壓縮r
unxz etc.tar.xz##解壓縮
zip -r etc.tar.zip etc.tar ##壓縮
unzip etc.tar.zip##解壓縮
rsync -rp /mnt root@172.25.14.11:/mnt/
cp -p
scp -r /etc/ root@172.25.14.11:/mnt/
ctl + 左右鍵 ##跳到另外一個單詞首部