Posts by Carlos Carvalho • 16 points
1 post
-
0
votes1
answer87
viewsA: How can I find the user on Ubuntu (Shell/Bash)
The correct script can be run this way, preferably as root #!/bin/bash erro="Utilizador não encontrado" echo "Qual o utilizador que pretende encontrar?" read user if [ `cat /etc/passwd | cut -d \:…