Linux Technical Interview Questions Part-3
101. What is the command to view the calendar of 2011?
cal 2011
102. Which command is used to view disk space?
df –h
103. How to create a new group in Linux?
groupadd
104. What is the command to send a message to everyone who is logged
into the system?
wall
105. Which command is used to check total number of disks?
fdisk –l
106. What is an mail server record in DNS?
MX
107. What does the following command line do?
ps -ef | awk '{print $1}' | sort | uniq
List the first column of all running processes, sort them and
remove duplicates
108. You get a call that when a user goes to www.yourwebsite.com it
fails and gets an error, how do you troubleshoot?
Check for user internet
Check to see if user computer has DNS for hostname lookup
Check to see if the server is up that is running that website
Check to see if the server’s web service is running
Check for DNS availability which is resolving that website
109. List 4 different directories in /?
/etc, /bin, /tmp, /home
110. What is the output of the following command:
$tail -10 filename | head -1
It will show the first line from the last 10 lines of a file
111. What are the different fields in /etc/passwd file?
Search online
112. Which command is used to list the processes?
ps –ef
113. What is the difference between “hostname” and “uname” commands?
Hostname will give you system name and uname will give you OS
information
114. How to check system load?
top and uptime command
115. How to schedule jobs?
crontab and at
116. What is the 3rd field when setting up crontab?
Day of the month
117. What is the command to create a new user?
useradd
118. What is the “init #” for system reboot?
6
119. How to restart a service?
systemctl restart servicename
120. How to shutdown a system?
shutdown or init 0
121. What is “ftp” command used for?
To transfer files from one computer to another
122. Explain cron job syntax? First is minute, second is..?
Min, house, day of the month, month, day of the week and command
123. How to delete a package in Linux?
rpm –e packagename
124. What is the file name where user password information is saved?
/etc/shadow
125. Which command you would use to find the location of chmod
command?
which chmod
126. Which command is used to check if the other computer is online?
ping othercomputer
127. Please explain about LAN, MAN and WAN?
Search online
128. How to list hidden files in a directory?
ls –la
129. What is the difference between telnet and ssh?
ssh is secure where telnet is not
130. How to run a calculator on Linux and exit out of it?
bc and quit
131. List any 4 commands to monitor system?
top, df –h, iostat, dmesg
132. You are notified that your server is down, list the steps you
will take to troubleshoot?
Check the system physically
Login through system console
Ping the system
Reboot or boot if possible
133. What is difference between static and DHCP IP?
Search online
134. How to write in vi editor mode?
i = insert, a = insert in next space, o = insert in new line
135. What is the difference between “crontab” and “at” jobs?
crontab is for repetitive jobs where at is for one time job
136. What is vCenter server in VMWare?
Search online
137. What is “dmidecode” command used for?
To get system information
138. What is the difference between SAN and NAS?
Search online
139. What is the location of system logs? E.g. messages
/var/log directory
140. How to setup an alias and what is it used for?
alias aliasname=”command”
It is used to created short-cuts for long commands
141. What is the purpose of “netstat” command?
Search online
142. What are terminal control keys, list any 3?
Crtl C, D and Z
143. Which command(s) you would run if you need to find out how many
processes are running on your system?
ps –ef | wc –l
144. What are the different types of shells?
sh, bash, ksh, csh etc.
145. How to delete a line when in vi editor mode?
dd
146. Which is the core of the operating system?
a) Shell
b) Kernel
c) Commands
d) Script
147. Which among the following interacts directly with system
hardware?
a) Shell
b) Commands
c) Kernel
d) Applications
148. How to save and quit from vi editor?
Shift ZZ or :wq!
149. What is the difference between a process and daemon?
Search online
150. What is the process or daemon name for NTP?
ntpd
cal 2011
102. Which command is used to view disk space?
df –h
103. How to create a new group in Linux?
groupadd
104. What is the command to send a message to everyone who is logged
into the system?
wall
105. Which command is used to check total number of disks?
fdisk –l
106. What is an mail server record in DNS?
MX
107. What does the following command line do?
ps -ef | awk '{print $1}' | sort | uniq
List the first column of all running processes, sort them and
remove duplicates
108. You get a call that when a user goes to www.yourwebsite.com it
fails and gets an error, how do you troubleshoot?
Check for user internet
Check to see if user computer has DNS for hostname lookup
Check to see if the server is up that is running that website
Check to see if the server’s web service is running
Check for DNS availability which is resolving that website
109. List 4 different directories in /?
/etc, /bin, /tmp, /home
110. What is the output of the following command:
$tail -10 filename | head -1
It will show the first line from the last 10 lines of a file
111. What are the different fields in /etc/passwd file?
Search online
112. Which command is used to list the processes?
ps –ef
113. What is the difference between “hostname” and “uname” commands?
Hostname will give you system name and uname will give you OS
information
114. How to check system load?
top and uptime command
115. How to schedule jobs?
crontab and at
116. What is the 3rd field when setting up crontab?
Day of the month
117. What is the command to create a new user?
useradd
118. What is the “init #” for system reboot?
6
119. How to restart a service?
systemctl restart servicename
120. How to shutdown a system?
shutdown or init 0
121. What is “ftp” command used for?
To transfer files from one computer to another
122. Explain cron job syntax? First is minute, second is..?
Min, house, day of the month, month, day of the week and command
123. How to delete a package in Linux?
rpm –e packagename
124. What is the file name where user password information is saved?
/etc/shadow
125. Which command you would use to find the location of chmod
command?
which chmod
126. Which command is used to check if the other computer is online?
ping othercomputer
127. Please explain about LAN, MAN and WAN?
Search online
128. How to list hidden files in a directory?
ls –la
129. What is the difference between telnet and ssh?
ssh is secure where telnet is not
130. How to run a calculator on Linux and exit out of it?
bc and quit
131. List any 4 commands to monitor system?
top, df –h, iostat, dmesg
132. You are notified that your server is down, list the steps you
will take to troubleshoot?
Check the system physically
Login through system console
Ping the system
Reboot or boot if possible
133. What is difference between static and DHCP IP?
Search online
134. How to write in vi editor mode?
i = insert, a = insert in next space, o = insert in new line
135. What is the difference between “crontab” and “at” jobs?
crontab is for repetitive jobs where at is for one time job
136. What is vCenter server in VMWare?
Search online
137. What is “dmidecode” command used for?
To get system information
138. What is the difference between SAN and NAS?
Search online
139. What is the location of system logs? E.g. messages
/var/log directory
140. How to setup an alias and what is it used for?
alias aliasname=”command”
It is used to created short-cuts for long commands
141. What is the purpose of “netstat” command?
Search online
142. What are terminal control keys, list any 3?
Crtl C, D and Z
143. Which command(s) you would run if you need to find out how many
processes are running on your system?
ps –ef | wc –l
144. What are the different types of shells?
sh, bash, ksh, csh etc.
145. How to delete a line when in vi editor mode?
dd
146. Which is the core of the operating system?
a) Shell
b) Kernel
c) Commands
d) Script
147. Which among the following interacts directly with system
hardware?
a) Shell
b) Commands
c) Kernel
d) Applications
148. How to save and quit from vi editor?
Shift ZZ or :wq!
149. What is the difference between a process and daemon?
Search online
150. What is the process or daemon name for NTP?
ntpd
0 Comments