Lab 4

Lab 4 Description

In this lab we will test the following commands:

a. chmod
b. su
c. sudo
d. chown
e. passwd
f. ps
g. kill
h. printenv

chmod

The “chmod” command in Linux will change the mode or permissions of a file or directory.

 

chown

The “chown” command in Linux is used to change the owner of a file.

kill

The “kill” command in Linux it used to display the currently running processes on Linux systems.

passwd

The “passwd” command in Linux is used to change the password on a system.

ps

The “ps” command in Linux is used to view a snapshot of the processes.

su

The “su” command in Linux allows to log in as another user in the system.

sudo

The “sudo” command allows you to execute commands as a different user, usually a superuser in a controlled way.

ps

The “printenv” command in Linux will displays a list of the environment variables.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply

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