Odfggh

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Name: ahmed shimels muhe

Registration number:18bce2427
Operating Systems lab slot E2- l19+l20
Lab 1
1. Create a text file using vi editor and save the file. Save the file in which directory it is stored

2. Create a new directory and check the current directory for the default files
3. Identify a directory , file, user privileges, owner, group, date – write shell scrip
Lab 2
1. Create an empty file. Add content to the file. Change the name of the file using shell
script.

2. Write a shell script to make directories /dir1/dir2 and create a file inside
dir2.
Lab 3
1, Write a shell script to get a number from the user and reverse a
given number.
2, In a directory create files and change the name of the files
with .new extension

3, Search for files with specific content in a directory recursively


4, Write a script to get access mode of files in a directory. Use string
operations to replace – with “ “ (single space) in the access mode
and display.
5, Write a shell script to display username, date, and current working
directory.
Lab4
1) Write a shell script to show the processes that consume first and second
highest memory.
2) Execute a program. Check whether it is running or not and display
the status.

2) Find out all the daemon process running in the system. Display their
pid and name. Show the cpu and memory consumption of one daemon
process.

You might also like