DS OS Lab 01
DS OS Lab 01
Lab – 01
Objectives:
1. Installation of virtualization software like VMware or virtual box
2. Creating a virtual machine and installing some Linux distribution on it
3. Installing guest additions, and use of shared folder between host and guest OS
4. Reviewing Linux history and its distributions
5. Exploring Linux File System Hierarchy and it's basic commands
6. Getting help using Linux man pages
Resources:
1. Video Lecture 01:https://youtu.be/wO0Y1IJIajM?si=qUUOJfBWQR01pk6e
2. Video Lecture 02:https://youtu.be/G-5NDYFwBH8?si=m_VnbfF-eJt-jiMy
3. Video Lecture 03:https://youtu.be/_YPvqThyM4c?si=R4xbY2z3QBstagjK
4. Video Lecture 04:https://youtu.be/dUkskLi70nI?si=jGhLKqydENfNYmdj
5. Installation document: https://www.dropbox.com/s/biakgmihr0eazs9/User%20Manual.pdf?dl=0
Task 01: Read the installation doc and complete the installation of VMWare and Ubuntu on your systems.
What is a hypervisor and the difference between type 1 and type 2 hypervisors?
Task 02: You can have multiple guest OS on your host OS. Can there be a guest OS inside the Guest OS? If yes then
what is the limit of Guest OS you can install in the Guest OS(s)?
Task 03:
a. What is the format of prompt that appears when you start the shell i.e. if prompt is arif@Ubuntu:~$?
b. What is the difference between these two prompts?
o xxxx@Ubuntu:~$
o xxxx@Ubuntu:~#
Task 04: The /usr/sbin folder contains the commands that are only executed by admin then tell what will happen
if we run any command that are in this folder? Try running a few commands to see results.
Task 05:
a. What does the “shutdown 3” command do?
b. What is meant by home directory of a user and how it is symbolized?
Task 6: There are two terminals and I want to write from one to terminal to another terminal. Can you find out a
command that helps me writing something to another terminal? (Hint: take help from man and man -k)
Task 7:What are man pages and mention all the sections in which man pages are divided.
Task 8: Use cd (change directory) command to move to the folder /usr/share/man/man2/ and then use the ls
(list) command to see how many man pages of different system calls are there?
Task 09:
a. Write a single command to display the first 12 lines of /etc/services.
b. Write a single command to display only the last line of /etc/passwd.
c. Write a single command to count the number of lines in /etc/passwd.
Task 10:
a. Write a single command to make a backup of /etc/passwd file to cnt.txt.
b. Write a single command to display backup file.
c. Write a single command to display cnt.txt, but with all lines in reverse order (the last line first).
Task 20: Run the cmp command on above created files and check if the information of changed byte is correct or not?
What will be the byte number if I change the word “again” to “agame” in file one line three?
Task 21: run the diff command on above files and explain the output. Also man the diff command to get information
about its working and different signs and characters it uses in output.