📄 sh2.sh
字号:
#!/bin/bashecho -e "type in the user name: \c"read userifgrep $user /etc/passwd>>/tmp/nullthenecho ""elseecho "$user do not exist in the system."exitfiifwho | grep $user>>/tmp/nullthenwrite $user<<reyhello!reyecho "USERNAME PID COMMAND"ps -aux | grep $user | awk '{print $1," ",$2," ",$11}' | moreelsemail $user<<oohello!oofi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -