常用Linux命令

来源:互联网 发布:知乎评论发布失败 编辑:程序博客网 时间:2024/05/17 07:09


查看任务:crontab -l
编辑任务:crontab -e
查看定时任务日志:tail -f /var/log/cron

yum install lrzsz //安装szrz

nohup ./rsync_mysql_ChannelROI.sh > log_docmd_rsync_mysql_ChannelROI.log 2>&1 //后台运行
tail -f log_docmd_rsync_mysql_xf_all_truncate.log |grep -v ERROR        //执行脚本
grep -v ERROR log_docmd_rsync_mysql_xf_all_truncate.log
tail -f log_docmd_rsync_mysql_xfADDS_all.log //输出日志
java -jar xxxx.jar    //执行jar文件


换到这个账号:su lhelper
查看分盘情况:df -h
修改权限:-rw-r--r-- 读4写2执行1。当前用户/users/其他用户
例:chmod 744 rsync_mysql_esfBSideLogin.sh
将文件权限转换成指定用户:sudo chown -R lhelper:users jobs

cd - 返回上次所在的目录

0 0
原创粉丝点击