File: /Home/Vissistl/Desktop/Interview-New/Linux - Inter Page 1 of 3
File: /Home/Vissistl/Desktop/Interview-New/Linux - Inter Page 1 of 3
Ans: Using ‘free’ & ‘vmstat’ command we can display the physical and virtual
memory statistics respectively.With the help of ‘sar’ command we see the CPU
utilization & other stats.
Q:3 What does Sar provides and at which location Sar logs are stored ?
Ans: Sar Collect, report, or save system activity information. The default version
of the sar command (CPU utilization report) might be one of the first facilities
the user runs to begin system activity investigation, because it monitors
major system resources. If CPU utilization is near 100 percent (user + nice +
system), the workload sampled is CPU-bound.
Above Command will shrink the size & will make the filesystem size 10GB.
Q:13 What are the default ports used for SMTP,DNS,FTP,DHCP,SSH and squid ?
Ans: Service Port
SMTP 25
DNS 53
FTP 20 (data transfer) , 21 ( Connection established)
DHCP 67/UDP(dhcp server) , 68/UDP(dhcp client)
SSH 22
Squid 3128
Q:16 How to check and verify the status the bond interface.
Ans: Using the command ‘cat /proc/net/bonding/bond0 , we can check which mode is
enabled and what lan cards are used in this bond. In this example we have one only
one bond interface but we can have multiple bond interface like bond1,bond2 and so
on.
Q:19 List the services that are enabled at a particular run level in linux
server ?
Ans: With the help of command ‘chkconfig –list | grep 5:on’ we can list all the
service that are enabled in run level5. For other run levels just replace 5 with
the respective run level.
Q:22 How To scan newly asssigned luns on linux box without rebooting ?
Ans: There are two ways to scan newly assigned luns :
Method:1 if sg3 rpm is installed , then run the command ‘rescan-scsi-bus.sh’
Method:2 Run the Command , echo ” – – – ” > /sys/class/scsi_host/hostX/scan