KandZ – Tuts

We like to help…!

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!

Leave a Reply