Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
david.wurm
/
InternetServicesBook
miroir de
https://github.com/trimstray/the-book-of-secret-knowledge
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Versions
0
Activité
Parcourir la source
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
il y a 5 ans
Parent
f42515078a
révision
985714befd
1 fichiers modifiés
avec
6 ajouts
et
0 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+6
-0
README.md
+ 6
- 0
README.md
Voir le fichier
@@ -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)
Écrire
Aperçu
Chargement…
Annuler
Enregistrer