Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
david.wurm
/
InternetServicesBook
espelho de
https://github.com/trimstray/the-book-of-secret-knowledge
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Lançamentos
0
Trabalho
Ver a proveniência
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
há 5 anos
ascendente
f42515078a
cometimento
985714befd
1 ficheiros alterados
com
6 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+6
-0
README.md
+ 6
- 0
README.md
Ver ficheiro
@@ -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)
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar