在debian中终止进程-“;sh:/usr/bin/p$:未找到;
我刚刚通过shell登录到服务器,因为ssh拒绝了我的访问。似乎有一个过程在持续运行并产生以下结果-在debian中终止进程-“;sh:/usr/bin/p$:未找到;,debian,Debian,我刚刚通过shell登录到服务器,因为ssh拒绝了我的访问。似乎有一个过程在持续运行并产生以下结果- sh: /usr/bin/p$: not found sh: /usr/bin/p$: not found sh: /usr/bin/p$: not found sh: /usr/bin/p$: not found 有没有办法阻止这一切 pstree和更详细的“pstree-cpa”提供了整个系统中子进程关系的一个非常好的快照 捕捉短生命周期的进程是很困难的,但是如果您捕捉到了它,pstree
sh: /usr/bin/p$: not found
sh: /usr/bin/p$: not found
sh: /usr/bin/p$: not found
sh: /usr/bin/p$: not found
有没有办法阻止这一切 pstree和更详细的“pstree-cpa”提供了整个系统中子进程关系的一个非常好的快照 捕捉短生命周期的进程是很困难的,但是如果您捕捉到了它,pstree将显示启动该进程的内容 pstree输出示例:
pstree
init─┬─acpid
├─atd
├─avahi-daemon───avahi-daemon
├─bluetoothd
├─bonobo-activati───2*[{bonobo-activat}]
├─chrome─┬─chrome───{chrome}
│ ├─chrome
│ └─21*[{chrome}]
├─chrome─┬─2*[chrome───4*[{chrome}]]
│ └─nacl_helper_boo
├─console-kit-dae───64*[{console-kit-da}]
├─cron
├─cupsd
├─2*[dbus-daemon]
├─dbus-launch
├─dhclient
├─dnsmasq
├─gconfd-2
├─gdm-binary─┬─gdm-simple-slav─┬─Xorg
│ │ ├─gdm-session-wor─┬─gnome-session─┬─applet.+
│ │ │ │ ├─bluetoo+
│ │ │ │ ├─gdu-not+
│ │ │ │ ├─gnome-p+
│ │ │ │ ├─gnome-p+
│ │ │ │ ├─metacit+
│ │ │ │ ├─mintupd+
│ │ │ │ ├─nautilu+
│ │ │ │ ├─polkit-+
│ │ │ │ ├─ssh-age+
│ │ │ │ ├─wicd-cl+
│ │ │ │ ├─zeitgei+
│ │ │ │ └─2*[{gno+
│ │ │ └─{gdm-session-wo}
│ │ └─{gdm-simple-sla}
│ └─{gdm-binary}
├─6*[getty]
├─gnome-keyring-d───5*[{gnome-keyring-}]
├─gnome-screensav───{gnome-screensa}
├─gnome-settings-───{gnome-settings}
├─gvfs-afc-volume───{gvfs-afc-volum}
├─gvfs-fuse-daemo───3*[{gvfs-fuse-daem}]
├─gvfs-gdu-volume
├─gvfs-gphoto2-vo
├─gvfsd
├─gvfsd-burn
├─gvfsd-metadata
├─gvfsd-trash
├─indicator-apple───2*[{indicator-appl}]
├─indicator-appli───{indicator-appl}
├─indicator-sound───2*[{indicator-soun}]
├─irqbalance
├─libvirtd───6*[{libvirtd}]
├─mintmenu─┬─gnome-terminal─┬─bash───pstree
│ │ ├─gnome-pty-helpe
│ │ └─2*[{gnome-terminal}]
│ └─2*[{mintmenu}]
├─named───4*[{named}]
├─nmbd
├─notify-osd───{notify-osd}
├─polkitd───{polkitd}
├─pulseaudio─┬─gconf-helper───{gconf-helper}
│ └─2*[{pulseaudio}]
├─rsyslogd───2*[{rsyslogd}]
├─rtkit-daemon───2*[{rtkit-daemon}]
├─smbd───smbd
├─syndaemon
├─udevd───2*[udevd]
├─udisks-daemon─┬─udisks-daemon
│ └─2*[{udisks-daemon}]
├─upowerd───{upowerd}
├─upstart-socket-
├─upstart-udev-br
├─wicd───wicd-monitor
├─wnck-applet───{wnck-applet}
├─wpa_supplicant
└─zeitgeist-daemo─┬─cat
├─zeitgeist-datah
└─{zeitgeist-daem}
添加选项-cpa
pstree-cpa
通过提供每个进程的详细信息、用于终止的进程编号以及启动进程时指定的任何选项来更改显示您还可以对包含
/usr/bin/p$
的脚本进行暴力搜索,例如:
find /*bin/ /usr/*bin/ /usr/local/*bin/ /etc/cron.*/ /etc/init.d/ -type f -exec egrep -l '^\/usr\/bin\/p\$' \{\} \;
如果失败了,还有更残忍的事情:
find / -type f -exec egrep -l '^\/usr\/bin\/p\$' \{\} \;
使用killall
要终止进程,可以使用:
kill
或
killall
您可以通过执行ps-aux
:)---Olivr3000看起来像是在运行一个buggy Bash脚本。执行“ps awx”并查看是否有任何可能的罪犯,例如“some_script.sh”