Linux - Linux System Admin Interview Questions & Answers - Part 1
Linux System Admin Interview Questions & Answers - Part 1
1 - How To check the uptime of a Linux Server ?
Using uptime command we can determine how long a linux box has been running , also uptime can be viewed by the top & w command.
Stop Audio and Video Playback Before Exit ( for App)
2 - How to check which Redhat version is installed on Server ?
Ans: Use the command cat /etc/redhat-release , output of this command will tell you the redhat version.
Stop Audio and Video Playback Before Exit ( for App)
3 - How to install rpm packages in Redhat & CentOS linux ?
Ans: rpm and yum command are used to install packages in redhat linux and CentOS.
Stop Audio and Video Playback Before Exit ( for App)
4 - How to determine the hostname of a linux box ?
Ans: On typing the hostname command on terminal we can determine the hostname of a linux server.
Stop Audio and Video Playback Before Exit ( for App)
5 - How To check the default gatway ?
Ans: Using ‘route -n’ command we can determine the default gateway in linux.
Stop Audio and Video Playback Before Exit ( for App)
6 - Which Command is used to check the kernel Version ?
Ans: ‘uname -r’
Stop Audio and Video Playback Before Exit ( for App)
Ans : ‘who -r’ and ‘runlevel’ , both of these command are used to find current run level.
Stop Audio and Video Playback Before Exit ( for App)
8 - What is Initrd ?
Ans: Initrd stands for initial ram disk , which contains the temporary root filesystem and neccessary modules which helps in mounting the real root filesystem in read mode only.
Stop Audio and Video Playback Before Exit ( for App)
9 - What is Bootloader ?
Ans: Bootloader is a program that boots the operating system and decides from which kernel OS will boot.
Stop Audio and Video Playback Before Exit ( for App)
10 - How to list hidden files from the command line ?
Ans: ‘ls -a’ <Folder_Name>
Stop Audio and Video Playback Before Exit ( for App)
11 - What is soft link ?
Ans: Soft link is a method to create short cuts in linux. It is similar to windows short cut feature.
Stop Audio and Video Playback Before Exit ( for App)
12 - How to create a blank file in linux from command line ?
Ans: Using the command ‘touch <file-name>’
13 - How To change the password of user from the Command Line ?
Ans: ‘passwd <User-Name>’
Stop Audio and Video Playback Before Exit ( for App)
14 - What is name of first process in linux ?
Ans: ‘init’ is the first process in linux which is started by kernel and whose pid is 1.
15 - How to check what is your current working shell ?
Ans : echo $SHELL and ‘/etc/passwd’ will tell you your default shell.
Credits : LinuxTechi
YouTube
Comments
Post a Comment