Lab 4

Commands in Linux

chmod command

Changes the mode of a file.

chmod

su command

Switches the current user to another.

su

sudo command

Allows for execution of commands as a different user such as a superuser.

sudo

chown command

Changes the owner of a file.

chown

passwd command

Changes user passwords but normal users can only change their own.

passwd

ps command

This takes a snapshot of the current running programs and displays the PID’s.

ps

kill command

This kills a process identified by its PID.

kill

printenv command

This displays the current environmental factors.

printenv

Leave a Reply

Your email address will not be published. Required fields are marked *