Horje
ubuntu change user Code Example
ubuntu change user
su -l [user]
change user linux
sudo su - username
ubuntu know username
echo $USER
how to change users in ubunut terminal
first --
sudo su 
then --
su username
change username ubuntu
# -l changes login name
# -d changes home directory
# -m copies over contents from old home directory
usermod -l <newname> -d /home/<newname> -m <oldname>

# NOTE: will not work if you are currently logged on as user
# - workaround by temporarily enabling root account and running above command there
# [sudo passwd root] 
# - after root account has been used to change username lock it using
# [sudo passwd -l root]
change ubuntu username
# To manage every aspect of the user database, you use the usermod tool.
# To change username (it is probably best to do this without being logged in):

sudo usermod -l newUsername oldUsername
# This however, doesn't rename the home folder.
# To change home-folder, use

sudo usermod -d /home/newHomeDir -m newUsername




Shell

Related
ubuntu download yasm Code Example ubuntu download yasm Code Example
ubuntu play on linux install Code Example ubuntu play on linux install Code Example
docker exec as root Code Example docker exec as root Code Example
SSH for gitlab in ubuntu steps Code Example SSH for gitlab in ubuntu steps Code Example
copy content file from terminal Code Example copy content file from terminal Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12