AutoCAD 3DMAX C語言 Pro/E UG JAVA編程 PHP編程 Maya動畫 Matlab應用 Android
Photoshop Word Excel flash VB編程 VC編程 Coreldraw SolidWorks A Designer Unity3D
 首頁 > Linux

Linux常用命令大全詳解

51自學網 http://www.0532cf.com

Linux下常用指令大全
cat cd
chmod chown
cp cut
名稱:cat
使用權限:所有使用者
使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName
說明:把檔案串連接后傳到基本輸出(螢幕或加 > fileName 到另一個檔案)
參數:
-n
-b
-s
-v




--number 由 1 開始對所有輸出的行數編號
--number-nonblank 和 -n 相似,只不過對于空白行不編號
--squeeze-blank 當遇到有連續兩行以上的空白行,就代換為一行的空白行
--show-nonprinting

范例:
cat -n textfile1 > textfile2 把 textfile1 的檔案內容加上行號后輸入 textfile2 這個檔案里
cat -b textfile1 textfile2 >> textfile3 把 textfile1 和 textfile2 的檔案內容加上行號(空白行不加)之后將內容附加
到 textfile3
名稱 : cd
使用權限 : 所有使用者
使用方式 : cd [dirName]
說明 : 變換工作目錄至 dirName。 其中 dirName 表示法可為絕對路徑或相對路徑。若目錄名稱省略,則變換至
使用者的 home directory (也就是剛 login 時所在的目錄)。
另外,"~" 也表示為 home directory 的意思,"." 則是表示目前所在的目錄,".." 則表示目前目錄位置的上一層目
錄。

范例 : 跳到 /usr/bin/ :
cd /usr/bin
跳到自己的 home directory :
cd ~
跳到目前目錄的上上兩層 :
cd ../..
指令名稱 : chmod
使用權限 : 所有使用者
使用方式 : chmod [-cfvR] [--help] [--version] mode file...
說明 : Linux/Unix 的檔案存取權限分為三級 : 檔案擁有者、群組、其他。利用 chmod 可以藉以控制檔案如何被
他人所存取。
把計 :
mode : 權限設定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中 u 表示該檔案的擁有者,g 表示與該檔案的
擁有者屬于同一個群體(group)者,o 表示其他以外的人,a 表示這三者皆是。
+ 表示增加權限、- 表示取消權限、= 表示唯一設定權限。
r 表示可讀取,w 表示可寫入,x 表示可執行,X 表示只有當該檔案是個子目錄或者該檔案已經被設定過為可執
行。
-c : 若該檔案權限確實已經更改,才顯示其更改動作
-f : 若該檔案權限無法被更改也不要顯示錯誤訊息
-v : 顯示權限變更的詳細資料
-R : 對目前目錄下的所有檔案與子目錄進行相同的權限變更(即以遞回的方式逐個變更)
--help : 顯示輔助說明
--version : 顯示版本

范例 :將檔案 file1.txt 設為所有人皆可讀取 :
chmod ugo+r file1.txt
將檔案 file1.txt 設為所有人皆可讀取 :
chmod a+r file1.txt
將檔案 file1.txt 與 file2.txt 設為該檔案擁有者,與其所屬同一個群體者可寫入,但其他以外的人則不可寫入 :
chmod ug+w,o-w file1.txt file2.txt
將 ex1.py 設定為只有該檔案擁有者可以執行 :
chmod u+x ex1.py
將目前目錄下的所有檔案與子目錄皆設為任何人可讀取 :
chmod -R a+r *
此外 chmod 也可以用數字來表示權限如 chmod 777 file
語法為:chmod abc file
其中 a,b,c 各為一個數字,分別表示 User、Group、及 Other 的權限。
r=4,w=2,x=1
若要 rwx 屬性則 4+2+1=7;
若要 rw-屬性則 4+2=6;
若要 r-x 屬性則 4+1=7。

范例:
chmod a=rwx file

chmod 777 file
效果相同
chmod ug=rwx,o=x file

