OPERATING SYSTEM LAB 1
OPERATING SYSTEM LAB 1
ARSH AL AMAN
BAI-4A
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.
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.