上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页
摘要: 1、ps aux|grep lookbusy 2、ps -ef|grep lookbusy|grep -v grep|cut -c 9-15 3、ps -ef|grep lookbusy|grep -v grep|cut -c 9-15|xargs kill -9 ps aux 以用户的格式显示所有 阅读全文
posted @ 2022-07-28 16:18 LB_运维技术 阅读(230) 评论(0) 推荐(0)
摘要: # ll -i1 第一列数字即该乱码文件夹的额inode号 # find -inum inode号 |xargs -i mv {} 新文件或者文件夹名 # find -inum inode号 |xargs -i rm -rf {} 重命名该文件或者文件夹如果乱码中有带数字或者带字母的可以,可以匹配删 阅读全文
posted @ 2022-07-28 16:16 LB_运维技术 阅读(580) 评论(0) 推荐(0)
摘要: 注意:目录要求 /etc :目录和目录的内容 /etc/:只有目录的内容 cp -r /etc /tmp cp -r /etc/ /tmp/ 本地模式: cp rm 例如:# rsync /etc/hosts /tmp/ 隧道模式: 例如:# rsync -avz -e "ssh -p22" /et 阅读全文
posted @ 2022-07-28 16:14 LB_运维技术 阅读(416) 评论(0) 推荐(0)
摘要: 放在~/.bashrc文件中 # vim ~/.bashrc PS1='\[\e[1;32m\][\[\e[0m\]\t \[\e[1;33m\]\u\[\e[36m\]@\h\[\e[1;31m\] \W\[\e[1;32m\]]\[\e[0m\]\$ ' # source ~/.bashrc # 阅读全文
posted @ 2022-07-28 16:11 LB_运维技术 阅读(48) 评论(0) 推荐(0)
摘要: 不要直接删除该文件,而是通过将文件 truncate 的方式,释放磁盘空间。 [root@libin3 ~]# find /proc/*/fd -ls | grep '(deleted)'(1)cat /dev/null > ${filename} (2): > ${filename} 阅读全文
posted @ 2022-07-28 16:10 LB_运维技术 阅读(784) 评论(0) 推荐(0)
摘要: root@jernymy-desktop:~$ cd 桌面 root@jernymy-desktop:~/桌面$ ln -s /mnt/hgfs/ 阅读全文
posted @ 2022-07-28 16:09 LB_运维技术 阅读(133) 评论(0) 推荐(0)
摘要: 定时任务(cronie 软件名称) crond (服务名称 进程名称) # crontab -l #查看定时任务脚本 (1)检查进程: ps -ef 、ps aux(更加详细 cpu 内存使用率) # ps -ef | grep crond | grep -v grep | wc -l # ps - 阅读全文
posted @ 2022-07-28 16:04 LB_运维技术 阅读(127) 评论(0) 推荐(0)
摘要: 格式: # date +%F #年-月-日 # date +%Y-%m-%d #年-月-日 # date +%T #小时-分钟-秒 # date +%H:%M:%S #小时:分钟:秒 # date +%Y%m%d_%w_%H #%w:周期,%H:小时;格式为:年月日_周几_小时 -d:根据描述显示日 阅读全文
posted @ 2022-07-28 15:55 LB_运维技术 阅读(78) 评论(0) 推荐(0)
摘要: mtime(modify time) 修改时间 ctime (change time) 文件属性变化时间 atime(access time) 文件访问时间 阅读全文
posted @ 2022-07-28 15:53 LB_运维技术 阅读(50) 评论(0) 推荐(0)
摘要: (-d:删除 -c:取反 -cd:除了什么都删除) 例如1: # cat redhat.txt 12333 12333 # tr '123' 'abc' <redhat.txt #只会改变输出的内容 # tr -cd 'a-zA-Z0-9' </dev/urandom # tr -cd 'a-zA- 阅读全文
posted @ 2022-07-28 15:47 LB_运维技术 阅读(77) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页