Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
david.wurm
/
InternetServicesBook
réplica de
https://github.com/trimstray/the-book-of-secret-knowledge
Seguir
1
Destacar
0
Fork
0
Código
Lanzamientos
0
Actividad
Explorar el Código
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
hace 5 años
padre
f42515078a
commit
985714befd
Se han
modificado 1 ficheros
con
6 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+6
-0
README.md
+ 6
- 0
README.md
Ver fichero
@@ -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)
Escribir
Vista previa
Cargando…
Cancelar
Guardar