5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 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"'`
5
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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?