Lab#1 VIT1202 OS v2 - lab 1 PDF

Title Lab#1 VIT1202 OS v2 - lab 1
Author kevin htet
Course Operating Systems
Institution Victoria University
Pages 4
File Size 342.5 KB
File Type PDF
Total Downloads 583
Total Views 831

Summary

LAB#1 - Name & ID: Group: DONE:Lab#1 - Introduction to Operating SystemsThis Lab Assessment is worth 3% of your total marks for this unit. Please complete all questions and tasks.Task 1 (1mark):Which program works as the middle man that making sure the software and the hardware interact with...


Description

VUCol l e ge

LAB#1 - Name & ID:

Pa g e1o f 4

Group:

DONE:

Lab#1 - Introduction to Operating Systems This Lab Assessment is worth 3% of your total marks for this unit. Please complete all questions and tasks. Task 1 (1mark): Which program works as the middle man that making sure the software and the hardware interact with each other correctly? (It controls every file, every process, every device and every section of the memory) List 3 most popular operating system Window, Mac, LINUX List 2 most popular operating systems for mobile dev IOS and Android List the names of the 5 sub manage Network Manager, Memory Manager, File Manager, Process Manager, User Manager

Briefly describe the responsibilities of these managers: Network Manager = Coordinates the services required for multiple systems to work cohesively together Shared network resources: memory space, processors, printers, databases, applications, etc. Memory manager- It is in charge of main memory. Process Manager- Allocation of Central Processing Unit(CPU) Device Manager- In charge of connecting with every available device. For eg- printers, ports, disk drives File Manager- In charge of tracking every file in the system Practical Exercise: The following exercise requires the use of Linux Operating System. In this unit you were required to install Linux Centos 8 in Virtual Box. Provide evidence of each task with a relevant screen dump. Use Snippet tool or CRTL-Print Screen options. Start your Centos 8 Virtual Machine. Login with the user account created. Install the Tree package. (sudo yum install tree). You will use this utility to provide a detailed directory and file hierarchical structure output. 

Display current working directory (pwd)



Display the manual page of ls commhistoryand (man ls) and press q to exit main page

 

Display help for the mkdir command (mkdir—help) Display the calendar (cal)

V e r s i o nDa t e : 2 1 / 0 3 / 2 0 2 1 Au t h o r :St e f a nBa t s a s F i l e n a me : d e 9 7 d a b 0 7 e c 8 2 4 7 3 6 4 1 7 a 2 d 6 8 0 4 3 0 9 2 1 . d o c x

VUCol l e ge

   

Pa g e2o f 4

Display the disk space information in human readable format (Linux command: -h) Long list all directories under the / (root) directory (ls -l/) Change directory to you home directory (cd) Long list content of your home (ls-l)hi

df -h) (df

Display the history of all commands that you have executed. Paste the output in the Task 1 space provided in the Answer Page.

Task 2 (1 mark): Part A In your home, create the following directories ( in blue): Lecture

Comman ds

Operating Home

/

Tutorial

Yourhom Computer Networks

Tutorial#2

Assignme

From your home directory execute the tree –a command to display the new directory structure. Paste the output in the Task 2 (a) space provided in the Answer Page. Part B Use touch command to create a text file named file1.txt in Tutorial#2 directory Use nano editor to edit file1.txt (type: Student ID: Name: ). Save and exit file1.txt. (Hint: Use CTRL-G to access the NANO help screen for shortcut commands) Display the contents of the file without opening the file with nano. Paste the output in the Task 2 (b) space provided in the Answer Page. Task 3: (1 mark)       

Display the user who is currently login (who) Display the operating system installed on your VM (ps -aux) Display the host name of your systems (uname -n) Display the current working directory (pwd) Display the welcome message using the echo command (echo Welcome) Use echo command to display the variable PATH (echo $PATH) Display all files and directories that start with letter D (?)

 

Display all files that ends with letter s in your home directory. Display the path of the executable program date. (Linux command: which date)

V e r s i o nDa t e : 2 1 / 0 3 / 2 0 2 1 Au t h o r :St e f a nBa t s a s F i l e n a me : d e 9 7 d a b 0 7 e c 8 2 4 7 3 6 4 1 7 a 2 d 6 8 0 4 3 0 9 2 1 . d o c x

VUCol l e ge

Pa g e3o f 4



Use touch command to create files: A, B, C, and D in your Command sub directory ( touch`/’Operating Systems’/Lecture/Command/{A,B,C,D}

 

Use echo command to display all files names started with A or B ( echo[AB] ) Use echo command to display all files names start with B to D ( echo [B-D]*



Use echo command to display: “Today is” and the current date ( echo “Today is $(date)”

Display the history of all commands that you have executed. Paste the output in the Task 2 (b) space provided in the Answer Page.

Answer Page Task 1:

Task 2 (A):

VUCol l e ge

TASK 2 (A)

Task 2 (B)

Task 3:

V e r Au t F i l e

Pa g e4o f 4...


Similar Free PDFs