I want to create a script to check whether a user exists. I am using the logic below:
# getent passwd test > /dev/null 2&>1 # echo $? 0 # getent pa
Late answer but finger also shows more information on user
finger
sudo apt-get finger finger "$username"