2021-08-01から1ヶ月間の記事一覧

プロセスを grep するときに grep プロセス自身を結果から除外する Tip とその理屈

プロセスの grep を業務柄よくやるのですが, grep 自身のプロセスが引っかかるのがきれいじゃなくて気になっていました*1。 (↓の grep --color=auto sshd の部分) kangetsu@ubuntu18:~ $ ps auxf | grep sshd root 641 0.0 0.3 72308 6324 ? Ss 01:27 0:00 /…