You are on page 1of 7

Linux System Administration

Practical #2

Name Kinjal Koli Roll Number 21302A0004


Class TYIT Division D
Linux System
Subject/Course Date 18/07/2023
Administration
Topic Storage Devices and Links, Install applications using yum, Backup

1. Working with Storage Devices and Links

a) Find a USB flash drive, and manually mount it on the /mnt directory

Vidyalankar School of Information Technology


b) Create a symbolic link to the /opt/sample directory in the /tmp directory

c) Create a hard link to /opt/sample in the /tmp directory

d) Check the inodes of the original file and both links

Vidyalankar School of Information Technology


e) Delete the file /opt/sample

f) Check if the file /opt/sample can be opened using the symbolic link

g) Restore the file /opt/sample using hard link

2. Making a Backup

a. Create a backup of the D1 directory into your home directory


b. Copy the backup file into the Documents directory
c. Restore the D1 directory in the Documents directory
d. Create a backup of D1 in your home directory using the gzip and bzip2 options
e. Copy the compressed backup files into Downloads and Desktop directories
f. Restore D1 in Downloads and Desktop
Insert the the screenshots of execution of commands on VM

Vidyalankar School of Information Technology


3. Install software applications using yum
a. Edit the repositories used by yum

b. Download and install yumex using yum

Vidyalankar School of Information Technology


c. Remove yumex using yum

Vidyalankar School of Information Technology


4. Creating a repository

a. Create a directory named repo_dir.


b. Copy a rpm file for yumex into this directory.
c. Make this directory a repository.
d. Install yumex using yum (ensure that yum accesses the repository created by you)
Insert the screenshots of execution of commands on VM

Vidyalankar School of Information Technology


Clean metadata

Vidyalankar School of Information Technology

You might also like