标签:sspi nec game host linu cpu rss user fish
终端分为 tty1-tty7
tty1-tty6是设备终端
tty7是桌面用户的终端
ps -a ——列出当前用户信息
sailfish@DESKTOP-GSV91L5:~$ ps -a PID TTY TIME CMD 4 tty1 00:00:00 bash 5031 pts/0 00:00:00 ps
ps -au——详细信息
sailfish@DESKTOP-GSV91L5:~$ ps -au USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 3 0.0 0.0 8304 92 tty1 Ss 09:22 0:00 /init ro sailfish 4 0.0 0.0 17048 3712 tty1 S 09:22 0:00 -bash sailfish 5014 0.0 0.0 16784 3424 pts/0 Ss 10:03 0:00 -bash sailfish 5032 0.0 0.0 17380 1912 pts/0 R 10:11 0:00 ps -au
PID——启动程序的进程ID
tty——终端
ps -aux——查看没有终端的程序
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 8304 132 ? Ss 09:22 0:00 /init ro root 3 0.0 0.0 8304 92 tty1 Ss 09:22 0:00 /init ro sailfish 4 0.0 0.0 17048 3712 tty1 S 09:22 0:00 -bash root 4940 0.0 0.0 19464 948 ? Ss 10:03 0:00 /usr/sbin/sshd root 4943 0.0 0.0 20228 4128 ? Ss 10:03 0:00 sshd: sailfish [pr sailfish 5013 0.0 0.0 20496 2124 ? R 10:03 0:00 sshd: sailfish@pts sailfish 5014 0.0 0.0 16784 3424 pts/0 Ss 10:03 0:00 -bash sailfish 5033 0.0 0.0 17648 2040 pts/0 R 10:13 0:00 ps -aux
kil 指令
kill -9 进程id
kill -SIGKILL 进程id
查看当前进程的环境变量——env
sailfish@DESKTOP-GSV91L5:~$ SSH_CONNECTION=192.168.0.105 50466 192.168.0.105 22 LESSCLOSE=/usr/bin/lesspipe %s %s LANG=C.UTF-8 DISPLAY=localhost:10.0 USER=sailfish PWD=/home/sailfish HOME=/home/sailfish SSH_CLIENT=192.168.0.105 50466 22 XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop SSH_TTY=/dev/pts/0 MAIL=/var/mail/sailfish TERM=xterm SHELL=/bin/bash SHLVL=1 LOGNAME=sailfish PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin LESSOPEN=| /usr/bin/lesspipe %s _=/usr/bin/env
env | grep PATH
sailfish@DESKTOP-GSV91L5:~$ env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PATH key:vual
top 动态查看用户进程
标签:sspi nec game host linu cpu rss user fish
原文地址:https://www.cnblogs.com/sailifsh-lyh/p/10807611.html