{"id":16523,"date":"2024-11-18T12:58:42","date_gmt":"2024-11-18T04:58:42","guid":{"rendered":"https:\/\/fwq.ai\/blog\/16523\/"},"modified":"2024-11-18T12:58:42","modified_gmt":"2024-11-18T04:58:42","slug":"600-%e6%9d%a1%e6%9c%80%e5%bc%ba-linux-%e5%91%bd%e4%bb%a4%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/16523\/","title":{"rendered":"600 \u6761\u6700\u5f3a Linux \u547d\u4ee4\u603b\u7ed3"},"content":{"rendered":"<p> <\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u4eca\u5929\uff0c\u5e26\u6765\u4e00\u7bc7 Linux \u547d\u4ee4\u603b\u7ed3\u7684\u975e\u5e38\u5168\u7684\u6587\u7ae0\uff0c\u4e5f\u662f\u6211\u4eec\u5e73\u65f6\u5de5\u4f5c\u4e2d\u4f7f\u7528\u7387\u975e\u5e38\u9ad8\u7684\u64cd\u4f5c\u547d\u4ee4\uff0c\u547d\u4ee4\u6709\u70b9\u591a\uff0c\u5efa\u8bae\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u5148\u6536\u85cf\u540e\u9605\u8bfb\u3002<\/span><\/p>\n<p style=\"text-align:center\"><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/275\/013\/31bd6cfc3d9421432a042241b9ebeb88-0.jpg\" class=\"aligncenter\" title=\"600 \u6761\u6700\u5f3a Linux \u547d\u4ee4\u603b\u7ed3\u63d2\u56fe\" alt=\"600 \u6761\u6700\u5f3a Linux \u547d\u4ee4\u603b\u7ed3\u63d2\u56fe\" \/><\/span><\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">1. \u57fa\u672c\u547d\u4ee4<\/span><\/h2>\n<pre>uname&nbsp;-m&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784\nuname&nbsp;-r&nbsp;\u663e\u793a\u6b63\u5728\u4f7f\u7528\u7684\u5185\u6838\u7248\u672c\ndmidecode&nbsp;-q&nbsp;\u663e\u793a\u786c\u4ef6\u7cfb\u7edf\u90e8\u4ef6\n(SMBIOS&nbsp;\/&nbsp;DMI)&nbsp;hdparm&nbsp;-i&nbsp;\/dev\/hda&nbsp;\u7f57\u5217\u4e00\u4e2a\u78c1\u76d8\u7684\u67b6\u6784\u7279\u6027\nhdparm&nbsp;-tT&nbsp;\/dev\/sda&nbsp;\u5728\u78c1\u76d8\u4e0a\u6267\u884c\u6d4b\u8bd5\u6027\u8bfb\u53d6\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f\narch&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784\nuname&nbsp;-m&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784\nuname&nbsp;-r&nbsp;\u663e\u793a\u6b63\u5728\u4f7f\u7528\u7684\u5185\u6838\u7248\u672c\ndmidecode&nbsp;-q&nbsp;\u663e\u793a\u786c\u4ef6\u7cfb\u7edf\u90e8\u4ef6&nbsp;-&nbsp;(SMBIOS&nbsp;\/&nbsp;DMI)\nhdparm&nbsp;-i&nbsp;\/dev\/hda&nbsp;\u7f57\u5217\u4e00\u4e2a\u78c1\u76d8\u7684\u67b6\u6784\u7279\u6027\nhdparm&nbsp;-tT&nbsp;\/dev\/sda&nbsp;\u5728\u78c1\u76d8\u4e0a\u6267\u884c\u6d4b\u8bd5\u6027\u8bfb\u53d6\u64cd\u4f5c\ncat&nbsp;\/proc\/cpuinfo&nbsp;\u663e\u793aCPU&nbsp;info\u7684\u4fe1\u606f\ncat&nbsp;\/proc\/interrupts&nbsp;\u663e\u793a\u4e2d\u65ad\ncat&nbsp;\/proc\/meminfo&nbsp;\u6821\u9a8c\u5185\u5b58\u4f7f\u7528\ncat&nbsp;\/proc\/swaps&nbsp;\u663e\u793a\u54ea\u4e9bswap\u88ab\u4f7f\u7528\ncat&nbsp;\/proc\/version&nbsp;\u663e\u793a\u5185\u6838\u7684\u7248\u672c\ncat&nbsp;\/proc\/net\/dev&nbsp;\u663e\u793a\u7f51\u7edc\u9002\u914d\u5668\u53ca\u7edf\u8ba1\ncat&nbsp;\/proc\/mounts&nbsp;\u663e\u793a\u5df2\u52a0\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\nlspci&nbsp;-tv&nbsp;\u7f57\u5217&nbsp;PCI&nbsp;\u8bbe\u5907\nlsusb&nbsp;-tv&nbsp;\u663e\u793a&nbsp;USB&nbsp;\u8bbe\u5907\ndate&nbsp;\u663e\u793a\u7cfb\u7edf\u65e5\u671f\ncal&nbsp;2007&nbsp;\u663e\u793a2007\u5e74\u7684\u65e5\u5386\u8868\ndate&nbsp;041217002007.00&nbsp;\u8bbe\u7f6e\u65e5\u671f\u548c\u65f6\u95f4&nbsp;-&nbsp;\u6708\u65e5\u65f6\u5206\u5e74.\u79d2\nclock&nbsp;-w&nbsp;\u5c06\u65f6\u95f4\u4fee\u6539\u4fdd\u5b58\u5230&nbsp;BIOS<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">2. \u5173\u673a<\/span><\/h2>\n<pre>shutdown&nbsp;-h&nbsp;now&nbsp;\u5173\u95ed\u7cfb\u7edf(1)\ninit&nbsp;0&nbsp;\u5173\u95ed\u7cfb\u7edf(2)\ntelinit&nbsp;0&nbsp;\u5173\u95ed\u7cfb\u7edf(3)\nshutdown&nbsp;-h&nbsp;hours:minutes&nbsp;&amp;amp;&nbsp;\u6309\u9884\u5b9a\u65f6\u95f4\u5173\u95ed\u7cfb\u7edf\nshutdown&nbsp;-c&nbsp;\u53d6\u6d88\u6309\u9884\u5b9a\u65f6\u95f4\u5173\u95ed\u7cfb\u7edf\nshutdown&nbsp;-r&nbsp;now&nbsp;\u91cd\u542f(1)\nreboot&nbsp;\u91cd\u542f(2)\nlogout&nbsp;\u6ce8\u9500<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">3. \u6587\u4ef6\u548c\u76ee\u5f55<\/span><\/h2>\n<pre>cd&nbsp;\/home&nbsp;\u8fdb\u5165&nbsp;'\/&nbsp;home'&nbsp;\u76ee\u5f55'\ncd&nbsp;..&nbsp;\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55\ncd&nbsp;..\/..&nbsp;\u8fd4\u56de\u4e0a\u4e24\u7ea7\u76ee\u5f55\ncd&nbsp;\u8fdb\u5165\u4e2a\u4eba\u7684\u4e3b\u76ee\u5f55\ncd&nbsp;~user1&nbsp;\u8fdb\u5165\u4e2a\u4eba\u7684\u4e3b\u76ee\u5f55\ncd&nbsp;-&nbsp;\u8fd4\u56de\u4e0a\u6b21\u6240\u5728\u7684\u76ee\u5f55\npwd&nbsp;\u663e\u793a\u5de5\u4f5c\u8def\u5f84\nls&nbsp;\u67e5\u770b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\nls&nbsp;-F&nbsp;\u67e5\u770b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\nls&nbsp;-l&nbsp;\u663e\u793a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u8be6\u7ec6\u8d44\u6599\nls&nbsp;-a&nbsp;\u663e\u793a\u9690\u85cf\u6587\u4ef6\nls&nbsp;*[0-9]*&nbsp;\u663e\u793a\u5305\u542b\u6570\u5b57\u7684\u6587\u4ef6\u540d\u548c\u76ee\u5f55\u540d\ntree&nbsp;\u663e\u793a\u6587\u4ef6\u548c\u76ee\u5f55\u7531\u6839\u76ee\u5f55\u5f00\u59cb\u7684\u6811\u5f62\u7ed3\u6784(1)\nlstree&nbsp;\u663e\u793a\u6587\u4ef6\u548c\u76ee\u5f55\u7531\u6839\u76ee\u5f55\u5f00\u59cb\u7684\u6811\u5f62\u7ed3\u6784(2)\nmkdir&nbsp;dir1&nbsp;\u521b\u5efa\u4e00\u4e2a\u53eb\u505a&nbsp;'dir1'&nbsp;\u7684\u76ee\u5f55'\nmkdir&nbsp;dir1&nbsp;dir2&nbsp;\u540c\u65f6\u521b\u5efa\u4e24\u4e2a\u76ee\u5f55\nmkdir&nbsp;-p&nbsp;\/tmp\/dir1\/dir2&nbsp;\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u6811\nrm&nbsp;-f&nbsp;file1&nbsp;\u5220\u9664\u4e00\u4e2a\u53eb\u505a&nbsp;'file1'&nbsp;\u7684\u6587\u4ef6'\nrmdir&nbsp;dir1&nbsp;\u5220\u9664\u4e00\u4e2a\u53eb\u505a&nbsp;'dir1'&nbsp;\u7684\u76ee\u5f55'\nrm&nbsp;-rf&nbsp;dir1&nbsp;\u5220\u9664\u4e00\u4e2a\u53eb\u505a&nbsp;'dir1'&nbsp;\u7684\u76ee\u5f55\u5e76\u540c\u65f6\u5220\u9664\u5176\u5185\u5bb9\nrm&nbsp;-rf&nbsp;dir1&nbsp;dir2&nbsp;\u540c\u65f6\u5220\u9664\u4e24\u4e2a\u76ee\u5f55\u53ca\u5b83\u4eec\u7684\u5185\u5bb9\nmv&nbsp;dir1&nbsp;new_dir&nbsp;\u91cd\u547d\u540d\/\u79fb\u52a8&nbsp;\u4e00\u4e2a\u76ee\u5f55\ncp&nbsp;file1&nbsp;file2&nbsp;\u590d\u5236\u4e00\u4e2a\u6587\u4ef6\ncp&nbsp;dir\/*&nbsp;.&nbsp;\u590d\u5236\u4e00\u4e2a\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\ncp&nbsp;-a&nbsp;\/tmp\/dir1&nbsp;.&nbsp;\u590d\u5236\u4e00\u4e2a\u76ee\u5f55\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\ncp&nbsp;-a&nbsp;dir1&nbsp;dir2&nbsp;\u590d\u5236\u4e00\u4e2a\u76ee\u5f55\nln&nbsp;-s&nbsp;file1&nbsp;lnk1&nbsp;\u521b\u5efa\u4e00\u4e2a\u6307\u5411\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u8f6f\u94fe\u63a5\nln&nbsp;file1&nbsp;lnk1&nbsp;\u521b\u5efa\u4e00\u4e2a\u6307\u5411\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u7269\u7406\u94fe\u63a5\ntouch&nbsp;-t&nbsp;0712250000&nbsp;file1&nbsp;\u4fee\u6539\u4e00\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u65f6\u95f4\u6233&nbsp;-&nbsp;(YYMMDDhhmm)\nfile&nbsp;file1&nbsp;outputs&nbsp;the&nbsp;mime&nbsp;type&nbsp;of&nbsp;the&nbsp;file&nbsp;as&nbsp;text\niconv&nbsp;-l&nbsp;\u5217\u51fa\u5df2\u77e5\u7684\u7f16\u7801\niconv&nbsp;-f&nbsp;fromEncoding&nbsp;-t&nbsp;toEncoding&nbsp;inputFile&nbsp;&amp;gt;&nbsp;outputFile&nbsp;creates&nbsp;a&nbsp;new&nbsp;from&nbsp;the&nbsp;given&nbsp;input&nbsp;file&nbsp;by&nbsp;assuming&nbsp;it&nbsp;is&nbsp;encoded&nbsp;in&nbsp;fromEncoding&nbsp;and&nbsp;converting&nbsp;it&nbsp;to&nbsp;toEncoding.\nfind&nbsp;.&nbsp;-maxdepth&nbsp;1&nbsp;-name&nbsp;*.jpg&nbsp;-print&nbsp;-exec&nbsp;convert&nbsp;\"{}\"&nbsp;-resize&nbsp;80x60&nbsp;\"thumbs\/{}\"&nbsp;;&nbsp;batch&nbsp;resize&nbsp;files&nbsp;in&nbsp;the&nbsp;current&nbsp;directory&nbsp;and&nbsp;send&nbsp;them&nbsp;to&nbsp;a&nbsp;thumbnails&nbsp;directory&nbsp;(requires&nbsp;convert&nbsp;from&nbsp;Imagemagick)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">4. \u6587\u4ef6\u641c\u7d22<\/span><\/h2>\n<pre>find&nbsp;\/&nbsp;-name&nbsp;file1&nbsp;\u4ece&nbsp;'\/'&nbsp;\u5f00\u59cb\u8fdb\u5165\u6839\u6587\u4ef6\u7cfb\u7edf\u641c\u7d22\u6587\u4ef6\u548c\u76ee\u5f55\nfind&nbsp;\/&nbsp;-user&nbsp;user1&nbsp;\u641c\u7d22\u5c5e\u4e8e\u7528\u6237&nbsp;'user1'&nbsp;\u7684\u6587\u4ef6\u548c\u76ee\u5f55\nfind&nbsp;\/home\/user1&nbsp;-name&nbsp;*.bin&nbsp;\u5728\u76ee\u5f55&nbsp;'\/&nbsp;home\/user1'&nbsp;\u4e2d\u641c\u7d22\u5e26\u6709'.bin'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\nfind&nbsp;\/usr\/bin&nbsp;-type&nbsp;f&nbsp;-atime&nbsp;+100&nbsp;\u641c\u7d22\u5728\u8fc7\u53bb100\u5929\u5185\u672a\u88ab\u4f7f\u7528\u8fc7\u7684\u6267\u884c\u6587\u4ef6\nfind&nbsp;\/usr\/bin&nbsp;-type&nbsp;f&nbsp;-mtime&nbsp;-10&nbsp;\u641c\u7d22\u572810\u5929\u5185\u88ab\u521b\u5efa\u6216\u8005\u4fee\u6539\u8fc7\u7684\u6587\u4ef6\nfind&nbsp;\/&nbsp;-name&nbsp;*.rpm&nbsp;-exec&nbsp;chmod&nbsp;755&nbsp;'{}'&nbsp;;&nbsp;\u641c\u7d22\u4ee5&nbsp;'.rpm'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\u5e76\u5b9a\u4e49\u5176\u6743\u9650\nfind&nbsp;\/&nbsp;-xdev&nbsp;-name&nbsp;*.rpm&nbsp;\u641c\u7d22\u4ee5&nbsp;'.rpm'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\uff0c\u5ffd\u7565\u5149\u9a71\u3001\u6377\u76d8\u7b49\u53ef\u79fb\u52a8\u8bbe\u5907\nlocate&nbsp;*.ps&nbsp;\u5bfb\u627e\u4ee5&nbsp;'.ps'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6&nbsp;-&nbsp;\u5148\u8fd0\u884c&nbsp;'updatedb'&nbsp;\u547d\u4ee4\nwhereis&nbsp;halt&nbsp;\u663e\u793a\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u6e90\u7801\u6216man\u7684\u4f4d\u7f6e\nwhich&nbsp;halt&nbsp;\u663e\u793a\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u6216\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5b8c\u6574\u8def\u5f84<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">5. \u6302\u8f7d\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf<\/span><\/h2>\n<pre>mount&nbsp;\/dev\/hda2&nbsp;\/mnt\/hda2&nbsp;\u6302\u8f7d\u4e00\u4e2a\u53eb\u505ahda2\u7684\u76d8&nbsp;-&nbsp;\u786e\u5b9a\u76ee\u5f55&nbsp;'\/&nbsp;mnt\/hda2'&nbsp;\u5df2\u7ecf\u5b58\u5728\numount&nbsp;\/dev\/hda2&nbsp;\u5378\u8f7d\u4e00\u4e2a\u53eb\u505ahda2\u7684\u76d8&nbsp;-&nbsp;\u5148\u4ece\u6302\u8f7d\u70b9&nbsp;'\/&nbsp;mnt\/hda2'&nbsp;\u9000\u51fa\nfuser&nbsp;-km&nbsp;\/mnt\/hda2&nbsp;\u5f53\u8bbe\u5907\u7e41\u5fd9\u65f6\u5f3a\u5236\u5378\u8f7d\numount&nbsp;-n&nbsp;\/mnt\/hda2&nbsp;\u8fd0\u884c\u5378\u8f7d\u64cd\u4f5c\u800c\u4e0d\u5199\u5165&nbsp;\/etc\/mtab&nbsp;\u6587\u4ef6-&nbsp;\u5f53\u6587\u4ef6\u4e3a\u53ea\u8bfb\u6216\u5f53\u78c1\u76d8\u5199\u6ee1\u65f6\u975e\u5e38\u6709\u7528\nmount&nbsp;\/dev\/fd0&nbsp;\/mnt\/floppy&nbsp;\u6302\u8f7d\u4e00\u4e2a\u8f6f\u76d8\nmount&nbsp;\/dev\/cdrom&nbsp;\/mnt\/cdrom&nbsp;\u6302\u8f7d\u4e00\u4e2acdrom\u6216dvdrom\nmount&nbsp;\/dev\/hdc&nbsp;\/mnt\/cdrecorder&nbsp;\u6302\u8f7d\u4e00\u4e2acdrw\u6216dvdrom\nmount&nbsp;\/dev\/hdb&nbsp;\/mnt\/cdrecorder&nbsp;\u6302\u8f7d\u4e00\u4e2acdrw\u6216dvdrom\nmount&nbsp;-o&nbsp;loop&nbsp;file.iso&nbsp;\/mnt\/cdrom&nbsp;\u6302\u8f7d\u4e00\u4e2a\u6587\u4ef6\u6216ISO\u955c\u50cf\u6587\u4ef6\nmount&nbsp;-t&nbsp;vfat&nbsp;\/dev\/hda5&nbsp;\/mnt\/hda5&nbsp;\u6302\u8f7d\u4e00\u4e2aWindows&nbsp;FAT32\u6587\u4ef6\u7cfb\u7edf\nmount&nbsp;\/dev\/sda1&nbsp;\/mnt\/usbdisk&nbsp;\u6302\u8f7d\u4e00\u4e2ausb&nbsp;\u6377\u76d8\u6216\u95ea\u5b58\u8bbe\u5907\nmount&nbsp;-t&nbsp;smbfs&nbsp;-o&nbsp;username=user,password=pass&nbsp;\/\/WinClient\/share&nbsp;\/mnt\/share&nbsp;\u6302\u8f7d\u4e00\u4e2awindows\u7f51\u7edc\u5171\u4eab<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">6. \u78c1\u76d8\u7a7a\u95f4<\/span><\/h2>\n<pre>df&nbsp;-h&nbsp;\u663e\u793a\u5df2\u7ecf\u6302\u8f7d\u7684\u5206\u533a\u5217\u8868\nls&nbsp;-lSr&nbsp;|more&nbsp;\u4ee5\u5c3a\u5bf8\u5927\u5c0f\u6392\u5217\u6587\u4ef6\u548c\u76ee\u5f55\ndu&nbsp;-sh&nbsp;dir1&nbsp;\u4f30\u7b97\u76ee\u5f55&nbsp;'dir1'&nbsp;\u5df2\u7ecf\u4f7f\u7528\u7684\u78c1\u76d8\u7a7a\u95f4'\ndu&nbsp;-sk&nbsp;*&nbsp;|&nbsp;sort&nbsp;-rn&nbsp;\u4ee5\u5bb9\u91cf\u5927\u5c0f\u4e3a\u4f9d\u636e\u4f9d\u6b21\u663e\u793a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5927\u5c0f\nrpm&nbsp;-q&nbsp;-a&nbsp;--qf&nbsp;'%10{SIZE}t%{NAME}n'&nbsp;|&nbsp;sort&nbsp;-k1,1n&nbsp;\u4ee5\u5927\u5c0f\u4e3a\u4f9d\u636e\u4f9d\u6b21\u663e\u793a\u5df2\u5b89\u88c5\u7684rpm\u5305\u6240\u4f7f\u7528\u7684\u7a7a\u95f4&nbsp;(fedora,&nbsp;redhat\u7c7b\u7cfb\u7edf)\ndpkg-query&nbsp;-W&nbsp;-f='${Installed-Size;10}t${Package}n'&nbsp;|&nbsp;sort&nbsp;-k1,1n&nbsp;\u4ee5\u5927\u5c0f\u4e3a\u4f9d\u636e\u663e\u793a\u5df2\u5b89\u88c5\u7684deb\u5305\u6240\u4f7f\u7528\u7684\u7a7a\u95f4&nbsp;(ubuntu,&nbsp;debian\u7c7b\u7cfb\u7edf)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">7. \u7528\u6237\u548c\u7fa4\u7ec4<\/span><\/h2>\n<pre>groupadd&nbsp;group_name&nbsp;\u521b\u5efa\u4e00\u4e2a\u65b0\u7528\u6237\u7ec4\ngroupdel&nbsp;group_name&nbsp;\u5220\u9664\u4e00\u4e2a\u7528\u6237\u7ec4\ngroupmod&nbsp;-n&nbsp;new_group_name&nbsp;old_group_name&nbsp;\u91cd\u547d\u540d\u4e00\u4e2a\u7528\u6237\u7ec4\nuseradd&nbsp;-c&nbsp;\"Name&nbsp;Surname&nbsp;\"&nbsp;-g&nbsp;admin&nbsp;-d&nbsp;\/home\/user1&nbsp;-s&nbsp;\/bin\/bash&nbsp;user1&nbsp;\u521b\u5efa\u4e00\u4e2a\u5c5e\u4e8e&nbsp;\"admin\"&nbsp;\u7528\u6237\u7ec4\u7684\u7528\u6237\nuseradd&nbsp;user1&nbsp;\u521b\u5efa\u4e00\u4e2a\u65b0\u7528\u6237\nuserdel&nbsp;-r&nbsp;user1&nbsp;\u5220\u9664\u4e00\u4e2a\u7528\u6237&nbsp;(&nbsp;'-r'&nbsp;\u6392\u9664\u4e3b\u76ee\u5f55)\nusermod&nbsp;-c&nbsp;\"User&nbsp;FTP\"&nbsp;-g&nbsp;system&nbsp;-d&nbsp;\/ftp\/user1&nbsp;-s&nbsp;\/bin\/nologin&nbsp;user1&nbsp;\u4fee\u6539\u7528\u6237\u5c5e\u6027\npasswd&nbsp;\u4fee\u6539\u53e3\u4ee4\npasswd&nbsp;user1&nbsp;\u4fee\u6539\u4e00\u4e2a\u7528\u6237\u7684\u53e3\u4ee4&nbsp;(\u53ea\u5141\u8bb8root\u6267\u884c)\nchage&nbsp;-E&nbsp;2005-12-31&nbsp;user1&nbsp;\u8bbe\u7f6e\u7528\u6237\u53e3\u4ee4\u7684\u5931\u6548\u671f\u9650\npwck&nbsp;\u68c0\u67e5&nbsp;'\/etc\/passwd'&nbsp;\u7684\u6587\u4ef6\u683c\u5f0f\u548c\u8bed\u6cd5\u4fee\u6b63\u4ee5\u53ca\u5b58\u5728\u7684\u7528\u6237\ngrpck&nbsp;\u68c0\u67e5&nbsp;'\/etc\/passwd'&nbsp;\u7684\u6587\u4ef6\u683c\u5f0f\u548c\u8bed\u6cd5\u4fee\u6b63\u4ee5\u53ca\u5b58\u5728\u7684\u7fa4\u7ec4\nnewgrp&nbsp;group_name&nbsp;\u767b\u9646\u8fdb\u4e00\u4e2a\u65b0\u7684\u7fa4\u7ec4\u4ee5\u6539\u53d8\u65b0\u521b\u5efa\u6587\u4ef6\u7684\u9884\u8bbe\u7fa4\u7ec4<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">8. \u6587\u4ef6\u7684\u6743\u9650 \u4f7f\u7528 \u201c+\u201d \u8bbe\u7f6e\u6743\u9650\uff0c\u4f7f\u7528 \u201c-\u201d \u7528\u4e8e\u53d6\u6d88<\/span><\/h2>\n<pre>ls&nbsp;-lh&nbsp;\u663e\u793a\u6743\u9650\nls&nbsp;\/tmp&nbsp;|&nbsp;pr&nbsp;-T5&nbsp;-W$COLUMNS&nbsp;\u5c06\u7ec8\u7aef\u5212\u5206\u62105\u680f\u663e\u793a\nchmod&nbsp;ugo+rwx&nbsp;directory1&nbsp;\u8bbe\u7f6e\u76ee\u5f55\u7684\u6240\u6709\u4eba(u)\u3001\u7fa4\u7ec4(g)\u4ee5\u53ca\u5176\u4ed6\u4eba(o)\u4ee5\u8bfb\uff08r&nbsp;\uff09\u3001\u5199(w)\u548c\u6267\u884c(x)\u7684\u6743\u9650\nchmod&nbsp;go-rwx&nbsp;directory1&nbsp;\u5220\u9664\u7fa4\u7ec4(g)\u4e0e\u5176\u4ed6\u4eba(o)\u5bf9\u76ee\u5f55\u7684\u8bfb\u5199\u6267\u884c\u6743\u9650\nchown&nbsp;user1&nbsp;file1&nbsp;\u6539\u53d8\u4e00\u4e2a\u6587\u4ef6\u7684\u6240\u6709\u4eba\u5c5e\u6027\nchown&nbsp;-R&nbsp;user1&nbsp;directory1&nbsp;\u6539\u53d8\u4e00\u4e2a\u76ee\u5f55\u7684\u6240\u6709\u4eba\u5c5e\u6027\u5e76\u540c\u65f6\u6539\u53d8\u6539\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u7684\u5c5e\u6027\nchgrp&nbsp;group1&nbsp;file1&nbsp;\u6539\u53d8\u6587\u4ef6\u7684\u7fa4\u7ec4\nchown&nbsp;user1:group1&nbsp;file1&nbsp;\u6539\u53d8\u4e00\u4e2a\u6587\u4ef6\u7684\u6240\u6709\u4eba\u548c\u7fa4\u7ec4\u5c5e\u6027\nfind&nbsp;\/&nbsp;-perm&nbsp;-u+s&nbsp;\u7f57\u5217\u4e00\u4e2a\u7cfb\u7edf\u4e2d\u6240\u6709\u4f7f\u7528\u4e86SUID\u63a7\u5236\u7684\u6587\u4ef6\nchmod&nbsp;u+s&nbsp;\/bin\/file1&nbsp;\u8bbe\u7f6e\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684&nbsp;SUID&nbsp;\u4f4d&nbsp;-&nbsp;\u8fd0\u884c\u8be5\u6587\u4ef6\u7684\u7528\u6237\u4e5f\u88ab\u8d4b\u4e88\u548c\u6240\u6709\u8005\u540c\u6837\u7684\u6743\u9650\nchmod&nbsp;u-s&nbsp;\/bin\/file1&nbsp;\u7981\u7528\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684&nbsp;SUID\u4f4d\nchmod&nbsp;g+s&nbsp;\/home\/public&nbsp;\u8bbe\u7f6e\u4e00\u4e2a\u76ee\u5f55\u7684SGID&nbsp;\u4f4d&nbsp;-&nbsp;\u7c7b\u4f3cSUID&nbsp;\uff0c\u4e0d\u8fc7\u8fd9\u662f\u9488\u5bf9\u76ee\u5f55\u7684\nchmod&nbsp;g-s&nbsp;\/home\/public&nbsp;\u7981\u7528\u4e00\u4e2a\u76ee\u5f55\u7684&nbsp;SGID&nbsp;\u4f4d\nchmod&nbsp;o+t&nbsp;\/home\/public&nbsp;\u8bbe\u7f6e\u4e00\u4e2a\u6587\u4ef6\u7684&nbsp;STIKY&nbsp;\u4f4d&nbsp;-&nbsp;\u53ea\u5141\u8bb8\u5408\u6cd5\u6240\u6709\u4eba\u5220\u9664\u6587\u4ef6\nchmod&nbsp;o-t&nbsp;\/home\/public&nbsp;\u7981\u7528\u4e00\u4e2a\u76ee\u5f55\u7684&nbsp;STIKY&nbsp;\u4f4d\nchmod&nbsp;+x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u548c\u5176\u4ed6\u7528\u6237\u6dfb\u52a0\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;-x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u548c\u5176\u4ed6\u7528\u6237\u5220\u9664\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;u+x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u6dfb\u52a0\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;g+x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u5c5e\u7ec4\u6dfb\u52a0\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;o+x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u5176\u4ed6\u7528\u6237\u6dfb\u52a0\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;ug+x&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u6dfb\u52a0\u6267\u884c\u7684\u6743\u9650\nchmod&nbsp;=wx&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u548c\u5176\u4ed6\u7528\u6237\u6dfb\u52a0\u5199\u3001\u6267\u884c\u7684\u6743\u9650\uff0c\u53d6\u6d88\u8bfb\u6743\u9650\nchmod&nbsp;ug=wx&nbsp;\u6587\u4ef6\u8def\u5f84&nbsp;\u4e3a\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u6dfb\u52a0\u5199\u3001\u6267\u884c\u7684\u6743\u9650\uff0c\u53d6\u6d88\u8bfb\u6743\u9650<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">9. \u6587\u4ef6\u7684\u7279\u6b8a\u5c5e\u6027 \uff0c\u4f7f\u7528 \u201c+\u201d \u8bbe\u7f6e\u6743\u9650\uff0c\u4f7f\u7528 \u201c-\u201d \u7528\u4e8e\u53d6\u6d88<\/span><\/h2>\n<pre>chattr&nbsp;+a&nbsp;file1&nbsp;\u53ea\u5141\u8bb8\u4ee5\u8ffd\u52a0\u65b9\u5f0f\u8bfb\u5199\u6587\u4ef6\nchattr&nbsp;+c&nbsp;file1&nbsp;\u5141\u8bb8\u8fd9\u4e2a\u6587\u4ef6\u80fd\u88ab\u5185\u6838\u81ea\u52a8\u538b\u7f29\/\u89e3\u538b\nchattr&nbsp;+d&nbsp;file1&nbsp;\u5728\u8fdb\u884c\u6587\u4ef6\u7cfb\u7edf\u5907\u4efd\u65f6\uff0cdump\u7a0b\u5e8f\u5c06\u5ffd\u7565\u8fd9\u4e2a\u6587\u4ef6\nchattr&nbsp;+i&nbsp;file1&nbsp;\u8bbe\u7f6e\u6210\u4e0d\u53ef\u53d8\u7684\u6587\u4ef6\uff0c\u4e0d\u80fd\u88ab\u5220\u9664\u3001\u4fee\u6539\u3001\u91cd\u547d\u540d\u6216\u8005\u94fe\u63a5\nchattr&nbsp;+s&nbsp;file1&nbsp;\u5141\u8bb8\u4e00\u4e2a\u6587\u4ef6\u88ab\u5b89\u5168\u5730\u5220\u9664\nchattr&nbsp;+S&nbsp;file1&nbsp;\u4e00\u65e6\u5e94\u7528\u7a0b\u5e8f\u5bf9\u8fd9\u4e2a\u6587\u4ef6\u6267\u884c\u4e86\u5199\u64cd\u4f5c\uff0c\u4f7f\u7cfb\u7edf\u7acb\u523b\u628a\u4fee\u6539\u7684\u7ed3\u679c\u5199\u5230\u78c1\u76d8\nchattr&nbsp;+u&nbsp;file1&nbsp;\u82e5\u6587\u4ef6\u88ab\u5220\u9664\uff0c\u7cfb\u7edf\u4f1a\u5141\u8bb8\u4f60\u5728\u4ee5\u540e\u6062\u590d\u8fd9\u4e2a\u88ab\u5220\u9664\u7684\u6587\u4ef6\nlsattr&nbsp;\u663e\u793a\u7279\u6b8a\u7684\u5c5e\u6027<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">10. \u6253\u5305\u548c\u538b\u7f29\u6587\u4ef6<\/span><\/h2>\n<pre>bunzip2&nbsp;file1.bz2&nbsp;\u89e3\u538b\u4e00\u4e2a\u53eb\u505a&nbsp;'file1.bz2'\u7684\u6587\u4ef6\nbzip2&nbsp;file1&nbsp;\u538b\u7f29\u4e00\u4e2a\u53eb\u505a&nbsp;'file1'&nbsp;\u7684\u6587\u4ef6\ngunzip&nbsp;file1.gz&nbsp;\u89e3\u538b\u4e00\u4e2a\u53eb\u505a&nbsp;'file1.gz'\u7684\u6587\u4ef6\ngzip&nbsp;file1&nbsp;\u538b\u7f29\u4e00\u4e2a\u53eb\u505a&nbsp;'file1'\u7684\u6587\u4ef6\ngzip&nbsp;-9&nbsp;file1&nbsp;\u6700\u5927\u7a0b\u5ea6\u538b\u7f29\nrar&nbsp;a&nbsp;file1.rar&nbsp;test_file&nbsp;\u521b\u5efa\u4e00\u4e2a\u53eb\u505a&nbsp;'file1.rar'&nbsp;\u7684\u5305\nrar&nbsp;a&nbsp;file1.rar&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;\u540c\u65f6\u538b\u7f29&nbsp;'file1',&nbsp;'file2'&nbsp;\u4ee5\u53ca\u76ee\u5f55&nbsp;'dir1'\nrar&nbsp;x&nbsp;file1.rar&nbsp;\u89e3\u538brar\u5305\nunrar&nbsp;x&nbsp;file1.rar&nbsp;\u89e3\u538brar\u5305\ntar&nbsp;-cvf&nbsp;archive.tar&nbsp;file1&nbsp;\u521b\u5efa\u4e00\u4e2a\u975e\u538b\u7f29\u7684&nbsp;tarball\ntar&nbsp;-cvf&nbsp;archive.tar&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e86&nbsp;'file1',&nbsp;'file2'&nbsp;\u4ee5\u53ca&nbsp;'dir1'\u7684\u6863\u6848\u6587\u4ef6\ntar&nbsp;-tf&nbsp;archive.tar&nbsp;\u663e\u793a\u4e00\u4e2a\u5305\u4e2d\u7684\u5185\u5bb9\ntar&nbsp;-xvf&nbsp;archive.tar&nbsp;\u91ca\u653e\u4e00\u4e2a\u5305\ntar&nbsp;-xvf&nbsp;archive.tar&nbsp;-C&nbsp;\/tmp&nbsp;\u5c06\u538b\u7f29\u5305\u91ca\u653e\u5230&nbsp;\/tmp\u76ee\u5f55\u4e0b\ntar&nbsp;-cvfj&nbsp;archive.tar.bz2&nbsp;dir1&nbsp;\u521b\u5efa\u4e00\u4e2abzip2\u683c\u5f0f\u7684\u538b\u7f29\u5305\ntar&nbsp;-xvfj&nbsp;archive.tar.bz2&nbsp;\u89e3\u538b\u4e00\u4e2abzip2\u683c\u5f0f\u7684\u538b\u7f29\u5305\ntar&nbsp;-cvfz&nbsp;archive.tar.gz&nbsp;dir1&nbsp;\u521b\u5efa\u4e00\u4e2agzip\u683c\u5f0f\u7684\u538b\u7f29\u5305\ntar&nbsp;-xvfz&nbsp;archive.tar.gz&nbsp;\u89e3\u538b\u4e00\u4e2agzip\u683c\u5f0f\u7684\u538b\u7f29\u5305\nzip&nbsp;file1.zip&nbsp;file1&nbsp;\u521b\u5efa\u4e00\u4e2azip\u683c\u5f0f\u7684\u538b\u7f29\u5305\nzip&nbsp;-r&nbsp;file1.zip&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;\u5c06\u51e0\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u540c\u65f6\u538b\u7f29\u6210\u4e00\u4e2azip\u683c\u5f0f\u7684\u538b\u7f29\u5305\nunzip&nbsp;file1.zip&nbsp;\u89e3\u538b\u4e00\u4e2azip\u683c\u5f0f\u538b\u7f29\u5305<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">11. RPM \u5305<\/span><\/h2>\n<pre>rpm&nbsp;-ivh&nbsp;package.rpm&nbsp;\u5b89\u88c5\u4e00\u4e2arpm\u5305\nrpm&nbsp;-ivh&nbsp;--nodeeps&nbsp;package.rpm&nbsp;\u5b89\u88c5\u4e00\u4e2arpm\u5305\u800c\u5ffd\u7565\u4f9d\u8d56\u5173\u7cfb\u8b66\u544a\nrpm&nbsp;-U&nbsp;package.rpm&nbsp;\u66f4\u65b0\u4e00\u4e2arpm\u5305\u4f46\u4e0d\u6539\u53d8\u5176\u914d\u7f6e\u6587\u4ef6\nrpm&nbsp;-F&nbsp;package.rpm&nbsp;\u66f4\u65b0\u4e00\u4e2a\u786e\u5b9a\u5df2\u7ecf\u5b89\u88c5\u7684rpm\u5305\nrpm&nbsp;-e&nbsp;package_name.rpm&nbsp;\u5220\u9664\u4e00\u4e2arpm\u5305\nrpm&nbsp;-qa&nbsp;\u663e\u793a\u7cfb\u7edf\u4e2d\u6240\u6709\u5df2\u7ecf\u5b89\u88c5\u7684rpm\u5305\nrpm&nbsp;-qa&nbsp;|&nbsp;grep&nbsp;httpd&nbsp;\u663e\u793a\u6240\u6709\u540d\u79f0\u4e2d\u5305\u542b&nbsp;\"httpd\"&nbsp;\u5b57\u6837\u7684rpm\u5305\nrpm&nbsp;-qi&nbsp;package_name&nbsp;\u83b7\u53d6\u4e00\u4e2a\u5df2\u5b89\u88c5\u5305\u7684\u7279\u6b8a\u4fe1\u606f\nrpm&nbsp;-qg&nbsp;\"System&nbsp;Environment\/Daemons\"&nbsp;\u663e\u793a\u4e00\u4e2a\u7ec4\u4ef6\u7684rpm\u5305\nrpm&nbsp;-ql&nbsp;package_name&nbsp;\u663e\u793a\u4e00\u4e2a\u5df2\u7ecf\u5b89\u88c5\u7684rpm\u5305\u63d0\u4f9b\u7684\u6587\u4ef6\u5217\u8868\nrpm&nbsp;-qc&nbsp;package_name&nbsp;\u663e\u793a\u4e00\u4e2a\u5df2\u7ecf\u5b89\u88c5\u7684rpm\u5305\u63d0\u4f9b\u7684\u914d\u7f6e\u6587\u4ef6\u5217\u8868\nrpm&nbsp;-q&nbsp;package_name&nbsp;--whatrequires&nbsp;\u663e\u793a\u4e0e\u4e00\u4e2arpm\u5305\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\u7684\u5217\u8868\nrpm&nbsp;-q&nbsp;package_name&nbsp;--whatprovides&nbsp;\u663e\u793a\u4e00\u4e2arpm\u5305\u6240\u5360\u7684\u4f53\u79ef\nrpm&nbsp;-q&nbsp;package_name&nbsp;--scripts&nbsp;\u663e\u793a\u5728\u5b89\u88c5\/\u5220\u9664\u671f\u95f4\u6240\u6267\u884c\u7684\u811a\u672cl\nrpm&nbsp;-q&nbsp;package_name&nbsp;--changelog&nbsp;\u663e\u793a\u4e00\u4e2arpm\u5305\u7684\u4fee\u6539\u5386\u53f2\nrpm&nbsp;-qf&nbsp;\/etc\/httpd\/conf\/httpd.conf&nbsp;\u786e\u8ba4\u6240\u7ed9\u7684\u6587\u4ef6\u7531\u54ea\u4e2arpm\u5305\u6240\u63d0\u4f9b\nrpm&nbsp;-qp&nbsp;package.rpm&nbsp;-l&nbsp;\u663e\u793a\u7531\u4e00\u4e2a\u5c1a\u672a\u5b89\u88c5\u7684rpm\u5305\u63d0\u4f9b\u7684\u6587\u4ef6\u5217\u8868\nrpm&nbsp;--import&nbsp;\/media\/cdrom\/RPM-GPG-KEY&nbsp;\u5bfc\u5165\u516c\u94a5\u6570\u5b57\u8bc1\u4e66\nrpm&nbsp;--checksig&nbsp;package.rpm&nbsp;\u786e\u8ba4\u4e00\u4e2arpm\u5305\u7684\u5b8c\u6574\u6027\nrpm&nbsp;-qa&nbsp;gpg-pubkey&nbsp;\u786e\u8ba4\u5df2\u5b89\u88c5\u7684\u6240\u6709rpm\u5305\u7684\u5b8c\u6574\u6027\nrpm&nbsp;-V&nbsp;package_name&nbsp;\u68c0\u67e5\u6587\u4ef6\u5c3a\u5bf8\u3001&nbsp;\u8bb8\u53ef\u3001\u7c7b\u578b\u3001\u6240\u6709\u8005\u3001\u7fa4\u7ec4\u3001MD5\u68c0\u67e5\u4ee5\u53ca\u6700\u540e\u4fee\u6539\u65f6\u95f4\nrpm&nbsp;-Va&nbsp;\u68c0\u67e5\u7cfb\u7edf\u4e2d\u6240\u6709\u5df2\u5b89\u88c5\u7684rpm\u5305-&nbsp;\u5c0f\u5fc3\u4f7f\u7528\nrpm&nbsp;-Vp&nbsp;package.rpm&nbsp;\u786e\u8ba4\u4e00\u4e2arpm\u5305\u8fd8\u672a\u5b89\u88c5\nrpm2cpio&nbsp;package.rpm&nbsp;|&nbsp;cpio&nbsp;--extract&nbsp;--make-directories&nbsp;*bin*&nbsp;\u4ece\u4e00\u4e2arpm\u5305\u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6\nrpm&nbsp;-ivh&nbsp;\/usr\/src\/redhat\/RPMS\/`arch`\/package.rpm&nbsp;\u4ece\u4e00\u4e2arpm\u6e90\u7801\u5b89\u88c5\u4e00\u4e2a\u6784\u5efa\u597d\u7684\u5305\nrpmbuild&nbsp;--rebuild&nbsp;package_name.src.rpm&nbsp;\u4ece\u4e00\u4e2arpm\u6e90\u7801\u6784\u5efa\u4e00\u4e2a&nbsp;rpm&nbsp;\u5305<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">12. YUM \u8f6f\u4ef6\u5305\u5347\u7ea7\u5668<\/span><\/h2>\n<pre>yum&nbsp;install&nbsp;package_name&nbsp;\u4e0b\u8f7d\u5e76\u5b89\u88c5\u4e00\u4e2arpm\u5305\nyum&nbsp;localinstall&nbsp;package_name.rpm&nbsp;\u5c06\u5b89\u88c5\u4e00\u4e2arpm\u5305\uff0c\u4f7f\u7528\u4f60\u81ea\u5df1\u7684\u8f6f\u4ef6\u4ed3\u5e93\u4e3a\u4f60\u89e3\u51b3\u6240\u6709\u4f9d\u8d56\u5173\u7cfb\nyum&nbsp;update&nbsp;package_name.rpm&nbsp;\u66f4\u65b0\u5f53\u524d\u7cfb\u7edf\u4e2d\u6240\u6709\u5b89\u88c5\u7684rpm\u5305\nyum&nbsp;update&nbsp;package_name&nbsp;\u66f4\u65b0\u4e00\u4e2arpm\u5305\nyum&nbsp;remove&nbsp;package_name&nbsp;\u5220\u9664\u4e00\u4e2arpm\u5305\nyum&nbsp;list&nbsp;\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u4e2d\u5b89\u88c5\u7684\u6240\u6709\u5305\nyum&nbsp;search&nbsp;package_name&nbsp;\u5728rpm\u4ed3\u5e93\u4e2d\u641c\u5bfb\u8f6f\u4ef6\u5305\nyum&nbsp;clean&nbsp;packages&nbsp;\u6e05\u7406rpm\u7f13\u5b58\u5220\u9664\u4e0b\u8f7d\u7684\u5305\nyum&nbsp;clean&nbsp;headers&nbsp;\u5220\u9664\u6240\u6709\u5934\u6587\u4ef6\nyum&nbsp;clean&nbsp;all&nbsp;\u5220\u9664\u6240\u6709\u7f13\u5b58\u7684\u5305\u548c\u5934\u6587\u4ef6<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">13. deb \u5305<\/span><\/h2>\n<pre>dpkg&nbsp;-i&nbsp;package.deb&nbsp;\u5b89\u88c5\/\u66f4\u65b0\u4e00\u4e2a&nbsp;deb&nbsp;\u5305\ndpkg&nbsp;-r&nbsp;package_name&nbsp;\u4ece\u7cfb\u7edf\u5220\u9664\u4e00\u4e2a&nbsp;deb&nbsp;\u5305\ndpkg&nbsp;-l&nbsp;\u663e\u793a\u7cfb\u7edf\u4e2d\u6240\u6709\u5df2\u7ecf\u5b89\u88c5\u7684&nbsp;deb&nbsp;\u5305\ndpkg&nbsp;-l&nbsp;|&nbsp;grep&nbsp;httpd&nbsp;\u663e\u793a\u6240\u6709\u540d\u79f0\u4e2d\u5305\u542b&nbsp;\"httpd\"&nbsp;\u5b57\u6837\u7684deb\u5305\ndpkg&nbsp;-s&nbsp;package_name&nbsp;\u83b7\u5f97\u5df2\u7ecf\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u4e00\u4e2a\u7279\u6b8a\u5305\u7684\u4fe1\u606f\ndpkg&nbsp;-L&nbsp;package_name&nbsp;\u663e\u793a\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b89\u88c5\u7684\u4e00\u4e2adeb\u5305\u6240\u63d0\u4f9b\u7684\u6587\u4ef6\u5217\u8868\ndpkg&nbsp;--contents&nbsp;package.deb&nbsp;\u663e\u793a\u5c1a\u672a\u5b89\u88c5\u7684\u4e00\u4e2a\u5305\u6240\u63d0\u4f9b\u7684\u6587\u4ef6\u5217\u8868\ndpkg&nbsp;-S&nbsp;\/bin\/ping&nbsp;\u786e\u8ba4\u6240\u7ed9\u7684\u6587\u4ef6\u7531\u54ea\u4e2adeb\u5305\u63d0\u4f9b\nAPT&nbsp;\u8f6f\u4ef6\u5de5\u5177&nbsp;(Debian,&nbsp;Ubuntu&nbsp;\u4ee5\u53ca\u7c7b\u4f3c\u7cfb\u7edf)\napt-get&nbsp;install&nbsp;package_name&nbsp;\u5b89\u88c5\/\u66f4\u65b0\u4e00\u4e2a&nbsp;deb&nbsp;\u5305\napt-cdrom&nbsp;install&nbsp;package_name&nbsp;\u4ece\u5149\u76d8\u5b89\u88c5\/\u66f4\u65b0\u4e00\u4e2a&nbsp;deb&nbsp;\u5305\napt-get&nbsp;update&nbsp;\u5347\u7ea7\u5217\u8868\u4e2d\u7684\u8f6f\u4ef6\u5305\napt-get&nbsp;upgrade&nbsp;\u5347\u7ea7\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\napt-get&nbsp;remove&nbsp;package_name&nbsp;\u4ece\u7cfb\u7edf\u5220\u9664\u4e00\u4e2adeb\u5305\napt-get&nbsp;check&nbsp;\u786e\u8ba4\u4f9d\u8d56\u7684\u8f6f\u4ef6\u4ed3\u5e93\u6b63\u786e\napt-get&nbsp;clean&nbsp;\u4ece\u4e0b\u8f7d\u7684\u8f6f\u4ef6\u5305\u4e2d\u6e05\u7406\u7f13\u5b58\napt-cache&nbsp;search&nbsp;searched-package&nbsp;\u8fd4\u56de\u5305\u542b\u6240\u8981\u641c\u7d22\u5b57\u7b26\u4e32\u7684\u8f6f\u4ef6\u5305\u540d\u79f0<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">14. \u67e5\u770b\u6587\u4ef6\u5185\u5bb9<\/span><\/h2>\n<pre>cat&nbsp;file1&nbsp;\u4ece\u7b2c\u4e00\u4e2a\u5b57\u8282\u5f00\u59cb\u6b63\u5411\u67e5\u770b\u6587\u4ef6\u7684\u5185\u5bb9\ntac&nbsp;file1&nbsp;\u4ece\u6700\u540e\u4e00\u884c\u5f00\u59cb\u53cd\u5411\u67e5\u770b\u4e00\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\nmore&nbsp;file1&nbsp;\u67e5\u770b\u4e00\u4e2a\u957f\u6587\u4ef6\u7684\u5185\u5bb9\nless&nbsp;file1&nbsp;\u7c7b\u4f3c\u4e8e&nbsp;'more'&nbsp;\u547d\u4ee4\uff0c\u4f46\u662f\u5b83\u5141\u8bb8\u5728\u6587\u4ef6\u4e2d\u548c\u6b63\u5411\u64cd\u4f5c\u4e00\u6837\u7684\u53cd\u5411\u64cd\u4f5c\nhead&nbsp;-2&nbsp;file1&nbsp;\u67e5\u770b\u4e00\u4e2a\u6587\u4ef6\u7684\u524d\u4e24\u884c\ntail&nbsp;-2&nbsp;file1&nbsp;\u67e5\u770b\u4e00\u4e2a\u6587\u4ef6\u7684\u6700\u540e\u4e24\u884c\ntail&nbsp;-f&nbsp;\/var\/log\/messages&nbsp;\u5b9e\u65f6\u67e5\u770b\u88ab\u6dfb\u52a0\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">15. \u6587\u672c\u5904\u7406<\/span><\/h2>\n<pre>cat&nbsp;file1&nbsp;file2&nbsp;...&nbsp;|&nbsp;command&nbsp;&nbsp;file1_in.txt_or_file1_out.txt&nbsp;general&nbsp;syntax&nbsp;for&nbsp;text&nbsp;manipulation&nbsp;using&nbsp;PIPE,&nbsp;STDIN&nbsp;and&nbsp;STDOUT\ncat&nbsp;file1&nbsp;|&nbsp;command(&nbsp;sed,&nbsp;grep,&nbsp;awk,&nbsp;grep,&nbsp;etc...)&nbsp;&amp;gt;&nbsp;result.txt&nbsp;\u5408\u5e76\u4e00\u4e2a\u6587\u4ef6\u7684\u8be6\u7ec6\u8bf4\u660e\u6587\u672c\uff0c\u5e76\u5c06\u7b80\u4ecb\u5199\u5165\u4e00\u4e2a\u65b0\u6587\u4ef6\u4e2d\ncat&nbsp;file1&nbsp;|&nbsp;command(&nbsp;sed,&nbsp;grep,&nbsp;awk,&nbsp;grep,&nbsp;etc...)&nbsp;&amp;gt;&amp;gt;&nbsp;result.txt&nbsp;\u5408\u5e76\u4e00\u4e2a\u6587\u4ef6\u7684\u8be6\u7ec6\u8bf4\u660e\u6587\u672c\uff0c\u5e76\u5c06\u7b80\u4ecb\u5199\u5165\u4e00\u4e2a\u5df2\u6709\u7684\u6587\u4ef6\u4e2d\ngrep&nbsp;Aug&nbsp;\/var\/log\/messages&nbsp;\u5728\u6587\u4ef6&nbsp;'\/var\/log\/messages'\u4e2d\u67e5\u627e\u5173\u952e\u8bcd\"Aug\"\ngrep&nbsp;^Aug&nbsp;\/var\/log\/messages&nbsp;\u5728\u6587\u4ef6&nbsp;'\/var\/log\/messages'\u4e2d\u67e5\u627e\u4ee5\"Aug\"\u5f00\u59cb\u7684\u8bcd\u6c47\ngrep&nbsp;[0-9]&nbsp;\/var\/log\/messages&nbsp;\u9009\u62e9&nbsp;'\/var\/log\/messages'&nbsp;\u6587\u4ef6\u4e2d\u6240\u6709\u5305\u542b\u6570\u5b57\u7684\u884c\ngrep&nbsp;Aug&nbsp;-R&nbsp;\/var\/log\/*&nbsp;\u5728\u76ee\u5f55&nbsp;'\/var\/log'&nbsp;\u53ca\u968f\u540e\u7684\u76ee\u5f55\u4e2d\u641c\u7d22\u5b57\u7b26\u4e32\"Aug\"\nsed&nbsp;'s\/stringa1\/stringa2\/g'&nbsp;example.txt&nbsp;\u5c06example.txt\u6587\u4ef6\u4e2d\u7684&nbsp;\"string1\"&nbsp;\u66ff\u6362\u6210&nbsp;\"string2\"\nsed&nbsp;'\/^$\/d'&nbsp;example.txt&nbsp;\u4eceexample.txt\u6587\u4ef6\u4e2d\u5220\u9664\u6240\u6709\u7a7a\u767d\u884c\nsed&nbsp;'\/&nbsp;*#\/d;&nbsp;\/^$\/d'&nbsp;example.txt&nbsp;\u4eceexample.txt\u6587\u4ef6\u4e2d\u5220\u9664\u6240\u6709\u6ce8\u91ca\u548c\u7a7a\u767d\u884c\necho&nbsp;'esempio'&nbsp;|&nbsp;tr&nbsp;'[:lower:]'&nbsp;'[:upper:]'&nbsp;\u5408\u5e76\u4e0a\u4e0b\u5355\u5143\u683c\u5185\u5bb9\nsed&nbsp;-e&nbsp;'1d'&nbsp;result.txt&nbsp;\u4ece\u6587\u4ef6example.txt&nbsp;\u4e2d\u6392\u9664\u7b2c\u4e00\u884c\nsed&nbsp;-n&nbsp;'\/stringa1\/p'&nbsp;\u67e5\u770b\u53ea\u5305\u542b\u8bcd\u6c47&nbsp;\"string1\"\u7684\u884c\nsed&nbsp;-e&nbsp;'s\/&nbsp;*$\/\/'&nbsp;example.txt&nbsp;\u5220\u9664\u6bcf\u4e00\u884c\u6700\u540e\u7684\u7a7a\u767d\u5b57\u7b26\nsed&nbsp;-e&nbsp;'s\/stringa1\/\/g'&nbsp;example.txt&nbsp;\u4ece\u6587\u6863\u4e2d\u53ea\u5220\u9664\u8bcd\u6c47&nbsp;\"string1\"&nbsp;\u5e76\u4fdd\u7559\u5269\u4f59\u5168\u90e8\nsed&nbsp;-n&nbsp;'1,5p;5q'&nbsp;example.txt&nbsp;\u67e5\u770b\u4ece\u7b2c\u4e00\u884c\u5230\u7b2c5\u884c\u5185\u5bb9\nsed&nbsp;-n&nbsp;'5p;5q'&nbsp;example.txt&nbsp;\u67e5\u770b\u7b2c5\u884c\nsed&nbsp;-e&nbsp;'s\/00*\/0\/g'&nbsp;example.txt&nbsp;\u7528\u5355\u4e2a\u96f6\u66ff\u6362\u591a\u4e2a\u96f6\ncat&nbsp;-n&nbsp;file1&nbsp;\u6807\u793a\u6587\u4ef6\u7684\u884c\u6570\ncat&nbsp;example.txt&nbsp;|&nbsp;awk&nbsp;'NR%2==1'&nbsp;\u5220\u9664example.txt\u6587\u4ef6\u4e2d\u7684\u6240\u6709\u5076\u6570\u884c\necho&nbsp;a&nbsp;b&nbsp;c&nbsp;|&nbsp;awk&nbsp;'{print&nbsp;$1}'&nbsp;\u67e5\u770b\u4e00\u884c\u7b2c\u4e00\u680f\necho&nbsp;a&nbsp;b&nbsp;c&nbsp;|&nbsp;awk&nbsp;'{print&nbsp;$1,$3}'&nbsp;\u67e5\u770b\u4e00\u884c\u7684\u7b2c\u4e00\u548c\u7b2c\u4e09\u680f\npaste&nbsp;file1&nbsp;file2&nbsp;\u5408\u5e76\u4e24\u4e2a\u6587\u4ef6\u6216\u4e24\u680f\u7684\u5185\u5bb9\npaste&nbsp;-d&nbsp;'+'&nbsp;file1&nbsp;file2&nbsp;\u5408\u5e76\u4e24\u4e2a\u6587\u4ef6\u6216\u4e24\u680f\u7684\u5185\u5bb9\uff0c\u4e2d\u95f4\u7528\"+\"\u533a\u5206\nsort&nbsp;file1&nbsp;file2&nbsp;\u6392\u5e8f\u4e24\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\nsort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;\u53d6\u51fa\u4e24\u4e2a\u6587\u4ef6\u7684\u5e76\u96c6(\u91cd\u590d\u7684\u884c\u53ea\u4fdd\u7559\u4e00\u4efd)\nsort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;-u&nbsp;\u5220\u9664\u4ea4\u96c6\uff0c\u7559\u4e0b\u5176\u4ed6\u7684\u884c\nsort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;-d&nbsp;\u53d6\u51fa\u4e24\u4e2a\u6587\u4ef6\u7684\u4ea4\u96c6(\u53ea\u7559\u4e0b\u540c\u65f6\u5b58\u5728\u4e8e\u4e24\u4e2a\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6)\ncomm&nbsp;-1&nbsp;file1&nbsp;file2&nbsp;\u6bd4\u8f83\u4e24\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u53ea\u5220\u9664&nbsp;'file1'&nbsp;\u6240\u5305\u542b\u7684\u5185\u5bb9\ncomm&nbsp;-2&nbsp;file1&nbsp;file2&nbsp;\u6bd4\u8f83\u4e24\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u53ea\u5220\u9664&nbsp;'file2'&nbsp;\u6240\u5305\u542b\u7684\u5185\u5bb9\ncomm&nbsp;-3&nbsp;file1&nbsp;file2&nbsp;\u6bd4\u8f83\u4e24\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u53ea\u5220\u9664\u4e24\u4e2a\u6587\u4ef6\u5171\u6709\u7684\u90e8\u5206<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">16. \u5b57\u7b26\u8bbe\u7f6e\u548c\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362<\/span><\/h2>\n<pre>dos2unix&nbsp;filedos.txt&nbsp;fileunix.txt&nbsp;\u5c06\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u7684\u683c\u5f0f\u4eceMSDOS\u8f6c\u6362\u6210UNIX\nunix2dos&nbsp;fileunix.txt&nbsp;filedos.txt&nbsp;\u5c06\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u7684\u683c\u5f0f\u4eceUNIX\u8f6c\u6362\u6210MSDOS\nrecode&nbsp;..HTML&nbsp;&nbsp;page.html&nbsp;\u5c06\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u8f6c\u6362\u6210html\nrecode&nbsp;-l&nbsp;|&nbsp;more&nbsp;\u663e\u793a\u6240\u6709\u5141\u8bb8\u7684\u8f6c\u6362\u683c\u5f0f<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">17. \u6587\u4ef6\u7cfb\u7edf\u5206\u6790<\/span><\/h2>\n<pre>\u725b\u903c\u554a\uff01\u63a5\u79c1\u6d3b\u5fc5\u5907\u7684&nbsp;N&nbsp;\u4e2a\u5f00\u6e90\u9879\u76ee\uff01\u8d76\u5feb\u6536\u85cf<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<pre>badblocks&nbsp;-v&nbsp;\/dev\/hda1&nbsp;\u68c0\u67e5\u78c1\u76d8hda1\u4e0a\u7684\u574f\u78c1\u5757\nfsck&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0alinux\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\nfsck.ext2&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0aext2\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\ne2fsck&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0aext2\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\ne2fsck&nbsp;-j&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0aext3\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\nfsck.ext3&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0aext3\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\nfsck.vfat&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0afat\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\nfsck.msdos&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0ados\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\ndosfsck&nbsp;\/dev\/hda1&nbsp;\u4fee\u590d\/\u68c0\u67e5hda1\u78c1\u76d8\u4e0ados\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8c\u6574\u6027<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">18. \u521d\u59cb\u5316\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf<\/span><\/h2>\n<pre>mkfs&nbsp;\/dev\/hda1&nbsp;\u5728hda1\u5206\u533a\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\nmke2fs&nbsp;\/dev\/hda1&nbsp;\u5728hda1\u5206\u533a\u521b\u5efa\u4e00\u4e2alinux&nbsp;ext2\u7684\u6587\u4ef6\u7cfb\u7edf\nmke2fs&nbsp;-j&nbsp;\/dev\/hda1&nbsp;\u5728hda1\u5206\u533a\u521b\u5efa\u4e00\u4e2alinux&nbsp;ext3(\u65e5\u5fd7\u578b)\u7684\u6587\u4ef6\u7cfb\u7edf\nmkfs&nbsp;-t&nbsp;vfat&nbsp;32&nbsp;-F&nbsp;\/dev\/hda1&nbsp;\u521b\u5efa\u4e00\u4e2a&nbsp;FAT32&nbsp;\u6587\u4ef6\u7cfb\u7edf\nfdformat&nbsp;-n&nbsp;\/dev\/fd0&nbsp;\u683c\u5f0f\u5316\u4e00\u4e2a\u8f6f\u76d8\nmkswap&nbsp;\/dev\/hda3&nbsp;\u521b\u5efa\u4e00\u4e2aswap\u6587\u4ef6\u7cfb\u7edf<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">19. SWAP \u6587\u4ef6\u7cfb\u7edf<\/span><\/h2>\n<pre>mkswap&nbsp;\/dev\/hda3&nbsp;\u521b\u5efa\u4e00\u4e2aswap\u6587\u4ef6\u7cfb\u7edf\nswapon&nbsp;\/dev\/hda3&nbsp;\u542f\u7528\u4e00\u4e2a\u65b0\u7684swap\u6587\u4ef6\u7cfb\u7edf\nswapon&nbsp;\/dev\/hda2&nbsp;\/dev\/hdb3&nbsp;\u542f\u7528\u4e24\u4e2aswap\u5206\u533a<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">20. \u5907\u4efd<\/span><\/h2>\n<pre>dump&nbsp;-0aj&nbsp;-f&nbsp;\/tmp\/home0.bak&nbsp;\/home&nbsp;\u5236\u4f5c\u4e00\u4e2a&nbsp;'\/home'&nbsp;\u76ee\u5f55\u7684\u5b8c\u6574\u5907\u4efd\ndump&nbsp;-1aj&nbsp;-f&nbsp;\/tmp\/home0.bak&nbsp;\/home&nbsp;\u5236\u4f5c\u4e00\u4e2a&nbsp;'\/home'&nbsp;\u76ee\u5f55\u7684\u4ea4\u4e92\u5f0f\u5907\u4efd\nrestore&nbsp;-if&nbsp;\/tmp\/home0.bak&nbsp;\u8fd8\u539f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u5907\u4efd\nrsync&nbsp;-rogpav&nbsp;--delete&nbsp;\/home&nbsp;\/tmp&nbsp;\u540c\u6b65\u4e24\u8fb9\u7684\u76ee\u5f55\nrsync&nbsp;-rogpav&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;\/home&nbsp;ip_address:\/tmp&nbsp;\u901a\u8fc7SSH\u901a\u9053rsync\nrsync&nbsp;-az&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;ip_addr:\/home\/public&nbsp;\/home\/local&nbsp;\u901a\u8fc7ssh\u548c\u538b\u7f29\u5c06\u4e00\u4e2a\u8fdc\u7a0b\u76ee\u5f55\u540c\u6b65\u5230\u672c\u5730\u76ee\u5f55\nrsync&nbsp;-az&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;\/home\/local&nbsp;ip_addr:\/home\/public&nbsp;\u901a\u8fc7ssh\u548c\u538b\u7f29\u5c06\u672c\u5730\u76ee\u5f55\u540c\u6b65\u5230\u8fdc\u7a0b\u76ee\u5f55\ndd&nbsp;bs=1M&nbsp;if=\/dev\/hda&nbsp;|&nbsp;gzip&nbsp;|&nbsp;ssh&nbsp;user@ip_addr&nbsp;'dd&nbsp;of=hda.gz'&nbsp;\u901a\u8fc7ssh\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u6267\u884c\u4e00\u6b21\u5907\u4efd\u672c\u5730\u78c1\u76d8\u7684\u64cd\u4f5c\ndd&nbsp;if=\/dev\/sda&nbsp;of=\/tmp\/file1&nbsp;\u5907\u4efd\u78c1\u76d8\u5185\u5bb9\u5230\u4e00\u4e2a\u6587\u4ef6\ntar&nbsp;-Puf&nbsp;backup.tar&nbsp;\/home\/user&nbsp;\u6267\u884c\u4e00\u6b21\u5bf9&nbsp;'\/home\/user'&nbsp;\u76ee\u5f55\u7684\u4ea4\u4e92\u5f0f\u5907\u4efd\u64cd\u4f5c\n(&nbsp;cd&nbsp;\/tmp\/local\/&nbsp;&amp;amp;&amp;amp;&nbsp;tar&nbsp;c&nbsp;.&nbsp;)&nbsp;|&nbsp;ssh&nbsp;-C&nbsp;user@ip_addr&nbsp;'cd&nbsp;\/home\/share\/&nbsp;&amp;amp;&amp;amp;&nbsp;tar&nbsp;x&nbsp;-p'&nbsp;\u901a\u8fc7ssh\u5728\u8fdc\u7a0b\u76ee\u5f55\u4e2d\u590d\u5236\u4e00\u4e2a\u76ee\u5f55\u5185\u5bb9\n(&nbsp;tar&nbsp;c&nbsp;\/home&nbsp;)&nbsp;|&nbsp;ssh&nbsp;-C&nbsp;user@ip_addr&nbsp;'cd&nbsp;\/home\/backup-home&nbsp;&amp;amp;&amp;amp;&nbsp;tar&nbsp;x&nbsp;-p'&nbsp;\u901a\u8fc7ssh\u5728\u8fdc\u7a0b\u76ee\u5f55\u4e2d\u590d\u5236\u4e00\u4e2a\u672c\u5730\u76ee\u5f55\ntar&nbsp;cf&nbsp;-&nbsp;.&nbsp;|&nbsp;(cd&nbsp;\/tmp\/backup&nbsp;;&nbsp;tar&nbsp;xf&nbsp;-&nbsp;)&nbsp;\u672c\u5730\u5c06\u4e00\u4e2a\u76ee\u5f55\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u5730\u65b9\uff0c\u4fdd\u7559\u539f\u6709\u6743\u9650\u53ca\u94fe\u63a5\nfind&nbsp;\/home\/user1&nbsp;-name&nbsp;'*.txt'&nbsp;|&nbsp;xargs&nbsp;cp&nbsp;-av&nbsp;--target-directory=\/home\/backup\/&nbsp;--parents&nbsp;\u4ece\u4e00\u4e2a\u76ee\u5f55\u67e5\u627e\u5e76\u590d\u5236\u6240\u6709\u4ee5&nbsp;'.txt'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\nfind&nbsp;\/var\/log&nbsp;-name&nbsp;'*.log'&nbsp;|&nbsp;tar&nbsp;cv&nbsp;--files-from=-&nbsp;|&nbsp;bzip2&nbsp;&amp;gt;&nbsp;log.tar.bz2&nbsp;\u67e5\u627e\u6240\u6709\u4ee5&nbsp;'.log'&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\u5e76\u505a\u6210\u4e00\u4e2abzip\u5305\ndd&nbsp;if=\/dev\/hda&nbsp;of=\/dev\/fd0&nbsp;bs=512&nbsp;count=1&nbsp;\u505a\u4e00\u4e2a\u5c06&nbsp;MBR&nbsp;(Master&nbsp;Boot&nbsp;Record)\u5185\u5bb9\u590d\u5236\u5230\u8f6f\u76d8\u7684\u52a8\u4f5c\ndd&nbsp;if=\/dev\/fd0&nbsp;of=\/dev\/hda&nbsp;bs=512&nbsp;count=1&nbsp;\u4ece\u5df2\u7ecf\u4fdd\u5b58\u5230\u8f6f\u76d8\u7684\u5907\u4efd\u4e2d\u6062\u590dMBR\u5185\u5bb9<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">21. \u5149\u76d8<\/span><\/h2>\n<pre>cdrecord&nbsp;-v&nbsp;gracetime=2&nbsp;dev=\/dev\/cdrom&nbsp;-eject&nbsp;blank=fast&nbsp;-force&nbsp;\u6e05\u7a7a\u4e00\u4e2a\u53ef\u590d\u5199\u7684\u5149\u76d8\u5185\u5bb9\nmkisofs&nbsp;\/dev\/cdrom&nbsp;&amp;gt;&nbsp;cd.iso&nbsp;\u5728\u78c1\u76d8\u4e0a\u521b\u5efa\u4e00\u4e2a\u5149\u76d8\u7684iso\u955c\u50cf\u6587\u4ef6\nmkisofs&nbsp;\/dev\/cdrom&nbsp;|&nbsp;gzip&nbsp;&amp;gt;&nbsp;cd_iso.gz&nbsp;\u5728\u78c1\u76d8\u4e0a\u521b\u5efa\u4e00\u4e2a\u538b\u7f29\u4e86\u7684\u5149\u76d8iso\u955c\u50cf\u6587\u4ef6\nmkisofs&nbsp;-J&nbsp;-allow-leading-dots&nbsp;-R&nbsp;-V&nbsp;\"Label&nbsp;CD\"&nbsp;-iso-level&nbsp;4&nbsp;-o&nbsp;.\/cd.iso&nbsp;data_cd&nbsp;\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u7684iso\u955c\u50cf\u6587\u4ef6\ncdrecord&nbsp;-v&nbsp;dev=\/dev\/cdrom&nbsp;cd.iso&nbsp;\u523b\u5f55\u4e00\u4e2aISO\u955c\u50cf\u6587\u4ef6\ngzip&nbsp;-dc&nbsp;cd_iso.gz&nbsp;|&nbsp;cdrecord&nbsp;dev=\/dev\/cdrom&nbsp;-&nbsp;\u523b\u5f55\u4e00\u4e2a\u538b\u7f29\u4e86\u7684ISO\u955c\u50cf\u6587\u4ef6\nmount&nbsp;-o&nbsp;loop&nbsp;cd.iso&nbsp;\/mnt\/iso&nbsp;\u6302\u8f7d\u4e00\u4e2aISO\u955c\u50cf\u6587\u4ef6\ncd-paranoia&nbsp;-B&nbsp;\u4ece\u4e00\u4e2aCD\u5149\u76d8\u8f6c\u5f55\u97f3\u8f68\u5230&nbsp;wav&nbsp;\u6587\u4ef6\u4e2d\ncd-paranoia&nbsp;--&nbsp;\"-3\"&nbsp;\u4ece\u4e00\u4e2aCD\u5149\u76d8\u8f6c\u5f55\u97f3\u8f68\u5230&nbsp;wav&nbsp;\u6587\u4ef6\u4e2d\uff08\u53c2\u6570-3\uff09\ncdrecord&nbsp;--scanbus&nbsp;\u626b\u63cf\u603b\u7ebf\u4ee5\u8bc6\u522bscsi\u901a\u9053\ndd&nbsp;if=\/dev\/hdc&nbsp;|&nbsp;md5sum&nbsp;\u6821\u9a8c\u4e00\u4e2a\u8bbe\u5907\u7684md5sum\u7f16\u7801\uff0c\u4f8b\u5982\u4e00\u5f20&nbsp;CD<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">22. \u7f51\u7edc\uff08\u4ee5\u592a\u7f51\u548c WIFI \u65e0\u7ebf\uff09<\/span><\/h2>\n<pre>ifconfig&nbsp;eth0&nbsp;\u663e\u793a\u4e00\u4e2a\u4ee5\u592a\u7f51\u5361\u7684\u914d\u7f6e\nifup&nbsp;eth0&nbsp;\u542f\u7528\u4e00\u4e2a&nbsp;'eth0'&nbsp;\u7f51\u7edc\u8bbe\u5907\nifdown&nbsp;eth0&nbsp;\u7981\u7528\u4e00\u4e2a&nbsp;'eth0'&nbsp;\u7f51\u7edc\u8bbe\u5907\nifconfig&nbsp;eth0&nbsp;192.168.1.1&nbsp;netmask&nbsp;255.255.255.0&nbsp;\u63a7\u5236IP\u5730\u5740\nifconfig&nbsp;eth0&nbsp;promisc&nbsp;\u8bbe\u7f6e&nbsp;'eth0'&nbsp;\u6210\u6df7\u6742\u6a21\u5f0f\u4ee5\u55c5\u63a2\u6570\u636e\u5305&nbsp;(sniffing)\ndhclient&nbsp;eth0&nbsp;\u4ee5dhcp\u6a21\u5f0f\u542f\u7528&nbsp;'eth0'\nroute&nbsp;-n&nbsp;show&nbsp;routing&nbsp;table\nroute&nbsp;add&nbsp;-net&nbsp;0\/0&nbsp;gw&nbsp;IP_Gateway&nbsp;configura&nbsp;default&nbsp;gateway\nroute&nbsp;add&nbsp;-net&nbsp;192.168.0.0&nbsp;netmask&nbsp;255.255.0.0&nbsp;gw&nbsp;192.168.1.1&nbsp;configure&nbsp;static&nbsp;route&nbsp;to&nbsp;reach&nbsp;network&nbsp;'192.168.0.0\/16'\nroute&nbsp;del&nbsp;0\/0&nbsp;gw&nbsp;IP_gateway&nbsp;remove&nbsp;static&nbsp;route\necho&nbsp;\"1\"&nbsp;&amp;gt;&nbsp;\/proc\/sys\/net\/ipv4\/ip_forward&nbsp;activate&nbsp;ip&nbsp;routing\nhostname&nbsp;show&nbsp;hostname&nbsp;of&nbsp;system\nhost&nbsp;www.example.com&nbsp;lookup&nbsp;hostname&nbsp;to&nbsp;resolve&nbsp;name&nbsp;to&nbsp;ip&nbsp;address&nbsp;and&nbsp;viceversa(1)\nnslookup&nbsp;www.example.com&nbsp;lookup&nbsp;hostname&nbsp;to&nbsp;resolve&nbsp;name&nbsp;to&nbsp;ip&nbsp;address&nbsp;and&nbsp;viceversa(2)\nip&nbsp;link&nbsp;show&nbsp;show&nbsp;link&nbsp;status&nbsp;of&nbsp;all&nbsp;interfaces\nmii-tool&nbsp;eth0&nbsp;show&nbsp;link&nbsp;status&nbsp;of&nbsp;'eth0'\nethtool&nbsp;eth0&nbsp;show&nbsp;statistics&nbsp;of&nbsp;network&nbsp;card&nbsp;'eth0'\nnetstat&nbsp;-tup&nbsp;show&nbsp;all&nbsp;active&nbsp;network&nbsp;connections&nbsp;and&nbsp;their&nbsp;PID\nnetstat&nbsp;-tupl&nbsp;show&nbsp;all&nbsp;network&nbsp;services&nbsp;listening&nbsp;on&nbsp;the&nbsp;system&nbsp;and&nbsp;their&nbsp;PID\ntcpdump&nbsp;tcp&nbsp;port&nbsp;80&nbsp;show&nbsp;all&nbsp;HTTP&nbsp;traffic\niwlist&nbsp;scan&nbsp;show&nbsp;wireless&nbsp;networks\niwconfig&nbsp;eth1&nbsp;show&nbsp;configuration&nbsp;of&nbsp;a&nbsp;wireless&nbsp;network&nbsp;card\nhostname&nbsp;show&nbsp;hostname\nhost&nbsp;www.example.com&nbsp;lookup&nbsp;hostname&nbsp;to&nbsp;resolve&nbsp;name&nbsp;to&nbsp;ip&nbsp;address&nbsp;and&nbsp;viceversa\nnslookup&nbsp;www.example.com&nbsp;lookup&nbsp;hostname&nbsp;to&nbsp;resolve&nbsp;name&nbsp;to&nbsp;ip&nbsp;address&nbsp;and&nbsp;viceversa\nwhois&nbsp;www.example.com&nbsp;lookup&nbsp;on&nbsp;Whois&nbsp;database<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">23. \u5217\u51fa\u76ee\u5f55\u5185\u5bb9<\/span><\/h2>\n<pre>ls&nbsp;-a\uff1a\u663e\u793a\u6240\u6709\u6587\u4ef6\uff08\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff09\uff1b\nls&nbsp;-l\uff1a\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\uff1b\nls&nbsp;-R\uff1a\u9012\u5f52\u663e\u793a\u5b50\u76ee\u5f55\u7ed3\u6784\uff1b\nls&nbsp;-ld\uff1a\u663e\u793a\u76ee\u5f55\u548c\u94fe\u63a5\u4fe1\u606f\uff1b\nctrl+r\uff1a\u5386\u53f2\u8bb0\u5f55\u4e2d\u6240\u641c\u547d\u4ee4\uff08\u8f93\u5165\u547d\u4ee4\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26\uff09\uff1b\nLinux\u4e2d\u4ee5.\u5f00\u5934\u7684\u6587\u4ef6\u662f\u9690\u85cf\u6587\u4ef6\uff1b\npwd:\u663e\u793a\u5f53\u524d\u76ee\u5f55<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">24. \u67e5\u770b\u6587\u4ef6\u7684\u7c7b\u578b<\/span><\/h2>\n<pre>file:\u67e5\u770b\u6587\u4ef6\u7684\u7c7b\u578b<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">25. \u590d\u5236\u6587\u4ef6\u76ee\u5f55<\/span><\/h2>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>1\u3001<strong>cp<\/strong>\uff1a\u590d\u5236\u6587\u4ef6\u548c\u76ee\u5f55 cp \u6e90\u6587\u4ef6\uff08\u6587\u4ef6\u5939\uff09\u76ee\u6807\u6587\u4ef6\uff08\u6587\u4ef6\u5939\uff09<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u5e38\u7528\u53c2\u6570\uff1a-r:\u9012\u5f52\u590d\u5236\u6574\u4e2a\u76ee\u5f55\u6811\uff1b-v\uff1a\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\uff1b<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u590d\u5236\u6587\u4ef6\u5939\u65f6\u8981\u5728 cp \u547d\u4ee4\u540e\u9762\u52a0\u4e00\u4e2a-r \u53c2\u6570\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u5982\uff1acp -r \u6e90\u6587\u4ef6\u5939 \u76ee\u6807\u6587\u4ef6\u5939<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>2\u3001<strong>touch+\u6587\u4ef6\u540d<\/strong>\uff1a\u5f53\u6587\u4ef6\u4e0d\u5b58\u5728\u7684\u65f6\u5019\uff0c\u521b\u5efa\u76f8\u5e94\u7684\u6587\u4ef6\uff1b\u5f53\u6587\u4ef6\u5b58\u5728\u7684\u65f6\u5019\uff0c\u4fee\u6539\u6587\u4ef6\u7684\u521b\u5efa\u65f6\u95f4\u3002\u53e6\u5916\uff0c\u641c\u7d22\u516c\u4f17\u53f7Linux\u5c31\u8be5\u8fd9\u6837\u5b66\u540e\u53f0\u56de\u590d\u201c\u7334\u5b50\u201d\uff0c\u83b7\u53d6\u4e00\u4efd\u60ca\u559c\u793c\u5305\u3002<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u529f\u80fd\uff1a\u751f\u6210\u4e00\u4e2a\u7a7a\u6587\u4ef6\u6216\u4fee\u6539\u6587\u4ef6\u7684\u5b58\u53d6\/\u4fee\u6539\u7684\u65f6\u95f4\u8bb0\u5f55\u503c\u3002<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">touch * \uff1a\u5c06\u5f53\u524d\u4e0b\u7684\u6587\u4ef6\u65f6\u95f4\u4fee\u6539\u4e3a\u7cfb\u7edf\u7684\u5f53\u524d\u65f6\u95f4<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">touch \u2013d 20040210 test\uff1a\u5c06 test \u6587\u4ef6\u7684\u65e5\u671f\u6539\u4e3a 20040210<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">touch abc \u3000\uff1a\u82e5 abc \u6587\u4ef6\u5b58\u5728\uff0c\u5219\u4fee\u6539\u4e3a\u7cfb\u7edf\u7684\u5f53\u524d\u65f6\u95f4\uff1b\u82e5\u4e0d\u5b58\u5728\uff0c\u5219\u751f\u6210\u4e00\u4e2a\u4e3a\u5f53\u524d\u65f6\u95f4\u7684\u7a7a\u6587\u4ef6<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>3\u3001<strong>mv \u6587\u4ef6 \u76ee\u6807\u76ee\u5f55<\/strong>\uff1a\u79fb\u52a8\u6216\u91cd\u547d\u540d\u6587\u4ef6\u6216\u76ee\u5f55\uff08\u5982\u679c\u6307\u5b9a\u6587\u4ef6\u540d\uff0c\u5219\u53ef\u4ee5\u91cd\u547d\u540d\u6587\u4ef6\uff09\u3002\u53ef\u4ee5\u5c06\u6587\u4ef6\u53ca\u76ee\u5f55\u79fb\u5230\u53e6\u4e00\u76ee\u5f55\u4e0b\uff0c\u6216\u66f4\u6539\u6587\u4ef6\u53ca\u76ee\u5f55\u7684\u540d\u79f0\u3002<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u683c\u5f0f\u4e3a\uff1amv [\u53c2\u6570] <\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">mva.txt ..\/\uff1a\u5c06 a.txt \u6587\u4ef6\u79fb\u52a8\u4e0a\u5c42\u76ee\u5f55<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">mv a.txt b.txt\uff1a\u5c06 a.txt \u6539\u540d\u4e3a b.txt<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">mvdir2 ..\/\uff1a\u5c06 dir2 \u76ee\u5f55\u4e0a\u79fb\u4e00\u5c42<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>4\u3001<strong>rm<\/strong>\uff1a\u5220\u9664\u6587\u4ef6\uff1b<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u5e38\u7528\u53c2\u6570\uff1a-i\uff1a\u4ea4\u4e92\u5f0f -r\uff1a\u9012\u5f52\u7684\u5220\u9664\u5305\u62ec\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u5185\u5bb9<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>5\u3001<strong>mkdir +\u6587\u4ef6\u5939\u540d\u79f0<\/strong>\uff1a\u521b\u5efa\u6587\u4ef6\u5939\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>6\u3001<strong>rm -r +\u6587\u4ef6\u5939\u540d\u79f0<\/strong>\uff1a\u5220\u9664\u6587\u4ef6\u5939\uff08\u7a7a\u6587\u4ef6\u5939\u548c\u975e\u7a7a\u6587\u4ef6\u5939\u90fd\u53ef\u5220\u9664\uff09<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rmdir \u6587\u4ef6\u5939\u540d\u79f0\uff1a\u5220\u9664\u6587\u4ef6\u5939\uff08\u53ea\u80fd\u5220\u9664\u7a7a\u6587\u4ef6\u5939\uff09<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>7\u3001<strong>mkdir -p dir1\/dir2<\/strong>\uff1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa dir1 \u76ee\u5f55\uff0c\u5e76\u5728 dir1 \u76ee\u5f55\u4e0b\u521b\u5efa dir2 \u76ee\u5f55\uff0c \u4e5f\u5c31\u662f\u8fde\u7eed\u521b\u5efa\u4e24\u4e2a\u76ee\u5f55\uff08dir1\/\u548c dir1\/dir2\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>8\u3001<strong>rmdir \u2013p dir1\/dir2<\/strong>\uff1a\u5220\u9664 dir1 \u4e0b\u7684 dir2 \u76ee\u5f55\uff0c\u82e5 dir1 \u76ee\u5f55\u4e3a\u7a7a\u4e5f\u5220\u9664\u5b83<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>9\u3001<strong>rm *<\/strong>\uff1a\u5220\u9664\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>10\u3001<strong>-f \u53c2\u6570<\/strong>\uff1a\u5f3a\u8feb\u5220\u9664\u6587\u4ef6 rm \u2013f *.txt\uff1a\u5f3a\u8feb\u5220\u9664\u6240\u6709\u4ee5\u540e\u7f00\u540d\u4e3a txt \u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>11\u3001<strong>-i \u53c2\u6570<\/strong>\uff1a\u5220\u9664\u6587\u4ef6\u65f6\u8be2\u95ee<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm \u3000\u2013i * \uff1a\u5220\u9664\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u4f1a\u6709\u5982\u4e0b\u63d0\u793a\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm:backup:is a directory \u3000\u3000\u3000 \u9047\u5230\u76ee\u5f55\u4f1a\u7565\u8fc7<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm: remove \u2018myfiles.txt\u2019 ? Y<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u5220\u9664\u6587\u4ef6\u65f6\u4f1a\u8be2\u95ee,\u53ef\u6309 Y \u6216 N \u952e\u8868\u793a\u5141\u8bb8\u6216\u62d2\u7edd\u5220\u9664\u6587\u4ef6<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>12\u3001<strong>-r \u53c2\u6570<\/strong>\uff1a\u9012\u5f52\u5220\u9664\uff08\u8fde\u5b50\u76ee\u5f55\u4e00\u540c\u5220\u9664\uff0c\u8fd9\u662f\u4e00\u4e2a\u76f8\u5f53\u5e38\u7528\u7684\u53c2\u6570\uff09<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm -r test \uff1a\u5220\u9664 test \u76ee\u5f55\uff08\u542b test \u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\uff09<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm -r *\uff1a\u5220\u9664\u6240\u6709\u6587\u4ef6\uff08\u542b\u5f53\u524d\u76ee\u5f55\u6240\u6709\u6587\u4ef6\u3001\u6240\u6709\u5b50\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff09 \u4e00\u822c\u5728\u5220\u9664\u76ee\u5f55\u65f6 r \u548c f \u4e00\u8d77\u7528\uff0c\u907f\u514d\u9ebb\u70e6<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">rm -rf test \uff1a\u5f3a\u884c\u5220\u9664\u3001\u4e0d\u52a0\u8be2\u95ee<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>13\u3001<strong>grep<\/strong>\uff1a\u529f\u80fd\uff1a\u5728\u6587\u4ef6\u4e2d\u641c\u7d22\u5339\u914d\u7684\u5b57\u7b26\u5e76\u8fdb\u884c\u8f93\u51fa<\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u683c\u5f0f\uff1agrep[\u53c2\u6570] <\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">grep test.txt\uff1a\u641c\u7d22 test.txt \u6587\u4ef6\u4e2d\u5b57\u7b26\u4e32 linux \u5e76\u8f93\u51fa<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>14\u3001<strong>ln \u547d\u4ee4<\/strong><\/span><\/p>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding-top: 0px;padding-right: 1em;padding-left: 1em;border-left-width: 4px;font-size: 0.9em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\">\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u529f\u80fd\uff1a\u5728\u6587\u4ef6\u548c\u76ee\u5f55\u4e4b\u95f4\u5efa\u7acb\u94fe\u63a5<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u683c\u5f0f\uff1aln [\u53c2\u6570] <\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">\u94fe\u63a5\u5206\u201c\u8f6f\u94fe\u63a5\u201d\u548c\u201c\u786c\u94fe\u63a5\u201d<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">1.\u8f6f\u94fe\u63a5:<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">ln\u2013s \/usr\/share\/do doc \uff1a\u521b\u5efa\u4e00\u4e2a\u94fe\u63a5\u6587\u4ef6 doc,\u5e76\u6307\u5411\u76ee\u5f55\/usr\/share\/do<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">2.\u786c\u94fe\u63a5:<\/span><\/p>\n<p style=\"margin-bottom: 24px;font-size: inherit;text-align: left;line-height: 1.6 !important\"><span style=\"font-size: 17px\">ln \/usr\/share\/test hard\uff1a\u521b\u5efa\u4e00\u4e2a\u786c\u94fe\u63a5\u6587\u4ef6 hard\uff0c\u8fd9\u65f6\u5bf9\u4e8e test \u6587\u4ef6\u5bf9\u5e94 \u7684\u5b58\u50a8\u533a\u57df\u6765\u8bf4\uff0c\u53c8\u591a\u4e86\u4e00\u4e2a\u6587\u4ef6\u6307\u5411\u5b83<\/span><\/p>\n<\/blockquote>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">26. \u7cfb\u7edf\u5e38\u7528\u547d\u4ee4<\/span><\/h2>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.1\u3001\u663e\u793a\u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>date:\u67e5\u770b\u6216\u8bbe\u7f6e\u5f53\u524d\u7cfb\u7edf\u7684\u65f6\u95f4\uff1a\u683c\u5f0f\u5316\u663e\u793a\u65f6\u95f4\uff1a+%Y&#8211;%m&#8211;%d\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>date -s:\u8bbe\u7f6e\u5f53\u524d\u7cfb\u7edf\u7684\u65f6\u95f4<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>hwclock(clock)\uff1a\u663e\u793a\u786c\u4ef6\u65f6\u949f\u65f6\u95f4(\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650)\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cal\uff1a\u67e5\u770b\u65e5\u5386<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f cal [\u53c2\u6570] \u6708\u5e74<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cal\uff1a\u663e\u793a\u5f53\u6708\u7684\u65e5\u5386 cal4 2004 \uff1a\u663e\u793a 2004 \u5e74 4 \u6708\u7684\u65e5\u5386<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cal- y 2003\uff1a\u663e\u793a 2003 \u5e74\u7684\u65e5\u5386<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>uptime\uff1a\u67e5\u770b\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.2\u3001\u8f93\u51fa\u67e5\u770b\u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>echo\uff1a\u663e\u793a\u8f93\u5165\u7684\u5185\u5bb9 \u8ffd\u52a0\u6587\u4ef6 echo &#8220;liuyazhuang&#8221; &gt;&gt; liuyazhuang.txt<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cat\uff1a\u663e\u793a\u6587\u4ef6\u5185\u5bb9,\u4e5f\u53ef\u4ee5\u5c06\u6570\u4e2a\u6587\u4ef6\u5408\u5e76\u6210\u4e00\u4e2a\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f\uff1a\u683c\u5f0f\uff1acat[\u53c2\u6570]<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cat test.txt\uff1a\u663e\u793a test.txt \u6587\u4ef6\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cat test.txt | more \uff1a\u9010\u9875\u663e\u793a test.txt \u6587\u4ef6\u4e2d\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cat test.txt &gt;&gt; test1.txt \uff1a\u5c06 test.txt \u7684\u5185\u5bb9\u9644\u52a0\u5230 test1.txt \u6587\u4ef6\u4e4b\u540e<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>cat test.txt test2.txt &gt;readme.txt \u3000: \u5c06 test.txt \u548c test2.txt \u6587\u4ef6\u5408\u5e76\u6210 readme.txt \u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>head:\u663e\u793a\u6587\u4ef6\u7684\u5934\u51e0\u884c\uff08\u9ed8\u8ba4 10 \u884c\uff09 -n:\u6307\u5b9a\u663e\u793a\u7684\u884c\u6570\u683c\u5f0f\uff1ahead -n \u6587\u4ef6\u540d<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tail\uff1a\u663e\u793a\u6587\u4ef6\u7684\u672b\u5c3e\u51e0\u884c\uff08\u9ed8\u8ba4 10 \u884c\uff09-n\uff1a\u6307\u5b9a\u663e\u793a\u7684\u884c\u6570 -f\uff1a\u8ffd\u8e2a\u663e\u793a\u6587\u4ef6\u66f4\u65b0 \uff08\u4e00\u822c\u7528\u4e8e\u67e5\u770b\u65e5\u5fd7\uff0c\u547d\u4ee4\u4e0d\u4f1a\u9000\u51fa\uff0c\u800c\u662f\u6301\u7eed\u663e\u793a\u65b0\u52a0\u5165\u7684\u5185\u5bb9\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f\uff1a\u683c\u5f0f\uff1atail[\u53c2\u6570]<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tail-10 \/etc\/passwd \uff1a\u663e\u793a\/etc\/passwd\/\u6587\u4ef6\u7684\u5012\u6570 10 \u884c\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tail+10 \/etc\/passwd \uff1a\u663e\u793a\/etc\/passwd\/\u6587\u4ef6\u4ece\u7b2c 10 \u884c\u5f00\u59cb\u5230\u672b\u5c3e\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>more\uff1a\u7528\u4e8e\u7ffb\u9875\u663e\u793a\u6587\u4ef6\u5185\u5bb9\uff08\u53ea\u80fd\u5411\u4e0b\u7ffb\u9875\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>more \u547d\u4ee4\u662f\u4e00\u822c\u7528\u4e8e\u8981\u663e\u793a\u7684\u5185\u5bb9\u4f1a\u8d85\u8fc7\u4e00\u4e2a\u753b\u9762\u957f\u5ea6\u7684\u60c5\u51b5\u3002\u4e3a\u4e86\u907f\u514d\u753b \u9762\u663e\u793a\u65f6\u77ac\u95f4\u5c31\u95ea\u8fc7\u53bb\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528 more \u547d\u4ee4\uff0c\u8ba9\u753b\u9762\u5728\u663e\u793a\u6ee1\u4e00\u9875\u65f6\u6682\u505c\uff0c\u6b64\u65f6\u53ef\u6309\u7a7a\u683c\u952e\u7ee7\u7eed\u663e\u793a\u4e0b\u4e00\u4e2a\u753b\u9762\uff0c\u6216\u6309 Q \u952e\u505c\u6b62\u663e\u793a\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>ls -al |more\uff1a\u4ee5\u957f\u683c\u5f62\u5f0f\u663e\u793a etc \u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5217\u8868\uff0c\u663e\u793a\u6ee1\u4e00\u4e2a\u753b\u9762\u4fbf\u6682\u505c\uff0c\u53ef \u6309\u7a7a\u683c\u952e\u7ee7\u7eed\u663e\u793a\u4e0b\u4e00\u753b\u9762\uff0c\u6216\u6309 Q \u952e\u8df3\u79bb<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>less\uff1a\u7ffb\u9875\u663e\u793a\u6587\u4ef6\u5185\u5bb9\uff08\u5e26\u4e0a\u4e0b\u7ffb\u9875\uff09\u6309\u4e0b\u4e0a\u952e\u5206\u9875\uff0c\u6309 q \u9000\u51fa\u3001\u2018<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>less \u547d\u4ee4\u7684\u7528\u6cd5\u4e0e more \u547d\u4ee4\u7c7b\u4f3c\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u6d4f\u89c8\u8d85\u8fc7\u4e00\u9875\u7684\u6587\u4ef6\u3002\u6240\u4e0d\u540c \u7684\u662f less \u547d\u4ee4\u9664\u4e86\u53ef\u4ee5\u6309\u7a7a\u683c\u952e\u5411\u4e0b\u663e\u793a\u6587\u4ef6\u5916\uff0c\u8fd8\u53ef\u4ee5\u5229\u7528\u4e0a\u4e0b\u952e\u6765\u5377\u52a8\u6587\u4ef6\u3002\u5f53\u8981\u7ed3\u675f\u6d4f\u89c8\u65f6\uff0c\u53ea\u8981\u5728 less \u547d\u4ee4\u7684\u63d0\u793a\u7b26\u201c\uff1a\u201d\u4e0b\u6309 Q \u952e\u5373\u53ef\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>ls -al | less\uff1a\u4ee5\u957f\u683c\u5f62\u5f0f\u5217\u51fa\/etc \u76ee\u5f55\u4e2d\u6240\u6709\u7684\u5185\u5bb9\u3002\u7528\u6237\u53ef\u6309\u4e0a\u4e0b\u952e\u6d4f\u89c8\u6216\u6309 Q \u952e\u8df3\u79bb<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.3\u3001\u67e5\u770b\u786c\u4ef6\u4fe1\u606f<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>Ispci\uff1a\u67e5\u770b PCI \u8bbe\u5907 -v\uff1a\u67e5\u770b\u8be6\u7ec6\u4fe1\u606f<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>Isusb\uff1a\u67e5\u770b USB \u8bbe\u5907 -v\uff1a\u67e5\u770b\u8be6\u7ec6\u4fe1\u606f<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>Ismod\uff1a\u67e5\u770b\u52a0\u8f7d\u7684\u6a21\u5757(\u9a71\u52a8)<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.4\u3001\u5173\u673a\u3001\u91cd\u542f<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>shutdown \u5173\u95ed\u3001\u91cd\u542f\u8ba1\u7b97\u673a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>shutdown[\u5173\u673a\u3001\u91cd\u542f]\u65f6\u95f4 -h \u5173\u95ed\u8ba1\u7b97\u673a -r\uff1a\u91cd\u542f\u8ba1\u7b97\u673a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5982\uff1a\u7acb\u5373\u5173\u673a\uff1ashutdown -h now<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>10 \u5206\u949f\u540e\u5173\u673a\uff1ashutdown -h +10<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>23:30 \u5206\u5173\u673a\uff1ashutdown -h 23:30<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u7acb\u5373\u91cd\u542f\uff1ashutdown -r now<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>poweroff\uff1a\u7acb\u5373\u5173\u95ed\u8ba1\u7b97\u673a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>reboot\uff1a\u7acb\u5373\u91cd\u542f\u8ba1\u7b97\u673a<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.5\u3001\u5f52\u6863\u3001\u538b\u7f29<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>zip:\u538b\u7f29\u6587\u4ef6 zip liuyazhuang.zip myfile \u683c\u5f0f\u4e3a\uff1a\u201czip \u538b\u7f29\u540e\u7684 zip \u6587\u4ef6\u6587\u4ef6\u540d\u201d<\/span><\/p>\n<pre>\u725b\u903c\u554a\uff01\u63a5\u79c1\u6d3b\u5fc5\u5907\u7684&nbsp;N&nbsp;\u4e2a\u5f00\u6e90\u9879\u76ee\uff01\u8d76\u5feb\u6536\u85cf<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>unzip\uff1a\u89e3\u538b\u6587\u4ef6 unzip liuyazhuang.zip<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>gzip\uff1a\u538b\u7f29\u6587\u4ef6 gzip \u6587\u4ef6\u540d<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar\uff1a\u5f52\u6863\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -cvf out.tar liuyazhuang \u6253\u5305\u4e00\u4e2a\u5f52\u6863\uff08\u5c06\u6587\u4ef6&#8221;liuyazhuang&#8221;\u6253\u5305\u6210\u4e00\u4e2a\u5f52\u6863\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -xvf liuyazhuang.tar \u91ca\u653e\u4e00\u4e2a\u5f52\u6863\uff08\u91ca\u653e liuyazhuang.tar \u5f52\u6863\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -cvzf backup.tar.gz\/etc<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-z \u53c2\u6570\u5c06\u5f52\u6863\u540e\u7684\u5f52\u6863\u6587\u4ef6\u8fdb\u884c gzip \u538b\u7f29\u4ee5\u51cf\u5c11\u5927\u5c0f\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-c\uff1a\u521b\u5efa\u4e00\u4e2a\u65b0 tar \u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-v\uff1a\u663e\u793a\u8fd0\u884c\u8fc7\u7a0b\u7684\u4fe1\u606f<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-f\uff1a\u6307\u5b9a\u6587\u4ef6\u540d<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-z\uff1a\u8c03\u7528 gzip \u538b\u7f29\u547d\u4ee4\u8fdb\u884c\u538b\u7f29<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-t\uff1a\u67e5\u770b\u538b\u7f29\u6587\u4ef6\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>-x\uff1a\u89e3\u5f00 tar \u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -cvf test.tar *\uff1a\u5c06\u6240\u6709\u6587\u4ef6\u6253\u5305\u6210 test.tar,\u6269\u5c55\u540d.tar \u9700\u81ea\u884c\u52a0\u4e0a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -zcvf test.tar.gz *\uff1a\u5c06\u6240\u6709\u6587\u4ef6\u6253\u5305\u6210 test.tar,\u518d\u7528 gzip \u547d\u4ee4\u538b\u7f29<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -tf test.tar \uff1a\u67e5\u770b test.tar \u6587\u4ef6\u4e2d\u5305\u62ec\u4e86\u54ea\u4e9b\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -xvf test.tar \u5c06 test.tar \u89e3\u5f00<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>tar -zxvf foo.tar.gz \u89e3\u538b\u7f29<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>gzip \u5404 gunzip \u547d\u4ee4<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>gziptest.txt \uff1a\u538b\u7f29\u6587\u4ef6\u65f6\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u53c2\u6570<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>gizp\u2013l test.txt.gz\uff1a\u663e\u793a\u538b\u7f29\u7387<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.6\u3001\u67e5\u627e<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>locate\uff1a\u5feb\u901f\u67e5\u627e\u6587\u4ef6\u3001\u6587\u4ef6\u5939\uff1alocate keyword<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u6b64\u547d\u4ee4\u9700\u8981\u9884\u5148\u5efa\u7acb\u6570\u636e\u5e93\uff0c\u6570\u636e\u5e93\u9ed8\u8ba4\u6bcf\u5929\u66f4\u65b0\u4e00\u6b21\uff0c\u53ef\u7528 updatedb \u547d\u4ee4\u624b\u5de5\u5efa\u7acb\u3001\u66f4\u65b0\u6570\u636e\u5e93\u3002\u6b22\u8fce\u5173\u6ce8\u6211\u4eec\uff0c\u516c\u53f7\u7ec8\u7801\u4e00\u751f\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \u67e5\u627e\u4f4d\u7f6e\u67e5\u627e\u53c2\u6570<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5982\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find . -name<em>liuyazhuang<\/em>\u67e5\u627e\u5f53\u524d\u76ee\u5f55\u4e0b\u540d\u79f0\u4e2d\u542b\u6709&#8221;liuyazhuang&#8221;\u7684\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \/ -name *.conf \u67e5\u627e\u6839\u76ee\u5f55\u4e0b\uff08\u6574\u4e2a\u786c\u76d8\uff09\u4e0b\u540e\u7f00\u4e3a.conf \u7684\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \/ -perm 777 \u67e5\u627e\u6240\u6709\u6743\u9650\u662f 777 \u7684\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \/ -type d \u8fd4\u56de\u6839\u76ee\u5f55\u4e0b\u6240\u6709\u7684\u76ee\u5f55<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find . -name &#8220;a*&#8221;-exec ls -l {} ;<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \u529f\u80fd\uff1a\u7528\u6765\u5bfb\u627e\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f\uff1afind [][\u5339\u914d\u6761\u4ef6]<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>find \/ -name httpd.conf \u641c\u7d22\u7cfb\u7edf\u6839\u76ee\u5f55\u4e0b\u540d\u4e3a httpd.conf \u7684\u6587\u4ef6<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.7\u3001ctrl+c :\u7ec8\u6b62\u5f53\u524d\u7684\u547d\u4ee4<\/span><\/h3>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.8\u3001who \u6216 w \u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u529f\u80fd\uff1a\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u6709\u54ea\u4e9b\u7528\u6237\u767b\u5f55<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f\uff1awho\/w[\u53c2\u6570]<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.9\u3001dmesg \u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u529f\u80fd\uff1a\u663e\u793a\u7cfb\u7edf\u8bca\u65ad\u4fe1\u606f\u3001\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u53f7\u3001\u7269\u7406\u5185\u5b58\u7684\u5927\u5c0f\u4ee5\u53ca\u5176\u5b83\u4fe1\u606f<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.10\u3001df \u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u529f\u80fd\uff1a\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7684\u5404\u4e2a\u5206\u533a\u7684\u5360\u7528\u60c5\u51b5<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.11\u3001du \u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u529f\u80fd\uff1a\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u4e2d\u5404\u7ea7\u5b50\u76ee\u5f55\u6240\u4f7f\u7528\u7684\u786c\u76d8\u7a7a\u95f4\u6570<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u683c\u5f0f\uff1adu [\u53c2\u6570] <\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">26.12\u3001free \u547d\u4ee4<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u529f\u80fd\uff1a\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u5185\u5b58\uff0c\u865a\u62df\u5185\u5b58\uff08\u4ea4\u6362\u7a7a\u95f4\uff09\u7684\u5927\u5c0f\u5360\u7528\u60c5\u51b5<\/span><\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">27. VIM<\/span><\/h2>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>VIM \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5728 Linux \u4e2d\u901a\u8fc7 vim \u547d\u4ee4\u53ef\u4ee5\u542f\u52a8 vim \u7f16\u8f91\u5668\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u4e00\u822c\u4f7f\u7528 vim + \u76ee\u6807\u6587\u4ef6\u8def\u5f84 \u7684\u5f62\u5f0f\u4f7f\u7528 vim<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5982\u679c\u76ee\u6807\u6587\u4ef6\u5b58\u5728\uff0c\u5219 vim \u6253\u5f00\u76ee\u6807\u6587\u4ef6\uff0c\u5982\u679c\u76ee\u6807\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219 vim \u65b0\u5efa\u5e76\u6253\u5f00\u8be5\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:q\uff1a\u9000\u51fa vim \u7f16\u8f91\u5668<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span><strong>VIM \u6a21\u5f0f<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>vim \u62e5\u6709\u4e09\u79cd\u6a21\u5f0f\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span><strong>\uff081\uff09\u547d\u4ee4\u6a21\u5f0f\uff08\u5e38\u89c4\u6a21\u5f0f\uff09<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>vim \u542f\u52a8\u540e\uff0c\u9ed8\u8ba4\u8fdb\u5165\u547d\u4ee4\u6a21\u5f0f\uff0c\u4efb\u4f55\u6a21\u5f0f\u90fd\u53ef\u4ee5\u901a\u8fc7 esc \u952e\u56de\u5230\u547d\u4ee4\u6a21\u5f0f\uff08\u53ef\u4ee5\u591a\u6309\u51e0\u6b21\uff09\uff0c\u547d\u4ee4\u6a21\u5f0f\u4e0b\u53ef\u4ee5\u952e\u5165\u4e0d\u540c\u7684\u547d\u4ee4\u5b8c\u6210\u9009\u62e9\u3001\u590d\u5236\u3001\u7c98\u8d34\u3001\u64a4\u9500\u7b49\u64cd\u4f5c\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u547d\u540d\u6a21\u5f0f\u5e38\u7528\u547d\u4ee4\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>i : \u5728\u5149\u6807\u524d\u63d2\u5165\u6587\u672c\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>o:\u5728\u5f53\u524d\u884c\u7684\u4e0b\u9762\u63d2\u5165\u65b0\u884c\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>dd:\u5220\u9664\u6574\u884c\uff1b<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>yy\uff1a\u5c06\u5f53\u524d\u884c\u7684\u5185\u5bb9\u653e\u5165\u7f13\u51b2\u533a\uff08\u590d\u5236\u5f53\u524d\u884c\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>n+yy :\u5c06 n \u884c\u7684\u5185\u5bb9\u653e\u5165\u7f13\u51b2\u533a\uff08\u590d\u5236 n \u884c\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>p:\u5c06\u7f13\u51b2\u533a\u4e2d\u7684\u6587\u672c\u653e\u5165\u5149\u6807\u540e\uff08\u7c98\u8d34\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>u\uff1a\u64a4\u9500\u4e0a\u4e00\u4e2a\u64cd\u4f5c<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>r:\u66ff\u6362\u5f53\u524d\u5b57\u7b26<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\/ \u67e5\u627e\u5173\u952e\u5b57<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span><strong>\uff082\uff09\u63d2\u5165\u6a21\u5f0f<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u6309 &#8221; i &#8220;\u952e\uff0c\u5373\u53ef\u8fdb\u5165\u63d2\u5165\u6a21\u5f0f\uff0c\u5728\u63d2\u5165\u6a21\u5f0f\u53ef\u4ee5\u8f93\u5165\u7f16\u8f91\u6587\u672c\u5185\u5bb9\uff0c\u4f7f\u7528 esc \u952e\u53ef\u4ee5\u8fd4\u56de\u547d\u4ee4\u6a21\u5f0f\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span><strong>\uff083\uff09ex \u6a21\u5f0f<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5728\u547d\u4ee4\u6a21\u5f0f\u4e2d\u6309&#8221; : &#8220;\u952e\u53ef\u4ee5\u8fdb\u5165 ex \u6a21\u5f0f\uff0c\u5149\u6807\u4f1a\u79fb\u52a8\u5230\u5e95\u90e8\uff0c\u5728\u8fd9\u91cc\u53ef\u4ee5\u4fdd\u5b58\u4fee\u6539\u6216\u9000\u51fa vim.<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>ext \u6a21\u5f0f\u5e38\u7528\u547d\u4ee4\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:w \uff1a\u4fdd\u5b58\u5f53\u524d\u7684\u4fee\u6539<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:q \uff1a\u9000\u51fa<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:q! \uff1a\u5f3a\u5236\u9000\u51fa\uff0c\u4fdd\u5b58\u4fee\u6539<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\ud83d\ude21 :\u4fdd\u5b58\u5e76\u9000\u51fa\uff0c\u76f8\u5f53\u4e8e:wq<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:set number \u663e\u793a\u884c\u53f7<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:! \u7cfb\u7edf\u547d\u4ee4 \u6267\u884c\u4e00\u4e2a\u7cfb\u7edf\u547d\u4ee4\u5e76\u663e\u793a\u7ed3\u679c<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>:sh \uff1a\u5207\u6362\u5230\u547d\u4ee4\u884c\uff0c\u4f7f\u7528 ctrl+d \u5207\u6362\u56de vim<\/span><\/p>\n<h2><span style=\"font-size: 17px;line-height: 1.6 !important\">28. \u8f6f\u4ef6\u5305\u7ba1\u7406\u547d\u4ee4(RPM)<\/span><\/h2>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">28.1\u3001\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u4f7f\u7528 RPM \u547d\u4ee4\u7684\u5b89\u88c5\u6a21\u5f0f\u53ef\u4ee5\u5c06\u8f6f\u4ef6\u5305\u5185\u6240\u6709\u7684\u7ec4\u4ef6\u653e\u5230\u7cfb\u7edf\u4e2d\u7684\u6b63\u786e\u8def\u5f84\uff0c\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u547d\u4ee4\u662f:rpm \u2013ivh wu-ftpd-2.6.2-8.i386.rpm<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>i\uff1a\u4f5c\u7528 rpm \u7684\u5b89\u88c5\u6a21\u5f0f v: \u6821\u9a8c\u6587\u4ef6\u4fe1\u606f h: \u4ee5\uff03\u53f7\u663e\u793a\u5b89\u88c5\u8fdb\u5ea6<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">28.2\u3001\u8f6f\u4ef6\u5305\u7684\u5220\u9664<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5220\u9664\u6a21\u5f0f\u4f1a\u5c06\u6307\u5b9a\u8f6f\u4ef6\u5305\u7684\u5185\u5bb9\u5168\u90e8\u5220\u9664\uff0c\u4f46\u5e76\u4e0d\u5305\u62ec\u5df2\u66f4\u6539\u8fc7\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5220\u9664 RPM \u8f6f\u4ef6\u5305\u7684\u547d\u4ee4\u5982\u4e0b\uff1arpm \u2013e wu-ftpd<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u6ce8\u610f\uff1a\u8fd9\u91cc\u5fc5\u987b\u4f7f\u7528\u8f6f\u4ef6\u540d\u201cwu-ftpd\u201d\u6216\u201dwu-ftpd-2.6.2-8 \u800c\u4e0d\u662f\u4f7f\u7528\u5f53\u521d\u5b89\u88c5\u65f6\u7684\u8f6f\u4ef6\u5305\u540d.wu-ftpd-2.6.2-8.i386.rpm<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">28.3\u3001\u8f6f\u4ef6\u5305\u5347\u7ea7<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u5347\u7ea7\u6a21\u5f0f\u4f1a\u5b89\u88c5\u7528\u6237\u6240\u6307\u5b9a\u7684\u66f4\u65b0\u7248\u672c\uff0c\u5e76\u5220\u9664\u5df2\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u7684\u76f8\u540c\u8f6f\u4ef6\u5305\uff0c\u5347\u7ea7\u8f6f\u4ef6\u5305\u547d\u4ee4\u5982\u4e0b\uff1arpm \u2013Uvh wu-ftpd-2.6.2-8.i386.rpm \u2013Uvh\uff1a\u5347\u7ea7\u53c2\u6570<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">28.4\u3001\u8f6f\u4ef6\u5305\u66f4\u65b0<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u66f4\u65b0\u6a21\u5f0f\u4e0b\uff0crpm \u547d\u4ee4\u4f1a\u68c0\u67e5\u5728\u547d\u4ee4\u884c\u4e2d\u6240\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u662f\u5426\u6bd4\u7cfb\u7edf\u4e2d\u539f\u6709\u7684\u8f6f\u4ef6 \u5305\u66f4\u65b0\u3002\u5982\u679c\u60c5\u51b5\u5c5e\u5b9e\uff0crpm \u547d\u4ee4\u4f1a\u81ea\u52a8\u66f4\u65b0\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\uff1b\u53cd\u4e4b\uff0c\u82e5\u7cfb\u7edf\u4e2d\u5e76\u6ca1\u6709\u6307\u5b9a\u8f6f\u4ef6\u5305\u7684\u8f83\u65e7\u7248\u672c\uff0crpm \u547d\u4ee4\u5e76\u4e0d\u4f1a\u5b89\u88c5\u6b64\u8f6f\u4ef6\u5305\u3002\u800c\u5728\u5347\u7ea7\u6a21\u5f0f\u4e0b\uff0c\u4e0d\u7ba1\u7cfb\u7edf\u4e2d\u662f\u5426\u6709\u8f83\u65e7\u7684\u7248\u672c\uff0crpm \u547d\u4ee4\u90fd\u4f1a\u5b89\u88c5\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>rpm \u2013Fvhwu-ftpd-2.6.2-8.i386.rpm -Fvh\uff1a\u66f4\u65b0\u53c2\u6570<\/span><\/p>\n<h3><span style=\"font-size: 17px;line-height: 1.6 !important\">28.5\u3001\u8f6f\u4ef6\u5305\u67e5\u8be2<\/span><\/h3>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u82e5\u8981\u83b7\u53d6 RPM \u8f6f\u4ef6\u5305\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u53ef\u4ee5\u4f7f\u7528\u67e5\u8be2\u6a21\u5f0f\u3002\u4f7f\u7528-q \u53c2\u6570\u53ef\u67e5\u8be2\u4e00\u4e2a\u5df2 \u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>rpm \u2013q wu-ftpd<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u67e5\u8be2\u8f6f\u4ef6\u5305\u6240\u5b89\u88c5\u7684\u4f4d\u7f6e\uff1arpm \u2013ql package-name<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>rpm \u2013ql xv (l \u53c2\u6570\uff1a\u663e\u793a\u6587\u4ef6\u5217\u8868)<\/span><\/p>\n<p style=\"margin-top: 1em;font-family: system-ui, -apple-system, BlinkMacSystemFont,\"><span>\u597d\u4e86\uff0c\u4eca\u5929\u5c31\u4ecb\u7ecd\u5230\u8fd9\u91cc\uff0c\u89c9\u5f97\u4e0d\u9519\u4e86\uff0c\u5982\u679c\u89c9\u5f97\u6709\u7528\uff0c\u53ef\u4ee5\u5148\u6536\u85cf\u4e86\uff01<\/span><\/p>\n<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f600 \u6761\u6700\u5f3a Linux \u547d\u4ee4\u603b\u7ed3\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\uff0c\u5e26\u6765\u4e00\u7bc7 Linux \u547d\u4ee4\u603b\u7ed3\u7684\u975e\u5e38\u5168\u7684\u6587\u7ae0\uff0c\u4e5f\u662f\u6211\u4eec\u5e73\u65f6\u5de5\u4f5c\u4e2d\u4f7f\u7528\u7387\u975e\u5e38\u9ad8\u7684\u64cd\u4f5c\u547d\u4ee4\uff0c\u547d\u4ee4\u6709\u70b9\u591a\uff0c\u5efa\u8bae\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u5148\u6536\u85cf\u540e\u9605\u8bfb\u3002 1. \u57fa\u672c\u547d\u4ee4 uname&nbsp;-m&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784 uname&nbsp;-r&nbsp;\u663e\u793a\u6b63\u5728\u4f7f\u7528\u7684\u5185\u6838\u7248\u672c dmidecode&nbsp;-q&nbsp;\u663e\u793a\u786c\u4ef6\u7cfb\u7edf\u90e8\u4ef6 (SMBIOS&nbsp;\/&nbsp;DMI)&nbsp;hdparm&nbsp;-i&nbsp;\/dev\/hda&nbsp;\u7f57\u5217\u4e00\u4e2a\u78c1\u76d8\u7684\u67b6\u6784\u7279\u6027 hdparm&nbsp;-tT&nbsp;\/dev\/sda&nbsp;\u5728\u78c1\u76d8\u4e0a\u6267\u884c\u6d4b\u8bd5\u6027\u8bfb\u53d6\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f arch&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784 uname&nbsp;-m&nbsp;\u663e\u793a\u673a\u5668\u7684\u5904\u7406\u5668\u67b6\u6784 uname&nbsp;-r&nbsp;\u663e\u793a\u6b63\u5728\u4f7f\u7528\u7684\u5185\u6838\u7248\u672c dmidecode&nbsp;-q&nbsp;\u663e\u793a\u786c\u4ef6\u7cfb\u7edf\u90e8\u4ef6&nbsp;&#8211;&nbsp;(SMBIOS&nbsp;\/&nbsp;DMI) hdparm&nbsp;-i&nbsp;\/dev\/hda&nbsp;\u7f57\u5217\u4e00\u4e2a\u78c1\u76d8\u7684\u67b6\u6784\u7279\u6027 hdparm&nbsp;-tT&nbsp;\/dev\/sda&nbsp;\u5728\u78c1\u76d8\u4e0a\u6267\u884c\u6d4b\u8bd5\u6027\u8bfb\u53d6\u64cd\u4f5c cat&nbsp;\/proc\/cpuinfo&nbsp;\u663e\u793aCPU&nbsp;info\u7684\u4fe1\u606f cat&nbsp;\/proc\/interrupts&nbsp;\u663e\u793a\u4e2d\u65ad cat&nbsp;\/proc\/meminfo&nbsp;\u6821\u9a8c\u5185\u5b58\u4f7f\u7528 cat&nbsp;\/proc\/swaps&nbsp;\u663e\u793a\u54ea\u4e9bswap\u88ab\u4f7f\u7528 cat&nbsp;\/proc\/version&nbsp;\u663e\u793a\u5185\u6838\u7684\u7248\u672c cat&nbsp;\/proc\/net\/dev&nbsp;\u663e\u793a\u7f51\u7edc\u9002\u914d\u5668\u53ca\u7edf\u8ba1 cat&nbsp;\/proc\/mounts&nbsp;\u663e\u793a\u5df2\u52a0\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf lspci&nbsp;-tv&nbsp;\u7f57\u5217&nbsp;PCI&nbsp;\u8bbe\u5907 lsusb&nbsp;-tv&nbsp;\u663e\u793a&nbsp;USB&nbsp;\u8bbe\u5907 date&nbsp;\u663e\u793a\u7cfb\u7edf\u65e5\u671f cal&nbsp;2007&nbsp;\u663e\u793a2007\u5e74\u7684\u65e5\u5386\u8868 date&nbsp;041217002007.00&nbsp;\u8bbe\u7f6e\u65e5\u671f\u548c\u65f6\u95f4&nbsp;&#8211;&nbsp;\u6708\u65e5\u65f6\u5206\u5e74.\u79d2 clock&nbsp;-w&nbsp;\u5c06\u65f6\u95f4\u4fee\u6539\u4fdd\u5b58\u5230&nbsp;BIOS \u767b\u5f55\u540e\u590d\u5236 2. \u5173\u673a shutdown&nbsp;-h&nbsp;now&nbsp;\u5173\u95ed\u7cfb\u7edf(1) init&nbsp;0&nbsp;\u5173\u95ed\u7cfb\u7edf(2) telinit&nbsp;0&nbsp;\u5173\u95ed\u7cfb\u7edf(3) shutdown&nbsp;-h&nbsp;hours:minutes&nbsp;&amp;amp;&nbsp;\u6309\u9884\u5b9a\u65f6\u95f4\u5173\u95ed\u7cfb\u7edf shutdown&nbsp;-c&nbsp;\u53d6\u6d88\u6309\u9884\u5b9a\u65f6\u95f4\u5173\u95ed\u7cfb\u7edf shutdown&nbsp;-r&nbsp;now&nbsp;\u91cd\u542f(1) reboot&nbsp;\u91cd\u542f(2) logout&nbsp;\u6ce8\u9500 \u767b\u5f55\u540e\u590d\u5236 3. \u6587\u4ef6\u548c\u76ee\u5f55 cd&nbsp;\/home&nbsp;\u8fdb\u5165&nbsp;&#8216;\/&nbsp;home&#8217;&nbsp;\u76ee\u5f55&#8217; cd&nbsp;..&nbsp;\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55 cd&nbsp;..\/..&nbsp;\u8fd4\u56de\u4e0a\u4e24\u7ea7\u76ee\u5f55 cd&nbsp;\u8fdb\u5165\u4e2a\u4eba\u7684\u4e3b\u76ee\u5f55 cd&nbsp;~user1&nbsp;\u8fdb\u5165\u4e2a\u4eba\u7684\u4e3b\u76ee\u5f55 cd&nbsp;&#8211;&nbsp;\u8fd4\u56de\u4e0a\u6b21\u6240\u5728\u7684\u76ee\u5f55 pwd&nbsp;\u663e\u793a\u5de5\u4f5c\u8def\u5f84 ls&nbsp;\u67e5\u770b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6 ls&nbsp;-F&nbsp;\u67e5\u770b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6 ls&nbsp;-l&nbsp;\u663e\u793a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u8be6\u7ec6\u8d44\u6599 ls&nbsp;-a&nbsp;\u663e\u793a\u9690\u85cf\u6587\u4ef6 ls&nbsp;*[0-9]*&nbsp;\u663e\u793a\u5305\u542b\u6570\u5b57\u7684\u6587\u4ef6\u540d\u548c\u76ee\u5f55\u540d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-16523","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=16523"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16523\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=16523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=16523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=16523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}