Horje
ubuntu know username Code Example
ubuntu know username
whoami
or
echo $USER
ubuntu know username
echo $USER
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]




Shell

Related
wsl home folder location Code Example wsl home folder location Code Example
AppImage Code Example AppImage Code Example
git config color Code Example git config color Code Example
batch write to text file Code Example batch write to text file Code Example
bash make recursive directory Code Example bash make recursive directory Code Example

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