linux常用命令之目錄處理
linux常用命令之目錄處理
目錄處理命令:ls;所在路徑/bin/ls。執(zhí)行權(quán)限:所有用戶; 。1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;[root@localhost~]#ls。anaconda-ks.cfg ;install.log.syslog ;VMwaretools-9.6.2-1688356.tar.gz。
導(dǎo)讀目錄處理命令:ls;所在路徑/bin/ls。執(zhí)行權(quán)限:所有用戶; 。1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;[root@localhost~]#ls。anaconda-ks.cfg ;install.log.syslog ;VMwaretools-9.6.2-1688356.tar.gz。
![](https://img.51dongshi.com/20250104/wz/18542806652.jpg)
系統(tǒng)大全為您提供目錄處理命令:ls所在路徑/bin/ls執(zhí)行權(quán)限:所有用戶??12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849[root@localhost~]#lsanaconda-ks.cfg?install.log.syslog?VMwaretools-9.6.2-1688356.tar.gzDesktop?????test2.txt?????vmware-tools-distribinstall.log???test.txt[root@localhost~]#ls-alh總計(jì)59Mdrwxr-x---19rootroot4.0K11-3020:33.drwxr-xr-x24rootroot4.0K11-3019:11..-rw-------?1rootroot1.3K11-3020:59anaconda-ks.cfg-rw-------?1rootroot4.8K11-3020:33.bash_history-rw-r--r--?1rootroot?242006-07-13.bash_logout-rw-r--r--?1rootroot?19111-3019:25.bash_profile-rw-r--r--?1rootroot?1762006-07-13.bashrcdrwx------?2rootroot4.0K11-3021:42.chewingdrwx------?3rootroot4.0K11-3017:50.config-rw-r--r--?1rootroot?1002006-07-13.cshrcdrwxr-xr-x?3rootroot4.0K11-3013:52Desktop-rw-------?1rootroot?2611-3021:42.dmrcdrwxr-x---?2rootroot4.0K11-3021:43.eggcupsdrwx------?4rootroot4.0K11-3019:15.gconfdrwx------?2rootroot4.0K12-0112:11.gconfddrwxr-xr-x?3rootroot4.0K11-3021:42.gnomedrwx------?6rootroot4.0K11-3021:42.gnome2drwx------?2rootroot4.0K11-3021:42.gnome2_privatedrwxr-xr-x?2rootroot4.0K11-3021:43.gstreamer-0.10-rw-r--r--?1rootroot?8111-3021:42.gtkrc-1.2-gnome2-rw-------?1rootroot?56711-3019:15.ICEauthority-rw-r--r--?1rootroot?27K11-3020:58install.log-rw-r--r--?1rootroot3.6K11-3020:57install.log.syslogdrwx------?3rootroot4.0K11-3021:43.Metacitydrwx------?4rootroot4.0K11-3013:52.mozilla-rw-------?1rootroot?4011-3020:20.MysqL_historydrwxr-xr-x?3rootroot4.0K11-3021:42.nautilusdrwxr-xr-x?3rootroot4.0K11-3021:42.redhatdrwx------?4rootroot4.0K11-3013:49.scim-rw-r--r--?1rootroot?1292006-07-13.tcshrc-rw-r--r--?1rootroot4.2K11-3020:27test2.txt-rw-r--r--?1rootroot?16K11-3020:27.test2.txt.swp-rw-r--r--?1rootroot?77911-3016:28test.txtdrwx------?2rootroot4.0K11-3021:43.Trash-rw-------?1rootroot5.4K11-3020:33.viminfo-r--r--r--?1rootroot?59M11-3021:44VMwaretools-9.6.2-1688356.tar.gzdrwxr-xr-x?7rootroot4.0K2014-03-22vmware-tools-distrib-rw-r--r--?1rootroot9.6K11-3020:33.xsession-errors[root@localhost~]#ls-i425993anaconda-ks.cfg??426072test2.txt426023Desktop??????426065test.txt425986install.log????426054VMwaretools-9.6.2-1688356.tar.gz425987install.log.syslog?458753vmware-tools-distrib?命令名稱:?mkdir?所在路徑:/bin/mkdir權(quán)限:所有用戶??123[root@localhost?~]#?mkdir?/tmpina/testmkdir:?無(wú)法創(chuàng)建目錄?“/tmpina/test”:?沒有那個(gè)文件或目錄[root@localhost?~]#?mkdir?-p?/tmpina/test命令名稱:cd?所在路徑:shell?內(nèi)置命令執(zhí)行權(quán)限:所有用戶命令名稱:pwd所在路徑:/bin/pwd執(zhí)行權(quán)限:所有用戶??12345678mkdir:?無(wú)法創(chuàng)建目錄?“/tmpina/test”:?沒有那個(gè)文件或目錄[root@localhost?~]#?mkdir?-p?/tmpina/test[root@localhost?~]#[root@localhost?~]#?cd?/tmpina/test[root@localhost?test]#?pwd/tmpina/test[root@localhost?test]#?cd?..[root@localhost?china]#?命令名稱:rmdir?(刪除空目錄)所在路徑:/bin/rmdir??12345678910111213141516171819202122[root@localhost?china]#?rmdir?/tmpina/test[root@localhost?china]#?cd?/tmp[root@localhost?tmp]#?ll總計(jì)?48drwxr-xr-x?2?root?root?4096?12-01?13:05?chinadrwx------?3?root?root?4096?11-30?19:15?gconfd-rootdrwx------?2?root?root?4096?11-30?19:15?keyring-n4KWUIsrwxr-xr-x?1?root?root????0?11-30?19:15?mapping-rootdrwx------?2?root?root?4096?12-01?12:10?orbit-root-rw-r--r--?1?root?root????5?12-01?13:00?scim-bridge-0.3.0.lockfile-0@localhost:0.0srwxr-xr-x?1?root?root????0?11-30?20:10?scim-bridge-0.3.0.socket-0@localhost:0.0srw-------?1?root?root????0?11-30?19:16?scim-helper-manager-socket-rootsrw-------?1?root?root????0?11-30?19:16?scim-panel-socket:0-rootsrw-------?1?root?root????0?11-30?19:15?scim-socket-frontend-rootdrwx------?2?root?root?4096?11-30?19:15?ssh-mibWGs4219drwx------?2?root?root?4096?11-30?19:15?virtual-root.tyft1adrwxr-xr-x?2?root?root?4096?11-30?21:48?vmware-config0drwxrwxrwt?4?root?root?4096?11-30?18:13?VMwarednDdrwxr-xr-x?2?root?root?4096?11-30?19:13?vmware-rootdrwx------?2?root?root?4096?11-30?19:15?vmware-root-2083992326[root@localhost?tmp]#?rmdir?/tmprmdir:?/tmp:?目錄非空命令名稱:cp?所在路徑:/bin權(quán)限:所有用戶??12[root@localhost?tmp]#?cp?-pr?/tmp/test?/root?#?復(fù)制目錄?需要參數(shù)r?保持原有屬性需要參數(shù)?p[root@localhost?tmp]#命令名稱:mv?剪切和改名?不需要參數(shù)-r?-p?所在路徑:/bin/mv執(zhí)行權(quán)限:所有用戶??12345678910111213[root@localhost?~]#?mv?install.log?install3.log[root@localhost?~]#?ll總計(jì)?59964-rw-------?1?root?root?????1265?11-30?20:59?anaconda-ks.cfgdrwxr-xr-x?3?root?root?????4096?11-30?13:52?Desktop-rw-r--r--?1?root?root????27265?11-30?20:58?install3.log-rw-r--r--?1?root?root?????3671?11-30?20:57?install.log.syslogdrwxr-xr-x?2?root?root?????4096?12-01?13:09?test-rw-r--r--?1?root?root?????4207?11-30?20:27?test2.txt-rw-r--r--?1?root?root??????779?11-30?16:28?test.txt-r--r--r--?1?root?root?61260572?11-30?21:44?VMwaretools-9.6.2-1688356.tar.gzdrwxr-xr-x?7?root?root?????4096?2014-03-22?vmware-tools-distrib[root@localhost?~]#目錄名稱:rm?所在路徑:/bin/rm執(zhí)行權(quán)限:所有用戶??12345678[root@localhosttmp]#mkdirtemp[root@localhosttmp]#cd[root@localhost~]#cp/etc/grub.conf/tmp/temp[root@localhost~]#rm-f/tmp/temp/grub.conf[root@localhost~]#rm/tmp/temprm:無(wú)法刪除目錄“/tmp/temp”:是一個(gè)目錄[root@localhost~]#rm-r?/tmp/temprm:是否刪除目錄“/tmp/temp”?y?以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點(diǎn)擊系統(tǒng)大全官網(wǎng)吧。本文來(lái)自系統(tǒng)大全http:///如需轉(zhuǎn)載請(qǐng)注明!推薦:win7純凈版
linux常用命令之目錄處理
目錄處理命令:ls;所在路徑/bin/ls。執(zhí)行權(quán)限:所有用戶; 。1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;[root@localhost~]#ls。anaconda-ks.cfg ;install.log.syslog ;VMwaretools-9.6.2-1688356.tar.gz。
為你推薦