Skip to content

40021441054102/OS-Lab-Exams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

OS-Lab-Exams

Operating System Lab Exam Questions

Q1 (CPU, Files) ++++

  1. First create a directory with name of OS Exam, Attention that space character is required between OS and Exam.
  2. In created directory, create a file named cpu_info.txt.
  3. With related commands, show your system's CPU information, then look for item CPU max Hz and write down your cpu frequency inside cpu_info.txt file.
  4. Create another directory named Backup Directory.
  5. Copy cpu_info.txt to Backup Directory with any name you like.
  6. In the main cpu_info.txt file write your name at the end of file then save it.
  7. Show contents of both main and copied files.

Q2 (Storage, Memory, Files) ++++

  1. First create a directory with name of OS Exam, Attention that space character is required between OS and Exam.
  2. In created directory, create a file named storage_report.txt.
  3. With related commands, show your system's Storage information in human readable mode, then look for free storage available at Root Directory ('/') and write down inside storage_report.txt file.
  4. Create another file named memory report.txt, Attention that space character is required between memory and report.txt.
  5. With related commands, show your system's Memory information in human readable mode, then look for used memory at and write down inside memory report.txt file.
  6. Show contents of both files.

Q3 (Network, Secure Shell) +++

  1. With related commands, show your system's Network information, then look for information about localhost or shortly lo and write down its IP.
  2. With related commands, check your system's network connection with wrote down IP.
  3. With related commands, show your username.
  4. With related commands, establish a secure connection session from your system to that wrote down IP.
  5. In established secure connection session, show information and listener ports of your system.

Q4 (Network, Fun, Internet Required) ++

  1. Connect yoru system to the internet.
  2. With related command, show contents of web page with link of ascii.live/can-you-hear-me in your terminal.
  3. Also show contents of ascii.live/forrest.
  4. Check your connection quality and speed to both links.

Q5 (Network, Gateways, Internet Required) +++

  1. Connect your system to the internet.
  2. With related command, track routes of your system's network packets to the google.com.
  3. In routes you found, look for route with title of gateway then wrote down its IP.
  4. Check your connection quality of wrote down gateway IP and save it to file named pong.txt.
  5. With related command of converting domain to IP and vice versa, show IP of google.com.
  6. Do step 4 for step 5 again.

Q6 (Files, Search, Root Directories) +++

  1. Create a directory with any name you like.
  2. Copy file with name of cpuinfo from you system's root directory path /proc/cpuinfo to your created directory.
  3. With related command, look for text MHz in copied cpuinfo file.
  4. Do step 3 but add related command that saves output of search result into a file named results.txt.

Q7 (Zip, Unzip, Directories, Echo, Files) +++

  1. First create a directory named Backup.
  2. Inside the directory, create two files: file1.txt and file2.txt.
  3. Write your full name into file1.txt using the echo command and redirect the output to file.
  4. Write your student id into file2.txt using the echo command and redirect the output to file.
  5. Compress both files into zip file named archive.zip.
  6. Delete file1.txt and file2.txt.
  7. Extract the contents of archive.zip into created directory with name of Backup.
  8. Show contents of both files.

About

Operating System Lab Exam Questions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published