{"id":8689,"date":"2020-01-13T07:40:44","date_gmt":"2020-01-13T07:40:44","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8689"},"modified":"2020-01-14T05:08:34","modified_gmt":"2020-01-14T05:08:34","slug":"linux-interview-questions-and-answer-part-10","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/linux-interview-questions-and-answer-part-10\/","title":{"rendered":"Linux Interview Questions and Answer \u2013 Part 10"},"content":{"rendered":"\n<p><strong>How can we use lsof to display open ports?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>lsof -i<\/li><li>lsof -w<\/li><li>lsof -u<\/li><li><strong>sudo lsof -i (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>On SUSE which file stores the static hostname<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\/etc\/hosts<\/li><li>\/eyc\/hostname<\/li><li><strong>\/etc\/HOSTNAME (Ans)<\/strong><\/li><li>\/etc\/sysconfig\/network<\/li><\/ul>\n\n\n\n<p><strong>Which file is used for static ARP entries<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\/etc\/services<\/li><li><strong>\/etc\/ethers (Ans)<\/strong><\/li><li>\/etc\/networks<\/li><li>\/etc\/hosts<\/li><\/ul>\n\n\n\n<p><strong>Who should the group owner of the wall program be?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>tty (Ans)<\/strong><\/li><li>wall<\/li><li>wheel<\/li><li>root<\/li><\/ul>\n\n\n\n<p><strong>Including the LPIC-1 exams how many exams in total do you need to pass for LPIC-2<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>2<\/li><li>3 <\/li><li><strong>4 (Ans)<\/strong><\/li><li>5<\/li><\/ul>\n\n\n\n<p><strong>Which option used with sysctl reads and loads the configuration file?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>-p (Ans)<\/strong><\/li><li>-r<\/li><li>-l<\/li><li>-m<\/li><\/ul>\n\n\n\n<p><strong>How are debian source repositories listed in the sources.list file?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>source<\/li><li><strong>deb-src (Ans)<\/strong><\/li><li>deb<\/li><li>debian-source<\/li><\/ul>\n\n\n\n<p><strong>To expand a tar archive in Linux which option is used ?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>-i<\/li><li>-e<\/li><li><strong>-x (Ans)<\/strong><\/li><li>-t<\/li><\/ul>\n\n\n\n<p><strong>What is the name of the nagios service in Ubunto 14.04?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ng3<\/li><li><strong>nagios3 (Ans)<\/strong><\/li><li>nagios<\/li><li>ng<\/li><\/ul>\n\n\n\n<p><strong>For Red Hat and Centos which repo do we need to add for collectd?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LABEL<\/li><li>LPEL<\/li><li>HTTP<\/li><li><strong>EPEL (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Using ifconfig as a standard user which is the correct syntax to activate an interface?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sudo ifconfig eth0 up (Ans)<\/strong><\/li><li>ifconfig eth0 up<\/li><li>sudo ifconfig up eth0<\/li><li>ifconfig up eth0<\/li><\/ul>\n\n\n\n<p><strong>Which could be the correct syntax to synchronized with a remote rsync server module?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>rsync -av server::\/doc\/ \/tmp\/<\/li><li>rsync -av server:doc\/ \/tmp\/<\/li><li>rsync -av server\/::doc\/ \/tmp\/<\/li><li><strong>rsync -av server::doc\/ \/tmp\/ (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>The output from vmstat show memory used as Cache, what does this represent?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Directory listing and file permissions<\/li><li>Virtual RAM<\/li><li>Disk space<\/li><li><strong>File content (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which variable to we need to set in the \/etc\/init.d\/hostapd script?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>DAEMON_CONF (Ans)<\/strong><\/li><li>CONF<\/li><li>DAEMON<\/li><li>D_CONF<\/li><\/ul>\n\n\n\n<p><strong>By default which database is used when installing Bacula on Ubuntu?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MSSQL<\/li><li><strong>MySQL (Ans)<\/strong><\/li><li>PostgreSQL<\/li><li>SQLite<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How can we use lsof to display open ports? lsof -i lsof -w lsof -u sudo lsof -i (Ans) On SUSE which file stores the static hostname \/etc\/hosts \/eyc\/hostname \/etc\/HOSTNAME&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8691,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4957],"tags":[5669,5668,5670],"class_list":["post-8689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-configuration-file","tag-display-open-ports","tag-sources-list-file"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8689","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=8689"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8689\/revisions"}],"predecessor-version":[{"id":8690,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8689\/revisions\/8690"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8691"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}