LoginSignup
4
1

More than 3 years have passed since last update.

vscode remoteのよく分からんプロセスをkillする

Last updated at Posted at 2019-07-24

vscode remoteは便利だがリモートサーバーによく分からんプロレスが乱立してしまうので、雑に消す。

対象はvscodeを含むものとsleep infinity

kill_vscode_process.sh
thisfile=`basename $0`
kill -9 `ps -FHU ${USER} | grep "vscode\|sleep infinity" | grep -v "grep\|${thisfile}" | perl -ane 'print $F[1], "\n"'`
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1