Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SBA 3 (Linux)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

SKILL BASED ASSESSMENT-3(LINUX) MRUDULA BABLESHWAR

Q1) Configure sftp (vsftpd) server and client and upload and download file sftp client to server?

Ans)

STEP-1 Installing vsftpd and then enable the vsftpd service and check the status.

STEP 2

STEP 3
STEP 4
STEP 5

STEP 6

Q2) Tuned your system profile at “throughput-performance” & what are nice and renice give example?

Ans) Tuned my system profile as “throughput-performance”:

Step 1) Start tuned service and then check the current profile. We can see that currently my system is tuned
as “balanced”:

Step 2) Lets tuned the system as “throughput-performance” and check. By doing this, the system will give the
best performance and will work very smoothly and fast:
Nice and Renice:

i) Nice is the value given to a process based on which the priority of the process is determined. The
more the nice value, the lesser will be the priority and vice versa.
ii) It means, if we need to provide the highest priority to a process, then we need to assign the
lowest nice value to the particular process.
iii) Nice value can be lowest of -20 and highest of 19. By default, the nice value of a standard process
is 0.
iv) Now, it is possible to manually change the nice value or assign a nice value before starting a
process. Using “ps -el” we can see the list of all running processes and their nice values. a) Using
nice command, we can start a process with a set nice value

Q3) Create partition mount on /sun permanently, apply Quota of 32 blocks and 8 inodes to Sid user

Ans)

Step 1) Create a partition out of the inserted disk /dev/sdb. And create directory /sun for mounting:
Step 2) Assign filesystem as ext4 (default) and permanent mounting of /dev/sdb1 on /sun by
editing /etc/fstab file. Also assign user quota:

Step 3) Use command “mount -a” and then “partprobe” to set the permanent mounting and check if
it is mounted by using “df -h”:

Step 4) Creating user Sid and setting password:


Step 5) Set-up quota, give permissions and edit quota using “edquota” command:

Step 6) We will add 30 blocks and 7 inodes of soft quota and 32 blocks and 8 inodes of hard
quota:

This is how we set quota on Sid user. So, now Sid user cannot create more than 8 files
(user will be warned at 7 files) and cannot use more than 32 blocks (i.e 32*4=128KB) of
disk space (user will be warned at 30 blocks (120KB)).

Q4) Form Lan n/w of 50.0.0.0 [system1 50.0.0.10 and system2 50.0.0.20] between two
virtual machine. Copy files from system1 to system2 using rsync?
Ans)
Step 1) using nmtui command, assign the private IPs (NOTE: I have changed my
hostnames to system1 and system2 according to the question for ease):
Step 2) Ping both the machines with each other:

Step 3) Use the rsync command to copy files. It will ask for password every time the file is being
transferred.

You might also like