{"id":8698,"date":"2020-01-14T06:23:23","date_gmt":"2020-01-14T06:23:23","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8698"},"modified":"2020-01-14T12:23:27","modified_gmt":"2020-01-14T12:23:27","slug":"linux-interview-questions-and-answer-part-11","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/linux-interview-questions-and-answer-part-11\/","title":{"rendered":"Linux Interview Questions and Answer \u2013 Part 11"},"content":{"rendered":"\n<p><strong>It is common for source packages to be downloaded to which directory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\/src<\/li><li><strong>\/usr\/src (Ans)<\/strong><\/li><li>\/home<\/li><li>\/usr\/bin<\/li><\/ul>\n\n\n\n<p><strong>Using lsof which character is used to filter by host<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>#<\/li><li>=<\/li><li><strong>@ (Ans)<\/strong><\/li><li>H<\/li><\/ul>\n\n\n\n<p><strong>Uptime shows the load averages of what time periods?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1,10 and 15 minutes<\/li><li>1,2,3 seconds<\/li><li><strong>1,5 and 15 minutes (Ans)<\/strong><\/li><li>1,2,3 minutes<\/li><\/ul>\n\n\n\n<p><strong>Which template can be used to fill in default values for Nagios hosts?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>generic-host (Ans)<\/strong><\/li><li>host<\/li><li>host-generic<\/li><li>generic_host<\/li><\/ul>\n\n\n\n<p><strong>Which option used with sar will allow you to read from a certain file?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>-f (Ans)<\/strong><\/li><li>-I<\/li><li>-F<\/li><li>-i<br> <\/li><\/ul>\n\n\n\n<p><strong>Which option can be used with nagios3 to test the configuration?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>-v (Ans)<\/strong><\/li><li>-t<\/li><li>-r<\/li><li>-f<\/li><\/ul>\n\n\n\n<p><strong>Which option can specify a DNS server to use with dig<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>@8.8.8.8 (Ans)<\/strong><\/li><li>AT8.8.8.8.8<\/li><li>-s8.8.8.8<\/li><li>=8.8.8.8<\/li><\/ul>\n\n\n\n<p><strong>Which MySQL command is used to new accounts take effect immediately?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>READ USERS<\/li><li>EXIT<\/li><li><strong>FLUSH PRIVILEGES (Ans)<\/strong><\/li><li>LOAD USERS<\/li><\/ul>\n\n\n\n<p><strong>How can we list sockets with netstat<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>-t<\/li><li>-s<\/li><li>-u<\/li><li><strong>-x (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which tape device represent a rewindable model?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\/dev\/st0 (Ans)<\/strong><\/li><li>\/dev\/rwst0<\/li><li>\/dev\/rst0<\/li><li>\/dev\/nst0<\/li><\/ul>\n\n\n\n<p><strong>By default which port is used by the Bacula Director<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>9100<\/li><li>9102<\/li><li><strong>9101 (Ans)<\/strong><\/li><li>9103<\/li><\/ul>\n\n\n\n<p><strong>On a Red Hat based system how are the pre-requisites to .\/configure installed?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sudo yum groupinstall &#8220;Development Tools&#8221; (Ans)<\/strong><\/li><li>sudo install tools<\/li><li>sudo apt-get install build-essentials<\/li><li>sudo zypper install &#8211;type pattern devel_basis<\/li><\/ul>\n\n\n\n<p><strong>What is the name os the dhcp service on Debian based systems?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>dhcpd<\/li><li><strong>isc-dhcp-server (Ans)<\/strong><\/li><li>dhcpcd<\/li><li>dhcp<\/li><\/ul>\n\n\n\n<p><strong>Which web user account is created during the installation of nagios3?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>nagios<\/li><li>admin<\/li><li><strong>nagiosadmin (Ans)<\/strong><\/li><li>root<\/li><\/ul>\n\n\n\n<p><strong>Which jump target do we configure when setting up NAT?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>RNAT<\/li><li>NAT<\/li><li><strong>MASQUERADE (Ans)<\/strong><\/li><li>iptables<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>It is common for source packages to be downloaded to which directory? \/src \/usr\/src (Ans) \/home \/usr\/bin Using lsof which character is used to filter by host # = @&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8728,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4957],"tags":[5671,333,460],"class_list":["post-8698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-certain-file","tag-command","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=8698"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8698\/revisions"}],"predecessor-version":[{"id":8699,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8698\/revisions\/8699"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8728"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}