The document outlines a series of tasks for setting up a basic Linux workspace, including creating directories, managing files, and setting permissions. It consists of four scenarios: personal workspace setup, file movement and cleanup, file permissions, and file editing, each with specific tasks to complete. Additionally, there is a bonus task related to explaining file permissions in detail.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views2 pages
OS Lab Quiz # 1
The document outlines a series of tasks for setting up a basic Linux workspace, including creating directories, managing files, and setting permissions. It consists of four scenarios: personal workspace setup, file movement and cleanup, file permissions, and file editing, each with specific tasks to complete. Additionally, there is a bonus task related to explaining file permissions in detail.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
💻 OS Lab Quiz # 1
Scenario 1: Personal Workspace Setup
You are tasked with setting up a basic Linux workspace.
Tasks:
1. Create a directory named MyLinuxLab in your home directory.
2. Inside it, create two subdirectories: Docs and Scripts. 3. Display your current working directory path and save it in a file named path.txt. 4. Create a text file named info.txt inside Docs and write a short message about your lab.
Scenario 2: File Movement & Cleanup
A small cleanup and backup activity needs to be performed.
Tasks:
1. Create two text files: old.txt and new.txt inside Docs.
2. Move old.txt from Docs to Scripts. 3. Copy new.txt from Docs to Scripts. 4. Delete new.txt from Docs. 5. List the contents of both folders with details.
Scenario 3: File Permissions
You are responsible for applying correct permissions to the project files.
Tasks:
1. In the Scripts folder, create a file named run.sh.
2. Set its permissions so that: o Owner: read, write, and execute o Group: read and execute o Others: read-only 3. Create a file named readme.txt in the same folder and set its permissions so that: o Owner: read and write o Group: read-only o Others: no access 4. List the permissions of all files in Scripts and explain them in a file named permissions.txt.
Scenario 4: File Editing
A documentation task is assigned for your lab activity.
Tasks:
1. Open readme.txt and write:
o Your full name o Date of the test o A one-line message about the quiz 2. Open permissions.txt and add an explanation for a permission set you have used today. 3. Create a new file called linux_notes.txt in the Docs folder and write three points related to the Linux commands or concepts you’ve applied today.
Bonus
Create a file named answers.txt and answer the following:
1. Explain rwxr-xr-x in words.
2. Explain what chmod 755 filename means in terms of permissions.