Professional Documents
Culture Documents
LAB ASSIGNMENT 01 OS Lab 1,2,3
LAB ASSIGNMENT 01 OS Lab 1,2,3
Lab 03
Section: 4-A
1|Page
Lab No. 01 Installing Linux Distribution
on Virtual Machine, Command-line
Interface, and Basic Command
Structure
Section: 4-A
2|Page
Question 1
Task 1:
In GUI open the Libre Office writer tool create a document that contains information about your favorite
place. Try the following short- keys while formatting the document.
3|Page
4|Page
Figure 2 CRTL+ S
5|Page
Figure 3 CTRL + 0
Figure 4 CRTL + P
6|Page
Date: 29-09-2022
Question 1
Task 1:
Considering the above activities (given solved actvites section), perform the following tasks
• move myfile to mydir1
8|Page
• delete mydir1 (get confirmation before deleting)
Task 2:
This activity is related to I/O redirection
• Go to Desktop directory
9|Page
• Write the long-listing of contents of Desktop on an empty file out-put-file
Task 3:
Considering the lab activities, perform the following tasks
• Go to Desktop directory
• write the combined output of mynewfile and newfile to a third file out-put-file
10 | P a g e
(Appended The Contents)
Task 4:
Long list all files and directories in your system and write out-put on a text-file.
11 | P a g e
Lab No. 03 Controlling Access to Files,
and Managing Packages using
Commands
Section: 4-A
• Check user ID (UID) and group ID (GID) by listing file /etc/passwd. Find lines with added user.
What is the UID and GID for these accounts? Write command which show UID and GID for your user
name. Create 3 files with touch command: files1, files2, files3.
• Write the command line by using letters with chmod to set the following permissions:
13 | P a g e
Solution Screenshots
Adding Users
14 | P a g e
Checking User ID, Group ID and File Creation
Changing Permissions
15 | P a g e
16 | P a g e