Renz7/一些技巧

Created Mon, 04 Dec 2023 15:43:10 +0000 Modified Mon, 04 Dec 2023 15:45:48 +0000
489 Words

一些技巧

查看进程参数

# pid
ps -ef |grep python
# 133
ls -l /proc/133

####
total 0
-r--r--r--  1 root root 0 Dec  4 15:36 arch_status
dr-xr-xr-x  2 root root 0 Dec  4 15:36 attr
-rw-r--r--  1 root root 0 Dec  4 15:36 autogroup
-r--------  1 root root 0 Dec  4 15:36 auxv
-r--r--r--  1 root root 0 Dec  4 15:07 cgroup
--w-------  1 root root 0 Dec  4 15:36 clear_refs
-r--r--r--  1 root root 0 Dec  4 15:13 cmdline
-rw-r--r--  1 root root 0 Dec  4 15:36 comm
-rw-r--r--  1 root root 0 Dec  4 15:07 coredump_filter
-r--r--r--  1 root root 0 Dec  4 15:36 cpuset
lrwxrwxrwx  1 root root 0 Dec  4 15:36 cwd -> /usr/ums-service/ums-pulsar-consumer
-r--------  1 root root 0 Dec  4 15:36 environ
lrwxrwxrwx  1 root root 0 Dec  4 15:07 exe -> /usr/local/jdk17/bin/java
dr-x------  2 root root 0 Dec  4 15:36 fd
dr-x------  2 root root 0 Dec  4 15:36 fdinfo
-rw-r--r--  1 root root 0 Dec  4 15:36 gid_map
-r--------  1 root root 0 Dec  4 15:36 io
-r--r--r--  1 root root 0 Dec  4 15:36 limits
-rw-r--r--  1 root root 0 Dec  4 15:36 loginuid
dr-x------  2 root root 0 Dec  4 15:36 map_files
-r--r--r--  1 root root 0 Dec  4 15:36 maps
-rw-------  1 root root 0 Dec  4 15:36 mem
-r--r--r--  1 root root 0 Dec  4 15:07 mountinfo
-r--r--r--  1 root root 0 Dec  4 15:36 mounts
-r--------  1 root root 0 Dec  4 15:36 mountstats
dr-xr-xr-x 64 root root 0 Dec  4 15:07 net
dr-x--x--x  2 root root 0 Dec  4 15:36 ns
-r--r--r--  1 root root 0 Dec  4 15:36 numa_maps
-rw-r--r--  1 root root 0 Dec  4 15:36 oom_adj
-r--r--r--  1 root root 0 Dec  4 15:36 oom_score
-rw-r--r--  1 root root 0 Dec  4 15:36 oom_score_adj
-r--------  1 root root 0 Dec  4 15:36 pagemap
-r--------  1 root root 0 Dec  4 15:36 personality
-rw-r--r--  1 root root 0 Dec  4 15:36 projid_map
lrwxrwxrwx  1 root root 0 Dec  4 15:34 root -> /
-rw-r--r--  1 root root 0 Dec  4 15:36 sched
-r--r--r--  1 root root 0 Dec  4 15:36 schedstat
-r--r--r--  1 root root 0 Dec  4 15:36 sessionid
-rw-r--r--  1 root root 0 Dec  4 15:36 setgroups
-r--r--r--  1 root root 0 Dec  4 15:36 smaps
-r--r--r--  1 root root 0 Dec  4 15:36 smaps_rollup
-r--------  1 root root 0 Dec  4 15:36 stack
-r--r--r--  1 root root 0 Dec  4 15:07 stat
-r--r--r--  1 root root 0 Dec  4 15:36 statm
-r--r--r--  1 root root 0 Dec  4 15:13 status
-r--------  1 root root 0 Dec  4 15:36 syscall
dr-xr-xr-x 84 root root 0 Dec  4 15:36 task
-r--r--r--  1 root root 0 Dec  4 15:36 timers
-rw-rw-rw-  1 root root 0 Dec  4 15:36 timerslack_ns
-rw-r--r--  1 root root 0 Dec  4 15:36 uid_map
-r--r--r--  1 root root 0 Dec  4 15:36 wchan