01 2023 档案

shell - scriptfifo
摘要:shell1: mkfifo xxfifo script -f xxfifo cmd cmd exit 主动退出 shell2: cat xxfifo 可以看到shell1的所有操作。 但是shell2感觉会卡,有延时。 阅读全文

posted @ 2023-01-11 16:22 爱新觉罗玄烨 阅读(33) 评论(0) 推荐(0)

shell - scriptreplay timing.log output.session
摘要:script -t 2> timing.log -a output.session cmd cmd cmd exit scriptreplay timing.log output.session 就会播放之前的cmd过程 如果中间不exit,就会循环播放 阅读全文

posted @ 2023-01-11 16:06 爱新觉罗玄烨 阅读(26) 评论(0) 推荐(0)

查看linux 用户
摘要:sudo cat /etc/passwd|grep -v nologin|grep -v halt|grep -v shutdown|awk -F":" '{ print $1}' | xargs sudo quota -s -u cat /etc/passwd 可以查看所有用户的列表w 可以查看当 阅读全文

posted @ 2023-01-04 11:09 爱新觉罗玄烨 阅读(54) 评论(0) 推荐(0)

导航