You are on page 1of 13

Preston University, Islamabad Campus

Faculty of Business Administration and Technology

OPERATING SYSTEMS

LAB REPORT # 3

Name: Abdullah Bin Khalid

Registration No: 1411-121106

BBA-IT—4TH SEMESTER

Submitted to:

Instructor’s Name: MR. BILAL MUNIR.

Lab Date: __________________________ Marks and Signature

Submission Date: _________________________


LAB:3 INTRODUCTION TO BASIC UNIX COMMANDS

Objective(s)
 To get familiar with the basic Unix/Linux shell commands.

Report:
 We learn about Introduction to Basic Shell Commands

Introduction to Basic Shell Commands

 GENERAL COMMANDS
 DIRECTORY COMMANDS
 FILE COMMANDS

There are some command on which we will make the report

 Cd
 Mk labs
 Cd labs
 Cat>file then press ctrl+D
 Ls
 Cat file1
 Cp file1 file2
 Cat file1 file2
 Rm file1
 Mv file2 thefile
 Mkdir home
 cd
 Cp labs/thefile Home/
 Rm labs/thefile
 Cp Home/thefile labs/
 Cd Home
 Rm thefile
 Cd
 Rm labs/thefile
 Rmdir labs
 Rmdir Home
- First we will open the Virtual Box.

- Second we will open the Ubuntu Operating system


We know first how to open command , there are two method to open terminal
command. First is go to application there is terminal option
 Second is right click and click
Now apply the command

 Cd
 Mkdir
 Cd LAbs
- The LABS folder create
-we Create the file named file1.
Cat>file then press ctrl+D
 Ls
 Cat file1
-Then we create file 1 and 2 through command
 Cp file1 file2
 Cat file1 file2
- we a copy of the file file1 under the name file2.
- We Verify that the files file1 and file2 both exist.

- Now we replace file 1 from 2


- We change the file name “the file”
Q9: Remove the directory LABS from your home directory with the following
command. Verify that thefile and LABS are gone from your home directory.
- We verify that thefile and LABS are gone from the home directory

END

You might also like