Docsity

Operating System Lab Tasks 2, Lab Reports of Operating Systems

Partial preview of the text

Download Operating System Lab Tasks 2 and more Lab Reports Operating Systems in PDF only on Docsity!

Prof. Adnan Mustafa| Computer Engineering And Applications | October 15, 2020

SUBMITTED BY:

SHEIKH ABUZAR AMJAD

REG NO:

19 - CP- 6

SUBMITTED TO:

SIR ADNAN MUSTAFA

University of Engineering &Technology Taxila [OS CLASS TASKS]

[LAB NO 2 ]

OPERATING System LAB

Q. 1 : a. Log in. Open a terminal window, to start a shell. b. Exit from the shell; the terminal window will close. c. Start another shell. Enter each of the following commands in turn. i. date ii. whoami iii. hostname iv. uname v. uptime Answer:

Answer: Q.3: a. Create a second file. Call it secret-of-the-universe , and put in whatever content you deem appropriate. b. Check its creation with ls.

c. Display the contents of this file. Minimize the typing needed to do this: i. Scroll back through the command history to the command you used to create the file. ii. Change that command to display secret-of-the-universe instead of creating it. Answer: Q.4: After each of the following steps, use ls and cat to verify what has happened. a. Copy secret-of-the-universe to a new file called answer.txt. Use Tab to avoid typing the existing file’s name in full. b. Now copy hello.txt to answer.txt. What’s happened now?