0% found this document useful (0 votes)
8 views5 pages

Operating System Lab 1

The document provides explanations for various commands used in Linux package management and file handling. It covers commands for apt-get, yum, wget, gzip, tar, and rar, detailing their functions and usage. Each command is accompanied by specific examples for clarity.

Uploaded by

abuzarali1124
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)
8 views5 pages

Operating System Lab 1

The document provides explanations for various commands used in Linux package management and file handling. It covers commands for apt-get, yum, wget, gzip, tar, and rar, detailing their functions and usage. Each command is accompanied by specific examples for clarity.

Uploaded by

abuzarali1124
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/ 5

OPERATING SYSTEM LAB 1

ARSH AL AMAN
BAI-4A

POST LAB QUESTIONS


TASK 01:

Sure! Here's the explanation for all the commands in the same format:

1: apt-get is Advanced Package Tool, and it manages software packages for Debian-based
systems like Ubuntu.
- sudo apt-get install <package> installs a new software package on your system.
- sudo apt-get update updates the list of available software packages.
- sudo apt-get upgrade upgrades the software you've already installed to the latest versions.
- sudo apt-get remove <package> removes a software package from your system.

2: yum stands for Yellowdog Updater Modified and is used to manage software packages for
RPM-based Linux systems like CentOS, Fedora, and RHEL.
- sudo yum install <package> installs a new software package on your system.
- sudo yum update updates all the installed software packages to newer versions.
- sudo yum remove <package> removes a software package from your system.

3: wget is a tool to retrieve content from the web.


- wget <URL> downloads a file from the internet using the provided URL.
- wget -O <output_file> <URL> downloads a file and saves it with a custom name instead of
the default name.
- wget -b <URL> downloads a file in the background, so you can use the terminal for other
tasks while it's downloading.

4: gzip is used to compress or decompress files, making them smaller to save space.
- gzip <file> compresses the specified file, reducing its size.

5: tar is used to archive files and directories, making them easier to store or transfer.
- tar -cvf <archive.tar> <files/dirs> creates an archive (.tar) of the specified files or
directories.
- tar -xvf <archive.tar> extracts files from a .tar archive.
- tar -czvf <archive.tar.gz> <files/dirs> creates a compressed archive (.tar.gz), combining
both packing and compression.

6: rar is used for creating, modifying, and extracting RAR archives.


- rar a <archive.rar> <files/dirs> creates a new RAR archive with the specified files or
directories.
- rar x <archive.rar> extracts files from a RAR archive.
- rar l <archive.rar> lists the contents of a RAR archive without extracting them.

You might also like