{"id":59556,"date":"2024-02-27T21:22:12","date_gmt":"2024-02-27T13:22:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=59556"},"modified":"2024-02-27T21:22:12","modified_gmt":"2024-02-27T13:22:12","slug":"linux-engineer-test","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-engineer-test.html","title":{"rendered":"Linux\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u7b14\u8bd5\u9898\uff0830\u9898\uff09"},"content":{"rendered":"

\u5982\u679c\u60a8\u5bf9\u95ee\u9898\u6709\u7591\u95ee\uff0c\u6216\u8005\u8ba4\u4e3a\u7b54\u6848\u4e0d\u51c6\u786e\u7684\uff0c\u6b22\u8fce\u7559\u8a00\u4ea4\u6d41\u3002<\/p>\n

\u95ee\u9898\u5982\u4e0b\uff1a<\/strong><\/span><\/div>\n
<\/div>\n
1. cat -n file1file2 \u547d\u4ee4\u7684\u610f\u601d\u662f\uff1f<\/strong>
\nA \u53ea\u4f1a\u628a\u6587\u4ef6file1\u7684\u5185\u5bb9\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\u3002
\nB \u628a\u6587\u4ef6file1\u548cfile2\u8fde\u5728\u4e00\u8d77\uff0c\u7136\u540e\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\u3002
\nC \u521b\u5efa\u6587\u4ef6file1\u548cfile2
\nD \u628afile2\u7684\u5185\u5bb9\u8f93\u51fa\u5230file1\u4e2d\u5e76\u4fdd\u5b58
\n2. Linux\u4e0b\u67e5\u770b\u670d\u52a1\u7a0b\u5e8f\u5360\u7528\u7684\u7aef\u53e3\u547d\u4ee4\u662f\u4ec0\u4e48?<\/strong>
\nA ps -aux
\nB netstat \u2013apn
\nC watch
\nD lsof
\n3. \u5bf9\u4e8eLinux\u8bf4\u6cd5\uff0c\u4e0b\u5217\u8bf4\u6cd5\u6b63\u786e\u7684\u662f\uff08\uff09<\/strong>
\nA \u7ebf\u6027\u8bbf\u95ee\u5185\u5b58\u975e\u6cd5\u65f6\uff0c\u5f53\u524d\u7ebf\u7a0b\u4f1a\u8fdb\u5165\u4fe1\u53f7\u5904\u7406\u51fd\u6570
\nB \u7528mv\u547d\u4ee4\u79fb\u52a8\u6587\u4ef6\u65f6\uff0c\u6587\u4ef6\u7684\u4fee\u6539\u65f6\u95f4\u4f1a\u53d1\u751f\u53d8\u5316
\nC ulimit -c\u8bbe\u7f6e\u7684\u662f\u51fd\u6570\u8c03\u7528\u6808\u7684\u5927\u5c0f
\nD malloc\u51fd\u6570\u662f\u5e94\u7528\u7a0b\u5e8f\u5411\u64cd\u4f5c\u7cfb\u7edf\u7533\u8bf7\u5185\u5b58\u7684\u63a5\u53e3
\n4. \u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u4e0b\u9762\u90a3\u4e2a\u547d\u4ee4\u4e0d\u53ef\u4ee5\u7528\u6765\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\uff08\uff09<\/strong>
\nA cat
\nB ls
\nC less
\nD more
\n5. \u4e0b\u9762\u54ea\u4e2a\u547d\u4ee4\u53ef\u4ee5\u4ece\u6587\u672c\u6587\u4ef6\u7684\u6bcf\u4e00\u884c\u4e2d\u622a\u53d6\u6307\u5b9a\u5185\u5bb9\u7684\u6570\u636e\u3002<\/strong>
\nA cp
\nB dd
\nC fmt
\nD cut
\n6. Linux\u4e0b\u67e5\u770b\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\u7684\u547d\u4ee4\u662f\uff1f<\/strong>
\nA dd
\nB df
\nC top
\nD netstat
\n7. \u8bbeumask\u4e3a002, \u5219\u65b0\u5efa\u7acb\u7684\u6587\u4ef6\u7684\u6743\u9650\u662f\u4ec0\u4e48\uff1f<\/strong>
\nA -rw-rw-r\u2013
\nB rwxrwx-w-
\nC \u2014\u2014-w-
\nD rwxrwxr-x
\n8. Linux\u7cfb\u7edf\u4e2d\u67d0\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u5c5e\u4e8eroot\u5e76\u4e14\u6709setuid\uff0c\u5f53\u4e00\u4e2a\u666e\u901a\u7528\u6237mike\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u65f6\uff0c\u4ea7\u751f\u7684\u8fdb\u7a0b\u7684\u6709\u6548\u7528\u6237\u548c\u5b9e\u9645\u7528\u6237\u5206\u522b\u662f____\uff1f<\/strong>
\nA root mike
\nB root rooy
\nC mike root
\nD mike mike
\nE deamon mike
\nF mike deamon
\n9. \u5728linux\u7cfb\u7edf\u4e2d\uff0c\u7528\u6765\u5b58\u653e\u7cfb\u7edf\u6240\u9700\u8981\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u662f<\/strong>
\nA \/etc
\nB \/var
\nC \/root
\nD \/home
\n10. \u6587\u4ef6exer1 \u7684\u8bbf\u95ee\u6743\u9650\u4e3arw-r\u2013r\u2013 \uff0c\u73b0\u8981\u589e\u52a0\u6240\u6709\u7528\u6237\u7684\u6267\u884c\u6743\u9650\u548c\u540c\u7ec4\u7528\u6237\u7684\u5199\u6743\u9650\uff0c\u4e0b\u5217\u547d\u4ee4\u6b63\u786e\u7684\u662f<\/strong>
\nA chmoda+xg+w exer1
\nB chmod 765 exer1
\nC chmodo+x exer1
\nD chmodg+w exer1
\n11. linux\u67e5\u770b\u7cfb\u7edf\u6d3b\u8dc3\u8fdb\u7a0b\u7684\u547d\u4ee4\u662f\uff1f<\/strong>
\nA ps
\nB netstat
\nC df
\nD ifconfig
\n12. \u7528\u4ec0\u4e48\u547d\u4ee4\u6765\u663e\u793a\u5f53\u524d\u76ee\u5f55\uff1f<\/strong>
\nA echo $(pwd)
\nB echo pwd
\nC $pwd
\nD pwd | echo
\n13. crontab\u6587\u4ef6\u75316\u4e2a\u57df\u7ec4\u6210\uff0c\u6bcf\u4e2a\u57df\u4e4b\u95f4\u7528\u7a7a\u683c\u5206\u9694\uff0c\u4e0b\u5217\u54ea\u4e2a\u6392\u5217\u65b9\u5f0f\u662f\u6b63\u786e\u7684\uff1f<\/strong>
\nA MIN HOUR DAY MONTH YEAR COMMAND
\nB MIN HOUR DAY MONTH DAYOFWEEK COMMAND
\nC COMMAND HOUR DAY MONTH DAYOFWEEK
\nD COMMAND YEAR MONTH DAY HOUR MIN
\n14. \u5728 Linux \u4e2d\u67e5\u770b ARP \u7f13\u5b58\u8bb0\u5f55\u7684\u547d\u4ee4\u662f?<\/strong>
\nA \u201carp \u2013a\u201d
\nB \u201carp \u2013d\u201d
\nC \u201carp -L\u201d
\nD \u201carp \u2013D\u201d
\n15. \u4ee5\u4e0b\u51fd\u6570\u4e2d\uff0c\u548c\u5176\u4ed6\u51fd\u6570\u4e0d\u5c5e\u4e8e\u4e00\u7c7b\u7684\u662f_____\u3002<\/strong>
\nA fread
\nB gets
\nC getchar
\nD pread
\nE getline
\nF scanf
\n16. \u5728xdm\u7684\u914d\u7f6e\u76ee\u5f55\u4e2d\uff0c\u54ea\u4e2a\u6587\u4ef6\u7528\u6765\u8bbe\u7f6e\u5728\u7528\u6237\u901a\u8fc7xdm\u767b\u5f55\u540e\u81ea\u52a8\u8d77\u52a8\u7684\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong>
\nA The Xsession file
\nB The Xsetup_0 file
\nC The Xstart_up file
\nD The GiveConsole file
\n17. linux\u4e0b\u7ed9\u6587\u4ef6start.sh\u8bbe\u7f6e\u6743\u9650\u4e3a\u81ea\u5df1\u53ef\u8bfb\u53ef\u4fee\u6539\u53ef\u6267\u884c,\u7ec4\u5185\u7528\u6237\u4e3a\u53ef\u8bfb\u53ef\u6267\u884c\u4e0d\u53ef\u4fee\u6539,\u5176\u4f59\u7528\u6237\u6ca1\u6709\u4efb\u4f55\u6743\u9650,\u90a3\u4e48\u8bbe\u7f6e\u8be5\u6587\u4ef6\u6743\u9650\u7684\u547d\u4ee4\u4e3a()<\/strong>
\nA chmod start.sh 706
\nB chmod start.sh 750
\nC chmod start.sh 705
\nD chmod start.sh 777
\n18. \u91c7\u7528\u591a\u8def\u590d\u7528I\/O\u76d1\u542c3\u4e2a\u5957\u63a5\u5b57\u7684\u6570\u636e\u65f6\uff0c\u5982\u679c\u5957\u63a5\u5b57\u63cf\u8ff0\u7b26\u5206\u522b\u662f\uff1a5,17,19,\u5219<\/strong>
\nselect(int maxfd,struct fd_set* rdset,NULL,NULL)<\/strong>
\n\u4e2d\u7684maxfd\u5e94\u53d6\u4e3a\uff08\uff09<\/strong>
\nA 4
\nB 20
\nC 5
\nD 9
\n19. Linux\u7cfb\u7edf\u4e2d\u67d0\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u5c5e\u4e8eroot\u5e76\u4e14\u6709setid\uff0c\u5f53\u4e00\u4e2a\u666e\u901a\u7528\u6237 mike\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u65f6\uff0c\u4ea7\u751f\u7684\u8fdb\u7a0b\u7684\u6709\u6548\u7528\u6237\u548c\u5b9e\u9645\u7528\u6237\u5206\u522b\u662f\uff1f<\/strong>
\nA root mike
\nB root root
\nC mike root
\nD mike mike
\nE deamon mike
\nF mike deamon
\n20. \u5728Linux \u7cfb\u7edf\u4e2d\uff0c\u5728\u8fd0\u884c\u4e00\u4e2a\u7a0b\u5e8f\u65f6\uff0c\u7a0b\u5e8f\u4e2d\u672a\u521d\u59cb\u5316\u7684\u5168\u5c40\u53d8\u91cf\u4f1a\u88ab\u52a0\u8f7d\u5230\u4ee5\u4e0b\u54ea\u4e2a\u5185\u5b58\u6bb5\u4e2d?<\/strong>
\nA BSS
\nB TEXT
\nC DATA
\nD STACK
\n21. int main(){fork()||fork();}\u5171\u521b\u5efa\u51e0\u4e2a\u8fdb\u7a0b\uff1a_____<\/strong>
\nA 1
\nB 2
\nC 3
\nD 4
\nE 5
\nF 6
\n22. \u4e0d\u9700\u8981\u7f16\u8bd1\u5185\u6838\u7684\u60c5\u51b5\u662f \uff08\uff09\u3002<\/strong>
\nA \u5220\u9664\u7cfb\u7edf\u4e0d\u7528\u7684\u8bbe\u5907\u9a71\u52a8\u7a0b\u5e8f\u65f6
\nB \u5347\u7ea7\u5185\u6838\u65f6
\nC \u6dfb\u52a0\u65b0\u786c\u4ef6\u65f6
\nD \u5c06\u7f51\u5361\u6fc0\u6d3b
\n23. \u4e0b\u5217\u5173\u4e8e\u7ba1\u9053(Pipe)\u901a\u4fe1\u7684\u53d9\u8ff0\u4e2d\uff0c\u6b63\u786e\u7684\u662f()<\/strong>
\nA \u4e00\u4e2a\u7ba1\u9053\u53ef\u4ee5\u5b9e\u73b0\u53cc\u5411\u6570\u636e\u4f20\u8f93
\nB \u7ba1\u9053\u7684\u5bb9\u91cf\u4ec5\u53d7\u78c1\u76d8\u5bb9\u91cf\u5927\u5c0f\u9650\u5236
\nC \u8fdb\u7a0b\u5bf9\u7ba1\u9053\u8fdb\u884c\u8bfb\u64cd\u4f5c\u548c\u5199\u64cd\u4f5c\u90fd\u53ef\u80fd\u88ab\u963b\u585e
\nD \u4e00\u4e2a\u7ba1\u9053\u53ea\u80fd\u6709\u4e00\u4e2a\u8bfb\u8fdb\u7a0b\u6216\u4e00\u4e2a\u5199\u8fdb\u7a0b\u5bf9\u5176\u64cd\u4f5c
\n24. \uff08\u591a\u9009\uff09\u4e0b\u9762\u54ea\u4e9b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bfile1\u6587\u4ef6\u7684\u7b2c300-500\u884c\u7684\u5185\u5bb9\uff1f<\/strong>
\nA cat file1 | tail -n +300 | head -n 200
\nB cat file1| head -n 500 | tail -n +300
\nC sed -n \u2018300,500p\u2019 file1
\n25. \uff08\u591a\u9009\uff09\u5982\u4f55\u67e5\u770b\u5f53\u524dLinux\u7cfb\u7edf\u7684\u72b6\u6001,\u5982CPU\u4f7f\u7528,\u5185\u5b58\u4f7f\u7528,\u8d1f\u8f7d\u60c5\u51b5\uff0c\u4e0b\u5217\u63cf\u8ff0\u6b63\u786e\u7684\u662f\uff1f<\/strong>
\nA \u53ef\u4ee5\u4f7f\u7528top\u547d\u4ee4\u5206\u6790CPU\u4f7f\u7528\uff0c\u5185\u5b58\u4f7f\u7528\uff0c\u8d1f\u8f7d\u7b49\u60c5\u51b5
\nB \u53ef\u4ee5\u4f7f\u7528free\u67e5\u770b\u5185\u5b58\u6574\u4f53\u7684\u4f7f\u7528\u60c5\u51b5
\nC \u53ef\u4ee5\u4f7f\u7528cat \/proc\/meminfo\u67e5\u770b\u5185\u5b58\u66f4\u8be6\u7ec6\u7684\u60c5\u51b5
\nD \u4ee5\u4e0a\u63cf\u8ff0\u90fd\u4e0d\u6b63\u786e
\n26. \uff08\u591a\u9009\uff09\u4e0b\u9762\u7684\u5185\u5b58\u7ba1\u7406\u6a21\u5f0f\u4e2d\uff0c\u4f1a\u4ea7\u751f\u5916\u96f6\u5934\u7684\u662f\uff08\uff09<\/strong>
\nA \u9875\u5f0f
\nB \u6bb5\u5f0f
\nC \u8bf7\u6c42\u9875\u5f0f
\nD \u8bf7\u6c42\u6bb5\u5f0f
\n27. \uff08\u591a\u9009\uff09bash\u4e2d\uff0c\u9700\u8981\u5c06\u811a\u672cdemo.sh\u7684\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u91cd\u5b9a\u5411\u81f3\u6587\u4ef6demo.log\uff0c\u4ee5\u4e0b\u54ea\u4e9b\u7528\u6cd5\u662f\u6b63\u786e\u7684\uff08\uff09<\/strong>
\nA bash demo.sh &>demo.log
\nB bash demo.sh>&demo.log
\nC bash demo.sh >demo.log 2>&1
\nD bash demo.sh 2>demo.log 1>demo.log
\n28. \uff08\u591a\u9009\uff09\u73b0\u5728\u5c06\/\u76ee\u5f55\u4e0b\u7684www\u6587\u4ef6\u6743\u9650\u6539\u4e3a\u53ea\u6709\u4e3b\u7528\u6237\u6709\u6267\u884c\u7684\u6743\u9650\u7684\u6709<\/strong>
\nA chmod 100 \/www
\nB chmod 001 \/www
\nC chmod u+x ,g-x,o-x \/www
\nD chmod o-x,g-x,u-x \/www
\n29. \uff08\u591a\u9009\uff09\u6709\u547d\u4ee4\uff1a<\/strong>
\nawk\u2019BEGIN { Arr[2,79]=78 __________ }\u2019<\/strong>
\n\u4e3a\u4e86\u8ba9\u6267\u884c\u7684\u7ed3\u679c\u662f78\uff0c\u5e94\u8be5\u586b\uff08\uff09\u8bed\u53e5<\/strong>
\nA print Arr[\u201c2\/03479\u201d]
\nB print Arr[2,79]
\nC idx=2 SUBSEP 79;print Arr[idx]
\nD print Arr[ 2, 79]
\n30. \uff08\u586b\u7a7a\u9898\uff09\u5728linux\u4e2d\uff0c\u67d0\u6587\u4ef6\u7684\u6743\u9650\u4e3a\uff1adrw-r\u2013r\u2013\uff0c\u8be5\u6743\u9650\u7528\u6570\u503c\u5f62\u5f0f\u8868\u793a\u4e3a_______ \uff0c\u4fee\u6539\u6587\u4ef6\u6743\u9650\u7528_______\u547d\u4ee4\u3002<\/strong><\/div>\n
\u7b54\u6848\u5982\u4e0b\uff1a<\/strong><\/span><\/div>\n
1. B
\n2. B
\n3. A
\n4. B
\n5. D
\n6. B
\n7. A
\n8. A
\n9. A
\n10. A
\n11. A
\n12. A
\n13. B
\n14. A
\n15. D
\n16. B
\n17. B
\n18. B
\n19. A
\n20. A
\n21. C
\n22. D
\n23. C
\n24. ABC
\n25. ABC
\n26. BD
\n27. ABC
\n28. AC
\n29. ABCD
\n30. 644;chmod<\/div>\n
\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/12464.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-engineer-test.html<\/a>\u7f16\u8f91\u5458\uff1a\u534e\u4e16\u53d1\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5982\u679c\u60a8\u5bf9\u95ee\u9898\u6709\u7591\u95ee\uff0c\u6216\u8005\u8ba4\u4e3a\u7b54\u6848\u4e0d\u51c6\u786e\u7684\uff0c\u6b22\u8fce\u7559\u8a00\u4ea4\u6d41\u30021. cat -n file1file2 \u547d\u4ee4\u7684\u610f\u601d\u662f\uff1f<\/p>\n","protected":false},"author":63,"featured_media":88188,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-59556","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/59556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=59556"}],"version-history":[{"count":10,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/59556\/revisions"}],"predecessor-version":[{"id":89686,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/59556\/revisions\/89686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/88188"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=59556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=59556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=59556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}