0% found this document useful (0 votes)
27 views

OS Lab 01 Task 23022024 044407pm

The document provides submission requirements and exercises for a course assignment. The submission must be a PDF file with the student's name, enrollment number, and semester in the header. Exercise 1 involves creating a text file with student information, displaying the date and time, creating directories and subdirectories, and checking if directories exist. Exercise 2 asks questions about file systems, the superblock, root directory, Lilo, /dev files, files in /etc, and the purpose of /usr. The last section provides a table with Linux commands and their purposes.

Uploaded by

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

OS Lab 01 Task 23022024 044407pm

The document provides submission requirements and exercises for a course assignment. The submission must be a PDF file with the student's name, enrollment number, and semester in the header. Exercise 1 involves creating a text file with student information, displaying the date and time, creating directories and subdirectories, and checking if directories exist. Exercise 2 asks questions about file systems, the superblock, root directory, Lilo, /dev files, files in /etc, and the purpose of /usr. The last section provides a table with Linux commands and their purposes.

Uploaded by

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

SUBMISSION REQUIREMENT:

 Submit your file in PDF format. Comprising of screen shot of your command use along with the output
 File should have your
 Name
 Enrollment Number
 Semester mention in the header

EXERCISES

Exercise 1
.

1. Make a text file cantoning your name, enrollment number, and semester in
which you are studying and display the content of file at terminal.
2. Write a command to display time and date.
3. Write a command to create the following directories
 Fruit
 Vegetable
 Animal
 Create sub-directories of the above directories
 Write a command to check whether the above created directories exists?
 Write a command to change directories.
 Write a command to remove up created directories
 Show the current path in you are working

Exercise 2
1. What is a file system?
2. What does superblock contain?
3. What is root directory?
4. What is Lilo?
5. What information is kept in /dev?
6. Give names of few files that the directory /etc contain?
7. What is the purpose of /usr? Where the code for Linux kernel is kept?
8. What is MBR?
PRACTICE EXCERCISE

Give the purpose of the given commands.


cat, find, read, more, env, echo, export, history, source, ps

S.NO COMMANDS PURPOSE

1 cat

2 find

3 read

4 more

5 env

6 echo

7 export

8 history

9 source
10 ps
Practice given commands

COMMAND Syntax PURPOSE

Ls Ls show files in current position


Cd cd directory name change directory
Cp cp [option] [source] [destination] copy file or directory
Tty tty Show Number of terminal devices
Rm rm name remove file or directory
Pwd pwd show current position
Mkdir mkdir directory create directory
Rmdir rmdir directory name remove directory
whoami whoami display user name
Less less filename display file contents pagewise
uptime uptime Usage time information
who who Displays list of users currently
Who –H logged on.

uname unme[options] System information


uname –m, uname –a
id id [option][username] Displays user, group and owner id
groups groups [username] Shows all groups
apropos appropos [string] Searches the man pages containg the
string
cal cal [option][month][year] Displays calendar
Cal ,Cal –y, cal 06 2005
finger finger show data about the user
shutdown shutdown reboot or turn off machine

You might also like