Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
david.wurm
/
InternetServicesBook
peilaus alkaen
https://github.com/trimstray/the-book-of-secret-knowledge
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Julkaisut
0
Toiminta
Selaa lähdekoodia
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
5 vuotta sitten
vanhempi
f42515078a
commit
985714befd
1 muutettua tiedostoa
jossa
6 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
README.md
+ 6
- 0
README.md
Näytä tiedosto
@@ -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)
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna