Tuesday, December 9, 2014

interview question answer for linux 2

Which Linux service is used to provide network file storage ?
NFS service is used to provide file sharing.

How do you monitor or measure performance of a Linux server which is running for more than 5 years with out a break?
These are the commands that can help. top, sar, vmstat, iostat, free

Which Linux service is used as a database server ?
MySQL ,PostgreSQL and MariyaDB are Linux database server.

Talk about the boot process?
Boot process follows 6 major step :
  BOIS   (executes MBR)
2.       MBR   (executes Grub)
3.       GRUB   (executes kernel)
4.       KERNEL   (executes /sbin/init)
5.       INIT  (execute run level program)
6.       RUN LEVEL   (executed from /etc/rc.d/rc*.d/)

Name the Linux services which provides network printing.
CUPS provide network printing between Linux systems. It can be used with Samba service to extend network printing to windows systems.

Which Linux service is used to turn a Linux system in proxy server ?
Squid service can be used to turn any Linux system into an in proxy server.

Which remote management service is allowed through the default firewall and by default installed in RHEL?
By default SSH is always installed in RHEL. SSH uses port 22 which is allowed through the default firewall rules.

Which necessary partition cannot be a part of logical volume group ?

boot partition cannot be a part of logical volume group. You must have create it as a regular partition.

Command to check the total hardware in system?
1.     lscpu This command reports information about the cpu and processing units. It does not have any further options or functionality.
2.     lshw This command reports detailed and brief information about multiple different hardware units such as cpu, memory, disk, usb controllers, network adapters etc. Lshw extracts the information from different /proc files.
3.     hwinfo This command is another general purpose hardware probing utility that can report detailed and brief information about multiple different hardware components, and more than what lshw can report.
4.     df  This command reports various partitions, their mount points and the used and available space on each.
5.     free Check the amount of used, free and total amount of RAM on system with the free command.


How to check disk performance, command?
Top command is a performance monitoring program. The top command used to display all the running and active real-time processes in ordered list and updates it regularly. It display CPU usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User, Commands and much more. It also shows high memory and cpu utilization of a running processes.


How do you restart network red hat?
#service network restart


What are the codenames of Red Hat Enterprise Linux 5 and 6?
RHEL5 is codenamed ‘Tikanga’ and RHEL6 is named ‘Santiago’.  Red Hat Enterprise Linux 7  is named – ‘Maipo’.

How do you start linux red hat 5 in rescue mode?
 At the beginning of the boot, use [F5] functional key to use Linux rescue mode.

What is the difference between home directory and working directory?
Home directory is the default working directory when a user logs in. On the other hand, working directory is the user’s current directory.

How to bind another IP in a NIC ?
Copy the contents eth0 to eth1, and change the ipaddress. Restart the network. 

No comments:

Post a Comment