Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get username linux

echo $USER;
Comment

users list linux

cut -d: -f1 /etc/passwd
or
cat /etc/passwd
Comment

get users linux

$ cat /etc/passwd | cut -d: -f1
Comment

how to see users logged in linux

who -H
Comment

get users shell

getent passwd $LOGNAME | cut -d: -f7
Comment

linux list users

cut -d: -f1 /etc/passwdCopy
Comment

how to see users logged in linux

# See who is logged in and what they are running
ps au
Comment

PREVIOUS NEXT
Code Example
Shell :: hibernate in windows 
Shell :: install packages from jupyter notebook 
Shell :: webgl server apache 
Shell :: error during global initialization mongodb 
Shell :: ubuntu service start example 
Shell :: my shell bash scripting practice 
Shell :: how to install pip2 in kali linux 2021 
Shell :: linux umount command 
Shell :: bash for each line of file 
Shell :: How to find information about my RAM on linux 
Shell :: list only directories in linux 
Shell :: powershell run bat file 
Shell :: how to install pandoc 
Shell :: how to undo a commit sent that was pushed 
Shell :: No package mongodb-org available. 
Shell :: linux speed up video 
Shell :: apt lock 
Shell :: remove a package ubuntu 
Shell :: git view differences between commits 
Shell :: bash array initialization multiple lines 
Shell :: set executable permissions linux 
Shell :: git ignore except 
Shell :: ghost in the shell 1995 
Shell :: git push with gpg key 
Shell :: pip2 install 
Shell :: configuring git ssh keys 
Shell :: do not install puppeteer 
Shell :: export docker container 
Shell :: ubuntu all installed services 
Shell :: install latest angular cli 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =