VI,VIM
快速复制粘贴 yy之后 p
删除 dd
撤销 u 复原 ctrl+r
q:离开 q!:不保存退出 wq!保存后强制离开
st nu 显示行号
常用指令
ps -ef 查看当前进程 top 动态查看当前进程
netstat 查看监听的端口
打包 tar -zcvf 解压 tar -zxvf 解压到指定目录 tar -zxvf a.tar.gz -C /opt
chkconfig --list 查看服务
rpm -eq | grep xx 查看已安装的rpm
rpm -e firefox删除软件包 带上 --nodeps强制删除
rpm -ivh firefox 安装软件包
yum list | grep xx 查看yum库的软件包
yum install xx 安装软件包
定时任务步骤
1.编写脚本
2. crontab -e 编写定时指令
crontab -r 终止任务 crontab -l列出所有任务 service crond restart重启任务调度