chmod 771 file
效果相同


 
上一篇:虛擬機下LAMP的安裝過程  下一篇:Linux 指令篇:文件管理--diff
彩客网 www.8494n.com | www.hj200766.com | www.6880mm.com | www.107601.com | www.c9661.com | 3404s.cc | 33382pp.com | www.hk6655.com | www.6364j.com | 6033x.com | www.hg77848.com | www.81508z.com | www.150928.com | 905647.com | www.js276.com | bkb3667.com | www.pj9346.com | www.50080k.com | 7744vvv.com | mgm3242p.com | www.7893w34.com | 67890p.com | www.7435b.com | www.48330k.com | 22662007.com | www.1019996.com | www.0343g.com | 659pj.com | nyty02.com | www.4058ll.com | 3089e.com | www.791xj.com | www.2021m.com | www.66653e.com | 2848.tt | www.0600w.cc | 11dd8332.com | www.cjcp456.com | www.8039g.com | tt67890.com | www.net567.com | www.50788o.com | 48330M.com | www.77114t.com | 3844dd.com | www.8885554.com | www.wcp8008.com | 26789.com | www.765.me | 01234j.com | www.hg5600.com | www.015ac.com | www.27czj.com | dh01885.com | www.4078d.com | www.187380.com | 8290p.com | www.36166b.com | bet28c.com | www.yh234c.com | ff555.com | www.511111.com | www.915776.com | 44hh.bet | www.6678689.com | 00ff8332.com | www.508970.com | 4116y.com | www.sscb77.com | 555v55.com | www.vip65533.com | www.606187.com | 3434ccc.com | www.bet63.com | 3822w.com | www.811129.com | yhhainan.vip | www.239872.com | 2419.com | www.600kk.com | www.030238.com | www.900y.com | www.hx1113.com | www.7435h.com | www.697896.com | 455.com | www.ya160.com | hy5900.com | www.936336.com | www.yh57788.com | www.823023.com | 3644u.com | www.2373o.com | 1679c.com | www.33068.cc | aa8bb8.com | www.680358.com | www.910633.com | 2381006.com | www.899523.com | 4997i.com | www.299764.com | 5309m.com | www.r678.com | 3566vv.com | www.yh269831.com | 86688006.com | www.4058tt.com | 4694n.com | www.8039a.com | www.m30226.com | www.631027.com | www.28758m.com | baidu886.com | www.vvv2205.com | www.335247.com | www.58777b.com | www.189909.com | www.55545d.com | l14666.com | www.4102o.com | 40033iii.com | www.01822.com | 33225156.com | ylzz1110.com | www.6880yy.com | 016458.com | www.966013.com | www.3335156.com | 168cp-h.com | www.k456x.com | mi789.vip | www.12455e.com | www.85770d.com | www.223268.com | www.79665c.com | 9995z.cc | www.9646x.com | 2649ff.com | www.912063.com | www.amdc0005.com | 3405w.com | www.7239v.com | www.3056008.com | 5005w.com | www.77114q.com | www.87680m.com | 55331uu.com | www.99113s.com | 8037p.com | www.022xj.cc | www.5312m.com | 6194js.com | www.61233j.com | www.38200m.com | dfs12345.com | www.12136z.com | www.56012.com | bh889944.com | www.707987.com | www.ra1112.com | 3122027.com | www.57777.am | 2649tt.com | www.178725.com | www.7366005.com | bet3659096.com | t365q.com | www.4331n.com | www.7788076.com | 1634q.com | www.yun588.com | www.7111j.com | 9993657.com | www.71399r.com | www.2200365.com | 3614g.com | www.901576.com | www.8860tt.com | 2509.com | 3616t.com | www.49956l.com | www.vns3678.com | 87965nn.com | www.fan03.com | www.cp505a.com | jj38648.cc | www.60108o.com | www.5528229.com | www.pjhebei.com | 31553a.com | www.594611.com | www.535.cc | xpj588.com | gg2949.com | www.071wy.com | www.85857a.com | 66458r.com | ff76669.com | www.ya318.com | www.9737xx.me | gc.cc | 4066r.com | www.czg2.com | www.99552ss.com | jjfysc.com | 158108.com | www.hf0168.com | www.15k0048.com | www.b8867.com | 2222.VIP | 339649.com | www.77802z.com | www.rg5.com | www.05a88.com | 3890l.com | 1440999.com | www.50054n.com | www.28000r.com | www.283804.com | www.54400m.com | www.2078d.com | 2757k.com | 9876blr.com | www.4923t.com | www.3170006.com | 7742o.com | i4255.com | www.068651.com | www.87668z.com | www.848464.com | pj12234.com | fa8888.com | 18775u.com | www.089a.cc | www.2997778.com | www.hg9166.com | 2306e.com | 6261001.com | 55ff8332.com | www.39957c.com | www.068526.com | www.896hg.com | www.591109.app | yabo1188.com | hhgz1144.com | v93902.com | www.979816.com | www.68993232.com | www.00773u.com | www.hg2958.com | 44ww8331.com | 34x35.com | 14119455.com | 45637w.com | www.cly5.com | www.99788l.com | www.93955e.com | www.14988.com | www.7830h.com | 3121p.com | 4340d.com | 80850ff.com | www.313355.com | www.8998887.com | www.630269.com | www.5377msc.com | www.88jt555.com | www.060xpj.com | 3225a.com | 4488x.com | 7737.com | 80368vv.com | www.183093.com | www.rcw8800.com | www.36788n.com | www.656659.com | www.47506k.com | www.9c567.com | www.242333.com | jjjj004.com | fll8.in | 55555gg.cc | 32355dd.com | 28824n.com | www.313355.com | www.841077.com | www.9889hc.com | www.51515l.com | www.2418v.com | www.xpj8668.com | www.9570111.com | www.9c9cai.com | www.sk22222.com | www.330099y.com | www.976000.com | www.hg08678.com | jnn003.com | 66005156.com | 18438n.com | 3434a.com | feicai0979.com | zhcp33.com | feicai0559.com | 31784444.com | 4556d.com | 61322222.com | 50067c.com | nnn1915.com | c1915.com | n3410.com | www4165.com | 3566ll.com | 86226l.com | 99589dd.net | 4182l.com | 99662007.com | 36404411.com | 9958955.com | 2127a.com | 3207.com | www.1869s.com | 009900c.com | 0080i.com | 6363l.com | www.sjs14.com | 28yuce.wang | www.238267.com | www.xj6666.com | www.77yh765.com | www.3834504.com | www.bmw8555.com | www.7111q.com | www.98333.com | www.y6007.com | www.232t.com | www.d58.com | www.377666l.com | www.js56773.com | www.704904.com | www.801sun.com | www.0967001.com | www.60123s.com | www.lczg8.com | www.66ckb.com | www.634977.com | www.063766.com | ca5055.com | 73567tg7.com | swtyppp.com | v2299.com | www.033033e.com | www.777444k.com | www.40889.com | www.bfcaip.am | www.3421s.com | www.89894p.com | www.zch4.com | 15856o.com | 5589555.com | 58222s.com | 835889.com | bwin38.com | www.a78bet.com | www.74109f.com | www.bet63d.com | www.209752.com | www.85144aa.com | www.ct6678.com | www.745899.com | www.701361.com | 1468.com | 37111p.com | 8883805.com | www.8520k.com | www.xhf5555.com | www.7796877.com | www.pj88.com | www.911096.com | 5804z.com | lh66d.com | 8905r.com | www.4938x.com | www.2945i.com | www.35700c.com | www.67258d.com | www.385626.com | www.33112u.com | 28758s.com | 8189891.com | www.2846k.com | www.8967m.com | www.1466a.com | www.c609.vip | 8030u.com | 11ss8332.com | www.21365gg.com | www.cp9538.com | www.3zq04.com | www.346277.com | 58802.com | 3685.com | www.55268ww.com | www.3333yh.vip | www.33678pp.com | www.8299.cc | 77005002.com | wns3.net | www.140955.com | www.88325k.com | www.88266y.com | www.082712.com | sbd026.net | www.bh11234.com | www.542suncity.com | www.hh03035.com | www.068653.com | ee4119.com | www.7620679.com | www.8881hj.com | www.44ckb.com | 7792h.com | 88851z.com | www.hotelisboa.com | www.140086.com | www.699925.com | 3983004.com | www.682811.com | www.00618i.com | www.20czj.com | g3144.com | 6868ii.cc | www.998855o.com | www.32123b.com | www.550174.com | 2851b.com | 8827ggg.com | www.799666h.com | www.33997z.com | js7704.com | 5443z.com | www.jy959.com | www.9149m.com | 7792d.com | 5001a.com | www.9737dd.com | www.588088a.com | 20773333.com | www.tyc357.com | www.xx888.cc | 87965qq.com | 88770.com | www.u3065.com | www.905881.com | 955.com | www.85770g.com | www.38775hh.com | www.031079.com | 67877o.com | www.feng68.com | www.209752.com | www.634505.com | www.108805.com | 6665009.com | www.k4042.com | www.am7979.com | hgw555.com | www.83008d.com | www.33997p.com | 1434p.com | www.3643e.com | www.pujing65.com | 89892dd.com | www.hg1137.com | www.2418z.com | 0234f.com | www.5552558.com | www.5146z0.com | www.330637.com | js888.us | www.yh83.net | jing6222.com | www.hg6080.com | www.78919a.com | 7811b.com | www.m22365.com | www.68568z.com | 983888d.com | www.448809.com | www.gyfc2.com | 5856a.com | www.yfcp066.com | www.952583.com | 40033jjj.com | www.pj88i.com | targe889q.net | 33382x.com | www.88166t.com | 84497700.com | www.js80288.com | www.sx1877.com | 8449bb.com | www.66.42.42.157 | www.955381.com | vnsr.at | www.69567s.com | 1407r.com | www.84162222.com | www.901527.com | 67877m.com | www.ag3399.com | 1168n.com | www.jyd900.com | www.914983.com | 2997707.com | www.7240k.com | spj04.com | www.j99888.com | www.106526.com | www.7435l.com | www.31047.com | 444x2.com | www.2894.com | 866666f.com | www.034044.com | www.106036.com | www.3333wnsr.com | www.371r.cc | 9101901.com | www.567111.net | 3066ppp.com | www.7415l.com | 3552a.com | www.345445.com | www.187512.com | www.087087.com | www.hx6686.com | 2267i.com | www.919699.com | 4165.com | www.479.com | 5360d.com | www.bet63c.com | 143547.com | www.137603.com | kk3336.com | www.3122v.com | 97799j.com | www.8867e.com | www.52072u.com | www.hg988801.com | www.195880.com | www.87680h.com | www.599380.com | www.621155c.com | www.904829.com | www.yh1088.com | www.6hcczz.com | P35ll.com | www.544aa.cc | 7736f.com | www.fcff0.com | 71337.com | www.c5986.com | www.8819819.com | www.965191.com | www.wns8858.com | www.866509.com | www.bg999333.com | www.631257.com | www.39695e.com | www.332750.com | www.hg988801.com | 2139.com | www.005mgm.com | 2223805.com | www.1064f.com | 5622d.com | www.86339y.com | 4018mm.com | www.84499p.com | 2844j.com | www.hf1680.com | www.vns993.cc | www.327526.com | www.606881.com | 44669193.com | www.1705.com | se679.com | www.7036f.com | 88w55.vip | www.68568g.com | bet3659092.com | www.785779.com | www.vvv2205.com | 23789.com | www.662412.com | 37770795.com | www.bj1111.com | 3009b.com | www.3416r.com | 272nn.net | www.558363.com | www.g88998.com | www.055123.cc | www.174666.com | 854357.com | www.hh4625.com | 3189q.com | www.895010.com | www.mng44.com | 3327.com | www.2208553.com | spj80.net | www.738500.com | www.122hg.com | x48i.com | www.8850w4.com | y7065.com | www.3890f.com | 00773k.com | www.281138.com | 28288v.com | www.wi222.com | www.105886.com | www.6776bb.com | 3522v.vip | v00351.com | www.99094.com | www.698012.com | 4443865.com | www.530995.com | www.8080999c.com | www.63877k.com | 22772007.com | www.910424.com | www.b35ii.com | gzbf007.com | 23800l.com | www.yh7771.com | www.402115.com | 00ii8331.com | alpk22.com | www.65707b.com | www.5566bifa.com | 2019hh.cc | 7744vn77.com | www.hx2088.com | www.4136p.com | www.4759oo.com | 2776q.com | www.567306.com | www.xpj7707.com | www.88837j.com | 3957p.com | 8381w.com | www.66621w.com | www.5559961.com | 1705z.com | 8547kk.com | www.375951.com | www.7249j.com | www.g3838.com | v2554.com | xiha.ph | www.854980.com | www.40288n.com | www.hg988801.com | 53t.com | 7779822.com | www.976821.com | www.30350d.com | www.rrrr0063.com | 1591bbb.com | rrr8827.com | www.745855.com | www.e3846.com | www.480455c.com | feicai0418.com | t365j.com | www.155091.com | www.88266n.com | www.4694r.com | www.z22365.com | 4182.com | pj12567.com | www.455745.com | www.562351.com | www.xpj1938.com | 11955.com | 55811.com | 2618t.com | www.9155h.cc | www.69567m.com | www.hg3115.com | 51200oo.com | 06386789.com | 98kbc.com | www.cp994.com | www.881543.com | www.2y933.com | www.hg9946.com | chengbet.cc | zb6288.com | www.216299.com | www.12455f.com | www.pj88n.com | www.hg0318.com | 3121ff.com | pp3336.com | 883399z.com | www.196052.com | www.1035v.com | www.773bbb.com | www.120550.com | 6175n.com | 88021u.com | 18775l.com | 22bb8332.com | www.725102.com | www.86267d.com | www.z3410.com | www.5956fff.com | www.88837z.com | 20188n.com | d62365.com | sbdjgj.vip | 58222bb.com | www.77801v.com | www.982082.com | www.83033j.com | www.44118y.com | www.p456x.com | www.xpj5003.com | www.lb0011.com | 30007n.com | 3614q.com | q83377.com | www.235361.com | www.c5127.com | www.96386q.com | www.wns123h.com | www.38345m.com | www.6008876.com | www.00829w.com | 21866r.com | 747720.com | 6487lll.com | 838388i.com | 3078v.com | man476.com | www.282990.com | www.878749.com | www.3126r.com | www.813016.com | www.pj55716.com | www.38138p.com | www.cp0018.com | www.477suncity.com | www.2225156.com | www.hg0096.com | 3936o.com | 7792b.com | 4023i.com | b99vip.com | mgm11999.com | y61.com | 0234ww.com | 2618b.com | feicai0311.com | 3yuhe.com | 00774xx.com | www.77801v.com | www.196880.com | www.451117.com | www.702309.com | www.810526.com | www.c5127.com | www.fcyl5.com | www.99fzc.com | www.6832t.com | www.33997x.com | www.50054q.com | www.50788m.com | www.50080q.com | www.50080s.com | www.29178f.com | www.50052n.com | www.50064g.com | www.50024c.com | www.57022.cc | www.9478a.com | www.3478p.cc | www.1035aa.com | www.mcw4.com | www.ck9494.com | www.961339.com | www.914903.com | www.646452.com | www.550174.com | www.277474.com | www.142525.cc | www.33112o.com | 09244777.com | 55331yy.com | ule608.com | 33432c.com | 77606l.com | 8449spj.com | 9679y.com | j2368.com | 35442777.com | 0747g.com | www.90866.cc | www.3459m.com | www.pj3998.com | www.698js.com | www.psb22.com | www.58665r.com | www.vns6602.com | www.30350f.com | www.99094g.com | www.zmfqp.net | www.00711.cc | www.927133.com | www.424770.com | 4195kk.com | 3559cccc.com | t365j.com | dh4515.com | 2127w.com | 4195p.com | www.i22365.com | 2306c.com | 983888i.com | 32126l.net | jx2300.com | 56787hh.com | 2246sun.com | www.7830g.com | www.t2005.net | www.50999s.com | www.634505.com | www.3978a.com | www.yi660.com | www.393411.com | lswjs568.com | 168cp-i.com | 4255o.com | xsj027.cc | www.benz4444s.com | www.hg2516.com | www.50999t.com | www.350c5.com | www.00840n.com | www.621441.com | 2206.com | 500888.com | jk080.com | www.long8603.com | www.g32365.com | www.caipiao88b.com | www.803sun.com | www.5091k.com | www.330732.com | 18438YL.com | 3467t.am | 2649pp.com | www.13658017870.com | www.35252q.com | www.r999997.com | www.02500w.com | www.259989.com | 6868qq.cc | 2324kkk.com | www.ds22222.com | www.331666.com | www.bwinyz18.com | www.pj56d.com | www.596081.com | 8159ooo.cc | 01234ss.com | www.jsh110.com | www.183008.com | www.hg7760.com | www.632bbb.com | www.igcp0.com | 16690022.com | 51133ttt.com | www.56733y.com | www.827hg.com | www.8899nsb.com | www.396.cc | 22296qq.com | xxx67890.com | www.hg5455.com | www.138908.com | www.2418o.com | www.591017.com | 19880.com | ab38555.com | www.hq999.com | www.4996hz.com | www.22743.com | bj0222.com | 7893w11.com | www.a1a444.cc | www.938m.cc | www.3978u.com | www.196880.com | zc82509.com | www.0686111.com | www.3846u.com | www.910021.com | www.127918.com | 2257013.com | www.ylg268.com | www.563736.com | www.51515h.com | n444000.com | 36405500.com | www.3643o.com | www.3066oo.com | www.cpkk6.com | 4997g.com | 26668v.com | www.hg2258.com | www.126629.com | www.466518.com | 228888y.com | www.ylg0099.com | www.feng68.com | www.7782l.com | 8538p.com | 3242.com | www.45066.com | www.7714a.com | c75ioyt.com | xpj677f.com | www.js4333.com | www.js89n.vip | www.530477.com | 2247jj.com | www.yddc06.com | www.bwinyz33.com | www.982090.com | 30688.com | www.ao599.com | www.cn365y.com | www.901021.com | se679.com | www.0636h.com | www.45598q.com | www.713799.com | 80850h.com | www.76060f.com | www.62979c.com | www.330637.com | 3566xx.com | www.4739999.com | www.16065q.com | 23800u.com | 28288v.com | www.g9478.com | www.3478.cc | jbb49.cc | www.v3309.com | www.3846c.com | www.142525.com | rf033.com | www.0748.cc | www.371m.cc | tzvip2020.com | www.4107u.com | www.4809a.com | 4066yy.com | 2595q.com | www.50999s.com | www.770001.com | 4189.com | www.350698.com | www.32123n.com | 32355gg.com | www.pjbet666.com | www.68365f.com | 0015tt.com | 123456dd.cc | www.0012737.com | www.401746.com | v99345.am | www.hnwmrx.com | www.866505.com | 5856oo.com | www.1880204.com | www.csgc4.com | 9679b.com | www.745968.com | www.022xz.cc | 7893w34.com | www.xh538.com | www.5854d.cc | 52520524.com | www.532156.com | www.5086d.com | tyc7255.com | www.hg7602.com | www.158cp.com | l99474.com | www.443447.com | www.911888aa.com | 185301.com | www.4699g.com | www.609813.com | 7570800.com | www.7415mm.com | www.142525.com | n2306.com | www.1113yl.com | 2934g.com | www.749558.com | www.222067.com | 76886.com | www.377606.com | www.866505.com | 6118x.com | www.b35gg.com | 3301844.com | www.88hggj.com | www.hg513.com | 911boan.com | www.hg9509.com | www.838669.com | 711066.com | www.66mgm777.com | cr789.co | www.25673e.com | www.77802h.com | 44303.com | www.1299js.com | www.330627.com | tyc1513.com | www.0089.cc | 1005rv.com | www.84230.com | www.606634.com | 3078h.com | www.9464gg.com | 86811w.com | www.163888ll.com | www.916025.com | 83138u.com | www.gg4625.com | 55991277.com | www.sg8886.com | www.225863.com | www.86611d.com | www.99638b.com | 55555ylg.com | www.89599o.com | 91709.com | www.pj8188.com | www.862870.com | 3080.com | www.0601e.com | hg96.com | www.1118084.com | feicai0793.com | www.97321f.com | www.550424.com | www.hg9953.com | www.21202c.com | 00446132.com | www.68365y.com | 80567k.com | www.1111yh.vip | 78114444.com | www.88399a.com | www.52072q.com | www.09569a.com | www.609387.com |