Professional Documents
Culture Documents
Practical No:-3.
Aim:- Work with multiple Linux terminals and basic commands.
Course Outcomes:
Use operating system tools to perform various actions
Practical Outcomes:
Work with multiple Linux terminals and basic commands: who, who am i,
login, passwd, su, pwd.
Resources Used:
Output:
Practical Related Questions:
1. Give command for present working directory.
$pwd
Output:
2. State currently login users by command.
There are two commands to show the currently login users are as follows:
who command : Display information about Linux users who are
currently logged in
whoami command : Find out who you are currently logged in as on
Linux
Output:
3. Acquire the status of super user.
There are two ways to become the super user.
1. The first is to log in as root directly.
2. The second way is to execute the command su while logged in to
another user account.
The super user, or root, is a special user account used for system
administration purpose on Linux.
Any user can acquire super user status with the su command with the roots
password. Administrator (super user) privileges are: Change the contents or
attributes of any file, like its permissions and ownership. He can delete any
file with rm even if it is write-protected! Initiate or kill any process.
Exercise:
1. Acquire the status of super user.
To acquire the status of super user following command should be
executed.
$ su along with the root password.
Output:
2. Write output for following commands
i. $who;clear;who am i
Output:
ii. $who;tty;date
Output: