Linux CLI 19 ๐ง su and sudo commands
su โ is used to switch to another user
su - โ switches to superuser/root
su -l โ switches to superuser/root
exit โ exits from the user
su -l username โ switches to a specific user
-c option โ executes one command with the privileges of another user
su -c 'ls /bin' โ executes the command for root user
sudo stands for superuser do
a normal user can run commands with root/admin privileges
sudo ls /bin โ lists the contents of bin directory
sudo -l โ lists what privileges are granted
sudo nano /etc/sudoers โ to add, remove users that can use sudo command
username ALL=(ALL:ALL) ALL โ use this template to add new user, replace username with the users username
sudo systemctl daemon-reload โ to reload sudoers file and apply changes
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!