0% found this document useful (0 votes)
33 views17 pages

Osy Final Output PDF

Uploaded by

OmPatil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views17 pages

Osy Final Output PDF

Uploaded by

OmPatil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Pracrical 3

PROGRAM CODE :

List down with all options for who commands and write its description. Note: Write terminal's
output in Result Section.
RESULT :
EXERCISE :

1) Acquire the status of super user.


2) output for following commands
i) $who;clear;whoami

ii) $who;tty;date Write


Practical 4

PROGRAM CODE :

Check all permissions started on your system. Stop the services which are not required for
long time.

We execute following commands on ubuntu operating system:

1) Sudo systemctl stop ufw


2) Sudo systemctl start ufw
3) Sudo systemctl restart ufw
4) Pwd
5) Cd

RESULT :

1) cd

2) pwd
3) Sudo systemctl stop ufw
4) Sudo systemctl start ufw
5. Sudo systemctl restart ufw
Practical 5

PROGRAM CODE :

 $ ps

 $ sleep 10

 $ kill

$ wait

 $ exit
EXERCISE :

1) Observe the output of following commands $sleep 30; date


$echo $$

Ans.

2) Display full listing of all processes running on your terminal.

Ans.

3) Write output of following command.


$sleep 60; banner GOOD

Ans.
Practical 6

PROGRAM CODE :

1) Create three files a1,a2,a3.

Ans.

2) Apply different commands like :


1)ls 2)mv 3)cp 4)rm 5)join 6)split

Ans.

 ls

 mv
 cp

 rm

 join

 split
EXERCISE:
1) Write output of following commands :
 Display all files names which starts with’ a’ and ends with ‘y’

 Enlist all the files beginning with m and ending with any range of 1 to 5.

 Show the contents of files whose file names contains exactly two characters.

 Create a file ABCD.txt, create a copy with XXX.txt. Rename the original file with
AACD.txt. Delete the file XXX.txt.

 Display the inodes of any two files at the same time.


2) Create two files chapter1 and chapter2 by asking the user before overwrite.
 Copy contents of chapter1 and chapter2 by asking the user before overwrite.

 Display inodes of two files.


i.

 Rename the file chapter1 to Lessson1

3) Execute the following commands:


 $ls a*n

 $ls s?
 $cat abc>>xyz
Practical 7
PROGRAM CODE :
1) Execute File and Directory Manipulation commands.
 mkdir

 cd

 rmdir

 pwd
EXERCISE :

1. Write the commands for performing the following tasks sequentially


 Display your current directory

 Create a directory subjects in current directory

 Create a file sample in the directory subject

 Remove the write permission for the owner for sample using symbolic
method

d.
 Delete the file sample What is an error message displayed No error
displayed .

You might also like