このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
david.wurm
/
InternetServicesBook
ミラー元
https://github.com/trimstray/the-book-of-secret-knowledge
ウォッチ
1
スター
0
フォーク
0
コード
リリース
0
アクティビティ
ソースを参照
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
5年前
親
f42515078a
コミット
985714befd
1個のファイルの変更
、
6行の追加
、
0行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+6
-0
README.md
+ 6
- 0
README.md
ファイルの表示
@@ -1227,6 +1227,12 @@ ___
who -b
```
###### Detect a user sudo-su'd into the current shell
```
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
```
___
##### Tool: [screen](https://en.wikipedia.org/wiki/GNU_Screen)
書き込み
プレビュー
読み込み中…
キャンセル
保存