{"id":293714,"date":"2024-10-19T04:02:16","date_gmt":"2024-10-18T20:02:16","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxrhsymmlcjw.html"},"modified":"2024-10-19T04:02:16","modified_gmt":"2024-10-18T20:02:16","slug":"lxrhsymmlcjw","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxrhsymmlcjw.html","title":{"rendered":"LINUX \u4e0b\u5982\u4f55\u4f7f\u7528 mkfs \u547d\u4ee4\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u5e76\u6307\u5b9a\u7c7b\u578b"},"content":{"rendered":"

\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff1ac\u76d8\u5206\u533a\u4ee5\u540e\u8981\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff0c\u5373\u4f4e\u683c\u3002\u5728LINUX\u4e0b\u53ef\u4ee5\u7528\u547d\u4ee4<\/a>mkfs\u6765\u5b8c\u6210\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u5de5\u4f5c\u3002\u5b9e\u9645\u4e0a\uff0c\u4e0d\u540c\u79cd\u7c7b\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u90fd\u6709\u7279\u5b9a\u7684\u7a0b\u5e8f\u4f4e\u683c\uff0cmkfs\u53ea\u662f\u4e00\u4e2a\u4e3a\u4e86\u6784\u5efa\u4e0d\u540c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u786e\u5b9a\u8fd0\u884c\u4e0d\u540c\u7a0b\u5e8f\u7684\u4e00\u4e2a\u540e\u7aef\uff0c\u4f8b\u5982\u7528mkfs\u6784\u5efaext2\u6587\u4ef6\u7cfb\u7edf\uff0cmkfs\u5c06\u8c03\u7528mkefs\u547d\u4ee4\u6765\u5b8c\u6210\u64cd\u4f5c\u3002<\/p>\n

#mkfs<\/p>\n

\u9009\u9879\u8bf4\u660e<\/p>\n

-tfstype\u6307\u5b9a\u8981\u521b\u5efa\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b<\/p>\n

-c\u67e5\u627e\u574f\u5757\uff0c\u521d\u59cb\u5316\u574f\u5757\u5217\u8868<\/p>\n

\u4e8b\u4f8b\uff1a\/\/\u5728\u7cfb\u7edf\u7b2c\u4e8c\u5757SCSI\u63d2\u53e3\u7684\u786c\u789f\u7684\u7b2c1\u4e2a\u5206\u533a\u4e0a\u521b\u5efaext3\u7c7b\u578b\u7684\u6587\u4ef6\u7cfb\u7edf<\/p>\n

#mkfs-text3\/dev\/sdb1<\/p>\n

\/\/\u5728\u7cfb\u7edf\u7b2c\u4e8c\u5757SCSI\u63d2\u53e3\u7684\u786c\u789f\u7684\u7b2c5\u4e2a\u5206\u533a\u521b\u5efaFAT32\u7c7b\u578b\u7684\u6587\u4ef6\u7cfb\u7edf<\/p>\n

#mkfs-tvfat-c\/dev\/sdb5<\/p>\n

\/\/\u5bf9\u8f6f\u9a71\u521b\u5efavfat\u7c7b\u578b\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u540c\u65f6\u68c0\u6d4bc\u76d8\u574f\u5757<\/p>\n

#mkfs-tvfat-c\/dev\/fd0<\/p>\n

\u5047\u5982\u7528\u6237\u5728\u5b89\u88c5LINUX\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u4e86ext2\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u4e48\u5c06\u5176\u8f6c\u6362\u4e3aext3\u6587\u4ef6\u7cfb\u7edf\u3002\u8bf8\u5982\uff1a\u8981\u5c06\/dev\/hdb6(\u4e00\u4e2aext2\u6587\u4ef6\u7cfb\u7edf)\u8f6c\u6362\u4e3aext3\u6587\u4ef6\u7cfb\u7edf\uff0c\u987b\u8981\u6267\u884c\u5982\u4e0b\u4e24\u6b65\uff1a<\/p>\n

1\uff1a\u6267\u884c\u547d\u4ee4#tune2fs-j\/dev\/hdb6;2:\u66f4\u6539\u7cfb\u7edf\u6302\u88c5\u8868\u5c06\/etc\/fstab\u4e2d\/dev\/hdb6\u76f8\u5e94\u7684\u914d\u7f6e\u884c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u7684\u914d\u7f6e\u9879\u7531ext2\u6539\u4e3aext3<\/p>\n

\u6302\u88c5\u548c\u5378\u88c5\u6587\u4ef6\u7cfb\u7edf\uff1a\u5728c\u76d8\u4e0a\u521b\u5efa\u597d\u6587\u4ef6\u7cfb\u7edf\u540e\uff0c\u8fd8\u987b\u8981\u628a\u65b0\u6784\u5efa\u7684\u6587\u4ef6\u7cfb\u7edf\u6302\u88c5\u5230\u7cfb\u7edf\u4e0a\u80fd\u591f\u4f7f\u7528\u3002\u6302\u88c5\u662fLinux<\/a>\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u6982\u5ff5\u3002<\/p>\n

\u4f7f\u7528mount\u547d\u4ee4\u53ef\u4ee5\u7075\u6d3b\u7684\u6302\u88c5\u7cfb\u7edf\u53ef\u8fa8\u8bc6\u7684\u6240\u6709\u6587\u4ef6\u7cfb\u7edf\u3002\u683c\u5f0f\u662f\uff1a#mount[][][]<\/p>\n

mount\u547d\u4ee4\u7684\u9009\u9879-tfstype\u6307\u5b9a\u8981\u6302\u88c5\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b\uff0c\u5018\u82e5\u4e0d\u6653\u5f97\u53ef\u4ee5\u7528-tauto\u9009\u9879\u6765\u8ba9\u7cfb\u7edf\u624b\u52a8\u5224\u5b9a<\/p>\n

-r\u5018\u82e5\u4e0d\u60f3\u66f4\u6539\u8981\u6302\u88c5\u7684\u6587\u4ef6\u7cfb\u7edf(\u6216\u5219\u56e0\u4e3a\u662f\u53ea\u8bfb\u4ecb\u8d28\u4e0d\u80fd\u66f4\u6539)\uff0c\u53ef\u4ee5\u5728\u6302\u88c5\u65f6\u4f7f\u7528\u6b64\u9009\u9879\uff0c\u4ee5\u53ea\u8bfb\u65b9\u6cd5\u6765\u6302\u88c5<\/p>\n

-w\u4ee5\u53ef\u5199\u7684\u65b9\u6cd5\u6302\u88c5\u6587\u4ef6\u7cfb\u7edf<\/p>\n

-o\u7528\u4e8e\u8bbe\u7f6e\u5404\u7c7b\u6302\u88c5\u9009\u9879<\/p>\n

-a\u6302\u88c5\/etc\/fstab\u6587\u4ef6\u4e2d\u8bb0\u5f55\u7684\u8bbe\u5907<\/p>\n

\u6302\u88c5\u70b9\u5c31\u662f\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u76ee\u5f55\uff0c\u5fc5\u987b\u628a\u65b0\u7684\u6587\u4ef6\u7cfb\u7edf\u6302\u88c5\u5728\u76ee\u5f55\u6811\u4e2d\u7684\u67d0\u4e2a\u76ee\u5f55\u4e2d\u3002\u6302\u88c5\u70b9\u76ee\u5f55\u5728\u65bd\u884c\u6302\u88c5\u64cd\u4f5c\u524d\u5fc5\u987b\u5b58\u5728\uff0c\u82e5\u5176<\/p>\n

\u4e0d\u5b58\u5728\u5e94\u5f53\u4f7f\u7528mkdir\u547d\u4ee4\u521b\u5efa\u3002\u8fd9\u4e2a\u76ee\u5f55\u5fc5\u987b\u662f\u7a7a\u7684\uff0c\u5426\u5219\u76ee\u5f55\u4e2d\u7684\u539f\u6709\u7684\u6587\u4ef6\u5c06\u88ab\u7cfb\u7edf\u9690\u85cf\u3002\u8bf8\u5982\uff1a<\/p>\n

\/\/\u5c06\/dev\/sdb1\u4e0a\u7684ext3\u6587\u4ef6\u7cfb\u7edf\u6302\u88c5\u5230\/opt<\/p>\n

#mount-text3\/dev\/sdb1\/opt<\/p>\n

\/\/\u5c06\/dev\/hda6\u4e0a\u7684FAT32\u6587\u4ef6\u7cfb\u7edf\u6302\u88c5\u5230\/mnt\/win<\/p>\n

#mount-tvfat\/dev\/hda6\/mnt\/win<\/p>\n

\/\/\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\u7684mount\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u5f53\u524d\u65e9\u5df2\u6302\u88c5\u7684\u6587\u4ef6\u7cfb\u7edf<\/p>\n

#mount<\/p>\n

linux\u5efa\u6587\u4ef6\u7cfb\u7edf_\u5efa\u7acb\u6587\u4ef6linux_linux\u642d\u5efa\u6587\u4ef6\u7ba1\u7406\u7cfb\u7edf<\/p>\n

\u5378\u88c5\u6587\u4ef6\u7cfb\u7edf\uff1a\u5378\u88c5\u6587\u4ef6\u7cfb\u7edf\u7684\u547d\u4ee4\u662fumount,\u8be5\u547d\u4ee4\u53ef\u4ee5\u628a\u6587\u4ef6\u7cfb\u7edf\u4eceLinux\u7cfb\u7edf\u4e2d\u7684\u6302\u88c5\u70b9\u5206\u79bb\u3002#umount<\/p>\n

\u6bd4\u5982\uff1a\u4e89\u5bf9\u524d\u9762\u6302\u88c5\u7684\u53cd\u4f8b\u201c\u5c06\/dev\/sdb1\u4e0a\u7684ext3\u6587\u4ef6\u7cfb\u7edf\u6302\u88c5\u5230\/opt\u201d\uff0c\u8fdb\u884c\u5378\u88c5\u7684\u8bddlinux\u4e4b\u5bb6\uff0c#umount\/dev\/sdb1\u548c#umount\/opt\u662f\u4e00\u6837\u7684\u3002<\/p>\n

\u6ce8\u610f\uff0c\u5047\u82e5\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edfbusy\u72b6\u6001\uff0c\u5219\u4e0d\u80fd\u5378\u88c5\u8be5\u6587\u4ef6\u7cfb\u7edf\u3002\u5982\u4e0b\u60c5\u51b5\u5c06\u9020\u6210\u6587\u4ef6\u7cfb\u7edf\u5904\u4e8ebusy\u72b6\u6001\uff1a<\/p>\n

(1)\u6587\u4ef6\u7cfb\u7edf\u4e2d\u6709\u6253\u5f00\u7684\u6587\u4ef6\u3002<\/p>\n

(2)\u67d0\u4e2a\u8fdb\u7a0b\u7684\u5de5\u4f5c\u76ee\u5f55\u5728\u6b64\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002<\/p>\n

(3)\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u7f13\u5b58\u6587\u4ef6\u6b63\u5728\u88ab\u4f7f\u7528\u3002<\/p>\n

\u6700\u5178\u578b\u7684\u9519\u8bef\u662f\u5728\u6302\u88c5\u70b9\u76ee\u5f55\u4e0b\u65bd\u884c\u5378\u88c5\u64cd\u4f5c\uff0c\u6b64\u65f6\u80af\u5b9a\u5904\u4e8ebusy\u72b6\u6001<\/p>\n

\u5728\u5b57\u7b26\u754c\u9762\u4e0b\u4f7f\u7528\u8f6f\u9a71\u548c\u5149\u789f\uff1aLinux\u5c06\u8f6f\u9a71\u548c\u5149\u789f\u5747\u89c6\u4e3a\u6587\u4ef6\u7cfb\u7edflinux \u4e0b\u8f7d\u5de5\u5177\uff0c\u5728\u4f7f\u7528\u5b83\u4eec\u4e4b\u524d\u8981\u8fdb\u884c\u6302\u88c5\uff0c\u4f7f\u7528\u8fc7\u540e\u8fdb\u884c\u5378\u88c5\u3002<\/p>\n

\u5c06\u5149\u789f\u88c5\u5165\u786c\u76d8\u540e\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\u5373\u53ef\u6302\u88c5\u5149\u789f\uff1a#mount\/mnt\/cdrom<\/p>\n

\u4f7f\u7528\u5b8c\u6bd5\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u5378\u88c5\uff1a#umount\/mnt\/cdrom<\/p>\n

\u5378\u88c5\u4ee5\u540e\u5373\u53ef\u4ece\u786c\u76d8\u4e2d\u53d6\u51fa\u5149\u789f\u3002\u8f6f\u9a71\u540c\u6837\uff0c\u53ea\u8981\u5c06cdrom\u6362\u6210floppy\u5c31\u53ef\u4ee5<\/p>\n

\u76f4\u63a5\u6302\u88c5\u4f7f\u7528ISO\u6587\u4ef6\uff1aISO\u6587\u4ef6\u662f\u5149\u789f\u955c\u50cf\u6587\u4ef6\uff0c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u662fISO9660\u3002\u5728Linux\u4e0b\u4f7f\u7528\u5f88\u7b80\u5355\u3002<\/p>\n

\u5148\u5728\u7cfb\u7edf\u4e2d\u6784\u5efa\u4e00\u4e2a\u6302\u8f7d\u70b9\uff1a#mkdir\/mnt\/iso<\/p>\n

\u7528mount\u547d\u4ee4\u52a0-oloop\u9009\u9879\u6302\u88c5\u5149\u789f\u955c\u50cf\u6587\u4ef6\u3002#mount-oloopshrike-i386-disc1.iso\/mnt\/iso<\/p>\n

\u5378\u88c5\uff1a#umount\/mnt\/iso<\/p>\n

\u7c7b\u4f3c\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u5e26-oloop\u53c2\u6570\u7684mount\u547d\u4ee4\u76f4\u63a5\u6302\u88c5\u8f6f\u9a71\u6620\u50cf\u6587\u4ef6\u3002<\/p>\n

\u5728Linux\u4e2d\u4f7f\u7528USB\u76d8\uff1aUSB\u76d8\u5728LINUX\u4e0b\u662f\u88ab\u6a21\u62df\u6210SCSI\u8bbe\u5907\u6765\u4f7f\u7528\u7684\uff0c\u56e0\u800c\u5bf9\u5e94\u7684\u8bbe\u5907\u6587\u4ef6\u662f\/dev\/sda,\u5018\u82e5\u6709\u591a\u5757USB\u786c\u789f\uff0c\u5219\u8bbe\u5907\u6587\u4ef6\u4f9d\u6b21\u662f\/dev\/sdb\u3001\/dev\/sdc\u7b49\u3002\u8981\u4f7f\u7528USB\u76d8\u9996\u5148\u8981\u786e\u4fddUSB\u7aef\u53e3\u5728BIOS\u4e2d\u65e9\u5df2\u6253\u5f00\u3002\u4f7f\u7528\u65b9\u5f0f\u662f\uff1a<\/p>\n

(1)\u628aUSB\u76d8\u548c\u8ba1\u7b97\u673a\u63a5\u597d\u3002<\/p>\n

(2)\u7528fdisk\u547d\u4ee4\u67e5\u770bUSB\u786c\u789f\u4e0a\u7684\u5206\u533a\u3002#fdisk-l\/dev\/sda<\/p>\n

(3)\u5728LINUX\u7cfb\u7edf\u4e0a\u6784\u5efa\u6302\u88c5\u70b9\uff0c\u5e76\u6302\u88c5USB\u786c\u789f\u4e0a\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\u3002#mkdir\/mnt\/usb1#mount-tvfat\/dev\/sda1\/mnt\/usb1<\/p>\n

(4)\u5217\u4e3e\u5206\u533a\u4e2d\u7684\u6587\u4ef6\u5217\u8868\u3002#ls-l\/mnt\/usb1<\/p>\n

(5)\u4f7f\u7528\u5b8c\u6bd5\u5378\u88c5\u3002#umount\/mnt\/usb1<\/p>\n

\u5e38\u7528\u7684\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u548c\u7ef4\u62a4\u547d\u4ee4\uff1a\u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406\u7684\u5e38\u7528\u547d\u4ee4\u4e3b\u8981\u6709df\u3001du\u3001dd\u3001tar\u3001ln\u3001find\u548cfsck\u7b49\u3002dd\u547d\u4ee4\u548cfind\u547d\u4ee4\u7684\u547d\u4ee4\u683c\u5f0f\u4e0e\u901a\u5e38\u7684linux\u547d\u4ee4\u7684\u547d\u4ee4\u683c\u5f0f\u4e0d\u540clinux\u5efa\u6587\u4ef6\u7cfb\u7edf<\/strong>\uff0cln\u547d\u4ee4\u662f\u7c7bUNIX\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7279\u6709\u7684\u547d\u4ee4\uff0c\u5728DOS\u548cWINDOWS\u7cfb\u7edf\u4e2d\u6ca1\u6709\u8fd9\u4e2a\u547d\u4ee4\u3002<\/p>\n

\u94fe\u63a5\u6587\u4ef6\u548cln\u547d\u4ee4\uff1a\u94fe\u63a5\u6587\u4ef6\u5b9e\u9645\u4e0a\u662f\u7ed9\u7cfb\u7edf\u4e2d\u5df2\u6709\u7684\u67d0\u4e2a\u6587\u4ef6\u6307\u5b9a\u53e6\u5916\u4e00\u4e2a\u53ef\u7528\u4e8e\u8bbf\u95ee\u5b83\u7684\u540d\u79f0\u3002\u5bf9\u4e8e\u8fd9\u4e2a\u65b0\u7684\u6587\u4ef6\u540d\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u4e4b\u6307\u5b9a\u4e0d\u540c\u7684\u8bbf\u95ee\u6743\u9650\uff0c\u4ee5\u63a7\u5236\u5bf9\u4fe1\u606f\u7684\u5171\u4eab\u548c\u5b89\u5168\u6027\u7684\u95ee\u9898\u3002<\/p>\n

\u5047\u5982\u94fe\u63a5\u6307\u5411\u76ee\u5f55\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u501f\u52a9\u94fe\u63a5\u76f4\u63a5\u6b65\u5165\u88ab\u94fe\u63a5\u7684\u76ee\u5f55\u800c\u4e0d\u7528\u8f93\u5165\u4e00\u957f\u4e32\u7684\u8def\u5f84\u540d\u3002\u94fe\u63a5\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u88ab\u79f0\u4e3a\u786c\u94fe\u63a5(HardLink),\u53e6\u5916\u4e00\u79cd\u88ab\u79f0\u4e3a\u7b26\u53f7\u94fe\u63a5(SymbolicLink)\u3002\u6784\u5efa\u786c\u94fe\u63a5\u65f6\uff0c\u94fe\u63a5\u6587\u4ef6\u548c\u88ab\u94fe\u63a5\u6587\u4ef6\u5fc5\u987b\u5750\u843d\u540c\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e2d\uff0c\u800c\u4e14\u4e0d\u80fd\u6784\u5efa\u6307\u5411\u76ee\u5f55\u7684\u786c\u94fe\u63a5\u3002<\/p>\n

\u800c\u7b26\u53f7\u94fe\u63a5\u4e0d\u5b58\u5728\u8fd9\u79cd\u95ee\u9898\u3002<\/p>\n

ln\u547d\u4ee4\u7684\u683c\u5f0f\u4e3a\uff1aln[-s]<\/p>\n

ln[-s]<\/p>\n

\u4e0d\u5e26\u53c2\u6570\u7684ln\u5f62\u6210\u786c\u94fe\u63a5\uff1b\u8981\u521b\u5efa\u7b26\u53f7\u94fe\u63a5\u5e94\u5f53\u4f7f\u7528\u5e26s\u53c2\u6570\u7684ln\u547d\u4ee4\u3002\u7b2c\u4e8c\u79cd\u683c\u5f0f\u7528\u4e8e\u5728\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\u521b\u5efa\u548c\u76ee\u5f55\u540c\u540d\u7684\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n

\u786c\u94fe\u63a5\u7684\u4f7f\u7528\uff1a\u4e24\u4e2a\u6587\u4ef6\u540d\u6307\u5411\u7684\u662f\u786c\u789f\u4e0a\u7684\u540c\u4e00\u4e2a\u50a8\u5b58\u7a7a\u95f4\uff0c\u5bf9\u4e24\u4e2a\u6587\u4ef6\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u7684\u5185\u5bb9\u8fdb\u884c\u66f4\u6539\u5c31\u4f1a\u5f71\u54cd\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\uff0c\u8fd9\u4e9b\u94fe\u63a5\u79f0\u4e3a\u786c\u94fe\u63a5\uff0c\u5b83\u53ef\u4ee5\u7531ln\u547d\u4ee4\u6784\u5efa\u3002<\/p>\n

\u9996\u5148\u67e5\u770b\u4e00\u4e0b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u60c5\u51b5\uff1a#ls-l<\/p>\n

-rwxr-xr-x1Mikeusers58Jun2110:05file1<\/p>\n

#catfile1<\/p>\n

Thisisfile1.<\/p>\n

\u4f7f\u7528ln\u547d\u4ee4\u6784\u5efa\u6587\u4ef6file1\u7684\u786c\u94fe\u63a5\u6587\u4ef6file2:<\/p>\n

#lnfile1file2<\/p>\n

\u8be5\u547d\u4ee4\u5f62\u6210\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6file2,\u5b83\u548c\u65e9\u5df2\u5b58\u5728\u7684\u6587\u4ef6file1\u6784\u5efa\u8d77\u786c\u94fe\u63a5\u5173\u7cfb\u3002<\/p>\n

\u8f6f\u94fe\u63a5\u7684\u4f7f\u7528\uff1a\u7b26\u53f7\u94fe\u63a5(\u4fd7\u79f0\u8f6f\u94fe\u63a5)\uff0c\u662f\u6307\u5c06\u4e00\u4e2a\u6587\u4ef6\u6307\u5411\u53e6\u5916\u4e00\u4e2a\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3002\u8fd9\u4e9b\u7b26\u53f7\u94fe\u63a5\u7684\u5173\u7cfb\u6709ln-s\u547d\u4ee4\u884c\u6765\u6784\u5efa\u3002<\/p>\n

\u9996\u5148\u67e5\u770b\u4e00\u4e0b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u4fe1\u606f\uff1a#ls-l<\/p>\n

linux\u5efa\u6587\u4ef6\u7cfb\u7edf_linux\u642d\u5efa\u6587\u4ef6\u7ba1\u7406\u7cfb\u7edf_\u5efa\u7acb\u6587\u4ef6linux<\/p>\n

-rwxr-xr-x1Mikeusers58Jun2110:05file1<\/p>\n

#catfile1<\/p>\n

Thisisfile1.<\/p>\n

\u4f7f\u7528ln\u547d\u4ee4\u548c-s\u9009\u9879\u6784\u5efa\u6587\u4ef6file1\u7684\u7b26\u53f7\u94fe\u63a5\u6587\u4ef6file2:<\/p>\n

#ln-sfile1file2<\/p>\n

\u8be5\u547d\u4ee4\u5f62\u6210\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6file2,\u5b83\u548c\u65e9\u5df2\u5b58\u5728\u7684\u6587\u4ef6file1\u6784\u5efa\u8d77\u7b26\u53f7\u94fe\u63a5\u5173\u7cfb\u3002(hutu\u4e2a\u4eba\u7406\u89e3\uff1a\u76f8\u5f53\u4e8ewindows\u7684\u5feb\u6377\u65b9\u6cd5)<\/p>\n

dd\u547d\u4ee4\uff1add\u547d\u4ee4\u7684\u529f\u80fd\u662f\u4ece\u6807\u51c6\u8f93\u5165\u3001\u6587\u4ef6\u6216\u8bbe\u5907\u8bfb\u53d6\u6570\u636e\uff0c\u6839\u636e\u6307\u5b9a\u7684\u683c\u5f0f\u6765\u8f6c\u6362\u6570\u636e\uff0c\u518d\u8f93\u51fa\u81f3\u6587\u4ef6\u3001\u8bbe\u5907\u3001\u6216\u6807\u51c6\u8f93\u51fa\u3002\u683c\u5f0f\uff1add<\/p>\n

dd\u547d\u4ee4\u5e38\u7528\u9009\u9879\u8bf4\u660e\uff1a<\/p>\n

if=file\u8f93\u5165\u6587\u4ef6\u540d\u6216\u8bbe\u5907\u540d\uff0c\u9ed8\u8ba4\u6807\u51c6\u8f93\u5165<\/p>\n

of=file\u8f93\u51fa\u6587\u4ef6\u540d\u6216\u8bbe\u5907\u540d\uff0c\u9ed8\u8ba4\u6807\u51c6\u8f93\u51fa<\/p>\n

ibs=n\u8f93\u5165\u5757\u5927\u5c0f\uff0cn\u5b57\u8282(\u9ed8\u8ba4512)<\/p>\n

obs=n\u8f93\u51fa\u5757\u5927\u5c0flinux\u5efa\u6587\u4ef6\u7cfb\u7edf<\/strong>\uff0cn\u5b57\u8282(\u9ed8\u8ba4512)<\/p>\n

bs=n\u540c\u65f6\u8bbe\u7f6e\u8f93\u5165\/\u8f93\u51fa\u5757\u5927\u5c0f<\/p>\n

count=n\u4ec5\u4ec5\u8bfb\u53d6\u6307\u5b9a\u7684\u5757\u6570<\/p>\n

skip=n\u5728\u5f00\u59cb\u8bfb\u53d6\u6587\u4ef6\u4e4b\u524d\u8de8\u8fc7n\u4e2a\u8f93\u5165\u5757\uff0c\u5757\u7684\u5927\u5c0f\u7b49\u4e8eibs\u6216\u5219bs<\/p>\n

seek=n\u5728\u5f00\u59cb\u590d\u5236\u6587\u4ef6\u4e4b\u524d\u8de8\u8fc7n\u4e2a\u8f93\u51fa\u5757\uff0c\u5757\u7684\u5927\u5c0f\u7b49\u4e8eobs\u6216\u5219bs<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f8b\u5b50\uff1a\/\/\u5728\u7cfb\u7edf\u7b2c\u4e8c\u5757SCSI\u63a5\u53e3\u7684\u786c\u76d8\u7684\u7b2c1\u4e2a\u5206\u533a\u4e0a\u521b\u5efaext3\u7c7b\u578b\u7684\u6587\u4ef6\u7cfb\u7edf\u786c\u94fe\u63a5\u7684\u4f7f\u7528\uff1a\u4e24\u4e2a\u6587\u4ef6\u540d\u6307\u5411\u7684\u662f\u786c\u76d8\u4e0a\u7684\u540c\u4e00\u4e2a\u5b58\u50a8\u7a7a\u95f4\uff0c\u5bf9\u4e24\u4e2a\u6587\u4ef6\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u7684\u5185\u5bb9\u8fdb\u884c\u4fee\u6539\u90fd\u4f1a\u5f71\u54cd\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\uff0c\u8fd9\u79cd\u94fe\u63a5\u79f0\u4e3a\u786c\u94fe\u63a5\uff0c\u5b83\u53ef\u4ee5\u7531ln\u547d\u4ee4\u5efa\u7acb\u3002<\/p>\n","protected":false},"author":1,"featured_media":293715,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3677,3680,3678,3681,3679],"class_list":["post-293714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-ewjxtzhwewjx","tag-uml-4","tag-xgxtgzb","tag-xzwjxt","tag-gzsb"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293714"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293714\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293715"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}