0% found this document useful (0 votes)
48 views

Os Lab SK 02

Uploaded by

Shahnawaz Khan
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
48 views

Os Lab SK 02

Uploaded by

Shahnawaz Khan
Copyright
© © All Rights Reserved
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/ 6

Lab 02

Operating Systems Lab

Name: SHAH NAWAZ KHAN


Enrollment: 01-132222-038
Class: BCE-05
Submitted To: Engr. Muhammad Nauman
Introduction:
Linux is a strong, open-source working framework in light of the Unix engineering, generally
utilized for its security, adaptability, and capacity to run on different equipment stages. It is
usually utilized in servers, work areas, and implanted frameworks. Linux frameworks are
worked through both graphical UIs (GUIs) and order line interfaces (CLIs), with the last option
being exceptionally well known among designers and directors. Normal orders in Linux
incorporate ls (to list documents and catalogs), disc (to change registries), cp (to duplicate
records), mv (to move or rename records), rm (to erase documents), chmod (to change
document consents), and top (to screen framework execution). Through its rich order set, Linux
permits clients to perform assignments productively by prearranging and robotization.

Objectives:
• Guarantee proficient, stable, and secure activity of Linux-based frameworks, enhancing
asset utilization and execution.
• Influence Linux's security highlights, including client authorizations, firewalls, and
encryption, while tweaking the framework to meet explicit prerequisites.
• Robotize dull undertakings utilizing shell prearranging, further developing framework
organization and work process effectiveness.
• Utilizing terminal to perform task
• Figure out the orders

Software used:
• Linux Operating System
• Ubuntu

Take 01:
Go to root directory, then to Home then to Documents.

Output:
Take 02:
Create a text file in one directory (e.g. Documents) and move it into another directory (e.g.
Downloads).

Output:

Take 03:
Delete text file from Documents folder.
Output:

Take 04:
Enlist the files present in Downloads folder.
Output:
Take 05:
Make a new folder "Test" in Documents.
Output:

Take 06:
Copy text file from Downloads into Test folder residing in Documents
Output:

Take 07:
Delete Test folder from Documents directory.
Output:

Take 08:
Using cat command, Create three files (test, test1, test2) in the directory of your choice.
Output:
Take 09:
Enter multiple lines text in test file. (Hint: using cat command).
Output:

Take 010:
Enter one line text in testl and test2 files
Output:

Take 011:
Display content of all files at the same time.
Output:
Take 012:
Delete testl and test2 files.
Output:

Take 013:
Copy test file from current directory to some other directory.
Output:

Take 014:
Display message "This is my first Linux Lab". (Hint: using Echo command).
Output:

Conclusion:

These tasks cover essential Linux command-line operations, focusing on directory navigation,
file management, and text handling. Key commands such as cd, touch, mv, cp, and rm help users
navigate the filesystem and manage files. Additionally, commands like ls, cat, and echo are used
for organizing, viewing, and editing files. The exercises provide a strong foundation in both basic
and intermediate Linux operations, enabling efficient system management from the command
line.

You might also like