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