sh2.sh
来自「几个linux试验的脚本编程」· Shell 代码 · 共 25 行
SH
25 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?