[go: up one dir, main page]

0% found this document useful (0 votes)
24 views2 pages

OS Assignment 1 - Guidelines

This document outlines Assignment 1 for the Operating Systems Lab at the University of South Asia, with a total of 10 marks and a deadline of March 12, 2025. It provides a list of essential Linux commands for file and directory management, including creating, listing, moving, copying, and deleting files and directories. Students are required to execute the commands in a Linux terminal and submit screenshots of the outputs as part of their assignment.

Uploaded by

Ayesha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

OS Assignment 1 - Guidelines

This document outlines Assignment 1 for the Operating Systems Lab at the University of South Asia, with a total of 10 marks and a deadline of March 12, 2025. It provides a list of essential Linux commands for file and directory management, including creating, listing, moving, copying, and deleting files and directories. Students are required to execute the commands in a Linux terminal and submit screenshots of the outputs as part of their assignment.

Uploaded by

Ayesha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

University of South Asia

Examination Assignment 1 Total Marks 10


Session Spring 2025 Version 1
Subject Operating Systems Lab DeadLine 12-03-2025

Resource Person Hamda Raheen Department Computer Science


Program BSCS-VI Section A

To be filled by the candidate:


Student Name Roll No.
Department Semester
Section Signature

Instruction
No choice is allowed. The candidate is supposed to attempt a complete question paper.

Linux Commands for File and Directory Management

1. Create a New Directory:


Command: mkdir my_folder
Description: Creates a new directory named "my_folder".

2. List Files and Directories:


Command: ls
Description: Displays a list of files and directories in the current location.

3. Change Directory:
Command: cd my_folder
Description: Moves into the "my_folder" directory.

4. Create a New File:


Command: touch myfile.txt
Description: Creates an empty file named "myfile.txt".

Page 1 of 2
5. Copy a File:
Command: cp myfile.txt myfile_copy.txt
Description: Copies "myfile.txt" to a new file named "myfile_copy.txt".

6. Move or Rename a File:


Command: mv myfile.txt newfile.txt
Description: Renames "myfile.txt" to "newfile.txt".

7. Remove a File:
Command: rm newfile.txt
Description: Deletes the file "newfile.txt".

8. Remove a Directory:
Command: rm -r my_folder
Description: Deletes the "my_folder" directory and its contents.

9. Create a Zip Archive:


Command: zip my_archive.zip myfile_copy.txt
Description: Compresses "myfile_copy.txt" into a zip file named "my_archive.zip".

10. Extract a Zip Archive:


Command: unzip my_archive.zip
Description: Extracts the contents of "my_archive.zip".

Submission Guidelines:

1. Execute each command in a Linux terminal.


2. Take screenshots of the outputs and submit them with this assignment.

Page 2 of 2

You might also like