In Lab 4, I will show how the following commands operate:
chmod
TheĀ chmodĀ command is use to change the mode or permission of a file or directory.
su
TheĀ suĀ is the command that allows you to log in as another user.
sudo
TheĀ sudoĀ command allows you to execute command Ā as a different user. usually a superuser in a controlled way.
chown
TheĀ chownĀ command is use to change the owner of a file.
passwd
TheĀ passwdĀ is the command use to change the password of the account logged in.
ps
TheĀ psĀ command is use to view a snapshot of the processes currently running in the system.
kill
TheĀ killĀ command is use to terminate a specific process in the system that is currently running.
printenv
The commandĀ printenvĀ is use to display a list of the environment variable.