Linux ssh qwsd@10.96.45.3 确定后 弹出框输入密码 qwsd 完成登入。 mkdir test 新建目录 touch test.txt 新建文件 mkdir -p a/b/c 创建一系列文件 cat 文件名 more 文件名 less 文件名 tail -f 文件名 动态查看文件 tail -10 文件名 文件最后10行 ctrl+l清屏 clear cp 文件 目录 mv 文件 目录/文件名 rm -f 文件 不带询问删除文件 rm -r 文件 待询问删除文件夹 rm ./* 删除当前目录下 -h 友好显示 tar -cvf test.tar ./* 打包当前文件 tar -cvzf test.tar.gz ./* 打包并压缩当前文件 tar -xvf test.tar解压到当前目录 tar -xvzf test.tar.gz -C b 解压到b目录 pwd wget http://www.baidu.com vi / vim 文件名 i 进入编辑 esc 退出 :q保存 yy 复制一行 dd 删除一行 i在当前光标所在处插入 o 在当前光标处所在的下一行插入 a在当前所在的下一个字符插入 > 输出定向 >> 输出并且追加 mkdir -p aa/bb && cd aa/bb ps -ef | grep 3306 date -s “” df -h kill 2868 kill -9 2868 ps -ef = top ifconfig 网卡名 down/up 禁用 启用网卡 ping ip netstat -an | grep 3306 useradd tom passwd tom userdel -r tom su – tom groupadd love useradd jack -g love groupdel love d当前用户权限 r w x 组权限 r w x其他用户的权限 r w x chmod 755 a.txt 变更文件或者目录的权限 chown tom:tom 1.txt 变更文件或目录所属用户和组 chown -R tom:tom aa 将某个目录以及以下的目录文件全部付给某个用户