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.jing7778.com | 3807mm.com | www.006074.com | www.52072d.com | 270666.com | www.4107o.com | www.aobo193.com | vip332.com | www.306444b.com | www.ch8567.com | 15f6.net | www.3691o.com | 3258u.com | www.518008.com | www.865807.com | uc02.cc | www.jsggb02.com | j15jj.com | www.h8822.com | www.286967.com | 4136n.com | www.28229.com | 8538j.com | www.c44kk.com | 1407q.com | www.2899msc.com | www.cbw222.com | 3726m.com | www.776887.com | 3616y.com | www.33302a6.com | www.978137.com | 500000476.com | www.47707.co | 5651i.com | www.kxm06.com | www.202883.com | www.38200x.com | www.ya099.com | 8522dddd.com | www.747365a.com | 2172223.com | www.xy048.com | 943.com | www.828685.com | www.636121.com | zzylc7.com | www.068336.com | 1813ee.com | www.9737ll.me | yataibet1.com | www.853721.com | 2096v.com | www.362855.com | www.606634.com | www.9544j.com | www.hr7888.com | pj666677.com | www.gai00.com | 2767y.com | www.15365a.com | 8381m.com | www.179101.com | 4052p.com | www.4923w.com | 3435s.com | www.3208.com | i7454.com | www.d17848.com | 77992007.com | www.3978d.com | 00446132.com | www.1035p.com | 17159455.com | www.788464.com | www.m.kb88.com | www.819920.com | www.63877i.com | www.582909.com | www.q27229.com | www.155782.com | www.8888888b.com | 9420w.com | www.590561.com | 4165e.com | www.hg0335.com | qq365z.com | www.60108w.com | 54140055.com | www.444956.com | www.js55567.com | ylzz1113.com | www.5360uu.com | 997799.net | www.8855gvb.com | 97000.cc | www.ya2019m.com | c89ew41.com | www.3478i.cc | www.333133g.com | h61653.com | www.ty23023.com | hg999333h.com | www.06387733.com | 365w.net | www.975126.com | hg22814.com | www.949430.com | www.81228m.com | 5509o.com | www.163a44.com | 9090gbh.com | www.siji.ceo | 2864f.com | www.725106.com | www.yh00bet.com | 33567z.com | www.j7764.com | yf2333.com | www.c144.vip | www.10870.com | sbc777.com | www.7920w.com | 80060303.com | www.589344.com | www.gp4672.com | zhcp41.com | www.19222.com | www.1869l.com | 2419.com | www.29098.com | 082371.com | www.544086.com | www.qq599.com | 500089v.com | www.sx1833.com | www.7435o.com | dfs12345.com | www.z94600.com | 800034338.com | 1259d.com | www.8473j.com | 702265.com | www.658770.com | www.1111284.com | 3846w.com | www.c299.com | www.04tyc.com | 3775o.com | www.tang000.com | www.3814.hk | 0471sands.com | www.807683.com | www.990888a.com | 2997771.com | www.333hy.cc | www.77731g.com | 22aa8332.com | www.366098.com | www.u32939.com | 0805u.com | 22234066.com | www.495.ee | www.22xpjdc.com | 3678k.com | www.91233y.com | www.hg5336.com | 69096c.com | www.901013.com | www.hr888.com | 009900i.com | 866666r.com | www.3398755.com | www.85770i.com | 2685js.com | www.3479b.com | www.125767.com | 8159e.cc | www.178153.com | www.8080999i.com | www.4759pp.com | 22115156.com | www.2109k.com | www.ybw18.com | hkmh11.com | 7737.com | www.61233g.com | www.21884.com | 0919666.com | 48586.com | www.954321n.com | www.49981k.com | f1915f.com | www.093827.com | www.5446t.com | www.11227136.com | tz977.com | www.150196.com | www.8722.am | www.23373333.com | 915905963.com | 2334vip1.com | www.6832u.com | www.899741.com | www.1869g.com | 55.net | www.453552.com | www.32031u.com | www.330099m.com | 9068yy.com | 433yh.com | www.50054y.com | www.d948d.com | 15a1.net | 53206666.com | 9694i.com | www.77114w.com | www.799666v.com | js75f.com | 0207210.com | www.90848a.com | www.83033p.com | www.79500i.com | www.38200i.com | 3467f.com | 69449955.com | www.zfcp4.com | www.t1432.com | www.ccc665.com | 1077ddd.com | 19991e.com | www.303482.com | www.96386x.com | www.50999l.com | www.yh6118.com | 4182i.com | 44gg8332.com | www.378015.com | www.939781.com | www.408477.com | www.9068ee.com | v1931.com | 5804v.com | www.223559.com | www.50064f.com | www.6880hh.com | www.451199.com | 66445156.com | 3846ww.com | yun2888.com | www.429689.com | www.66332c.com | www.2544g7.com | www.03719a.com | www.bg999111.com | 009900h.com | 0343k.com | 56988p.com | www.529355.com | www.8039x.com | www.833976.com | www.58665c.com | www.9679p.com | qycps2.com | 5666711.com | 30688c.com | ylg5888.com | www.690104.com | www.50064t.com | www.70669b.com | www.6776ff.com | www.433444a.com | www.365815k.com | 3522gg.cc | 2096j.com | 0289a.com | bg7666.com | 4195dd.com | www.620958.com | www.8039z.com | www.36581111.com | www.556350.com | www.04567g.com | www.1389oo.com | www.531msc.com | www.77cmsc.net | www.wugou135.com | 500000349.com | 28288u.com | 4018qq.com | 256777c.com | 075tt.com | 2613w.com | b9973.com | www.252359.com | www.789733.com | www.009hy.cc | www.9dwj.com | www.chi32.com | www.3552g.com | www.52511.com | www.6126.com | www.xj1992.com | www.000128522.com | www.506902.com | www.pjgw22.com | www.1429g5.com | www.55545f.com | www.20199hh.com | www.222bet365.cc | www.kj306.com | www.003113.com | www.hv866.com | www.www899000.com | www.hg2258.com | www.xpj5299.com | www.pj5875.com | www.777948.com | www.144676.com | www.xy466.com | www.hg984.com | www.959234.com | www.zrdc2277.com | www.328466.com | www.dw982.com | www.063259.com | www.335217.com | www.55545f.com | www.0011xpj.net | www.bwinyz01.com | www.01991.com | www.1112yl.com | www.48330n.com | www.35898c.com | www.9646y.com | www.49956s.com | www.371r.cc | www.932779.com | www.715121.com | www.307797.com | hd61788.com | man984.com | 61828.info | 30175555.com | vns80579.com | 500000701.com | www.jin444.com | www.hg021.com | www.a3a777.cc | www.2945a.com | www.55060b.com | www.86339c.com | www.rfdc04.com | www.371e.cc | www.656270.com | www.018581.com | 08159l.com | 3215888.com | 88yzc.com | bet3659092.com | www.hg7158.com | www.xpj8548.com | www.7779833.com | www.33678ii.com | www.0003sc.com | www.66ffm.com | www.368477.com | 5002com | 444000kk.com | 998u.cc | www.ylg268.com | www.pj3098.com | www.82gew.com | www.w3410.com | www.66653g.com | www.774311.com | 82365365.com | 0524.com | 8901k.com | www.777444b.com | www.383806.com | www.69567i.com | www.33588p.com | www.401279.com | 7894n.com | 4152q.com | www.666k8.com | www.amh00.com | www.i32031.com | www.35155b.com | www.196507.com | 97000.org | hg3699.com | www.44455508.com | www.610160.COM | www.28891d.com | www.772701.com | 6220uu.com | p2146.com | www.pj6653.com | www.5504o.com | www.js00858.com | www.x456x.com | 4433.com | www.0057b.com | www.26163y.com | 76543e.com | www.js88058.com | www.910021.com | 563930.com | www.yh6679.com | www.4988c.cc | 61320055.com | www.7830i.com | www.180662.com | 33xpj377.com | www.58777q.com | www.80075q.com | 91019h.net | www.pj7058.com | www.32123p.com | 5443w.com | www.477518.com | www.igcp7.com | 01234ttt.com | www.55526e.com | www.501346.com | 2844.com | www.5719a.com | 4812333.com | www.585299.com | www.22365.Com | 53262dd.com | www.239888.com | www.870300.com | wb499.com | www.4996yc.com | ctx668.com | www.9374l.com | www.80075p.com | 99888l.me | www.beb111.org | www.330652.com | 5350w.com | www.68993268.com | 8381o.com | www.134222.com | www.589021.com | feicai0457.com | www.091628.com | 7742ww.com | www.3122d.com | www.62118e.com | www.pj0004.com | www.66653p.com | 51133x.com | www.839797.com | 3983012.com | www.7111w.com | www.915231.com | 500000517.com | www.y63568.com | 94111.com | www.bidifushi.com | www.78949o.com | www.xpj8858.com | www.918io.com | 26668r.com | www.db373.com | 5478r.com | www.5516008.com | feicai0537.com | www.0040yyy.com | www.701489.com | 14340008.com | www.21202n.com | 33382ss.com | www.3691x.com | 8040hhh.com | www.680588.com | hd11939.com | www.k3374.com | 22bb8332.com | www.hga8080.com | www.197880.com | www.67797v.com | www.738126.com | www.f118cp.com | www.ya958.com | 3434a.com | www.04500w.com | ks2223.com | www.77016.net | mm99900.net | www.9646u.com | w99345.am | www.2221107.com | 33382ii.com | www.9646l.com | 11oo8331.com | www.0270e.com | 660fh.com | www.4323x.com | pjjiangsu.com | www.88266w.com | 8557j.com | www.39500m.com | 88002848.com | www.371l.cc | lpj88.com | www.974306.com | www.pj5901.com | www.785779.com | www.1000suncity.com | www.452812.com | www.y1818.cc | 0015yy.com | www.01416.com | i3405.com | www.c7205.com | 3846u.com | www.91779u.com | 3350.com | www.js69.com | e35151.com | www.gyfc3.com | www.vns71999.com | www.186769.com | www.hg2216.com | 3267.com | www.4996sp.com | 4036ee.com | www.2221107.com | zhcp91.com | www.938537.com | www.9679900.com | 1333m.com | www.56655m.com | 13222x.com | www.l94600.com | 68228o.com | www.9dwj.com | www.b27229.com | 0015yy.com | www.79500r.com | 99449737.com | www.ampj3439.com | 1669jt.com | www.349077.com | www.hg8236.com | 563447.com | www.575477.com | 26444m.com | www.756764.com | www.am5599.com | pjbuyuw.com | www.1764a.com | 921730.com | www.533551.com | www.383188.com | 61327744.com | www.065925.com | 2246sun.com | www.302591.com | www.2233suncity.com | 3473e.com | www.77802p.com | www.28758u.com | 0332.com | www.xj6008.com | 22ii8332.com | www.444069.com | www.hg415.com | 4036ww.com | www.5091v.com | www.yh8352.com | 3990077.com | www.6888773.com | 15f4.net | 3245777.com | www.xj7001.com | 2554com.com | www.le33.cc | www.4972u.com | 7720744.com | www.682880.com | www.233113.com | 222.am | www.hw1100.com | www.266555c.com | vip145b.com | www.8039o.com | www.107898.com | 28288f.com | www.29178c.com | www.10050751.com | 022531.com | www.8667u.com | www.53516u.com | 111122ee.com | www.5441k.com | www.6uu6uu.com | 05071100.com | www.c137.vip | www.lxyl360.com | 22883q.com | www.550424.com | www.55545q.com | 7439.com | 98955d.com | www.58vs88.com | www.3089c.com | 001122331.com | www.bet365cn.net | www.hg1996.cc | 9737008.com | www.979651.com | www.938b.cc | 36989a.com | www.52072e.com | www.66pjjt.com | www.ag88100.com | 228888e.com | www.8039p.com | www.14988.com | 089776.com | www.29178e.com | www.f94600.com | www.7830u.com | 8015x.com | www.708382.com | www.9737bb.me | 14340008.com | 59889p.com | www.266ak.com | www.55526j.com | 28483000.com | 83golf.com | www.26299x.com | www.555305.com | feicai0579.com | d55789.com | www.36787j.com | www.ra678.com | 500000991.com | bs223344.com | www.9478k.com | www.3846n.com | 588ooo.cc | 2566h9.com | www.gczj6.com | www.xpj2050.com | www.1882389.com | ak999.net | www.602450.com | www.wns123b.com | www.77537n.com | 32666e.com | pcdd.net | www.81233g.com | www.hg7760.com | 86888js.com | 9955vn77.com | www.549577.com | www.7920h.com | www.52667mm.com | 7276776.com | k1458.com | www.c1393.com | www.58404a.com | www.pj7787.com | 44268888.com | 2418h.com | www.096wy.com | www.64566e.com | www.558077.com | 686.org | 11989f.com | www.hr3888.com | www.a32031.com | www.yxinct.com | 8030q.com | 33331.cm | www.335243.com | www.4923d.com | www.90msxfptd.com | www.6805pj.com | 8538u.com | 6423q.com | www.c129.vip | www.o94600.com | www.312288a.com | www.66664400.com | ss67890.com | 1429t.com | www.918795.com | www.99094u.com | www.869678.com | www.456589.com | 686.org | 54443b.com | www.176012.com | www.49956p.com | www.2021a.com | www.64717.com | www.143800.com | 3457.com | 6200js.com | www.97655i.com | www.1368w.cc | www.55676u.com | www.50000992.com | www.amjs661.com | 3169l.com | 3513001.com | 1669n.com | www.196062.com | www.5091j.com | www.3678.com | www.373351.com | www.hg57666.com | 1259e.com | bs112233.com | 2237.com | 6245g.com | www.271902.com | www.5091y.com | www.999999qipai.com | www.yfcp315.com | www.s874.vip | www.xhtd3344.com | js8800.net | 7599nn.com | 31325h.com | 88771382.com | www.464499.com | www.0014s.com | www.1128229.com | www.4996nm.com | www.rb306.com | www.tqdc555.com | www.0686111.com | ggg5701.com | 4167z.com | 35442222.com | 1775xx.com | 6339.com | www.364747.com | www.hczx6.com | www.77210d.com | www.087c.com | www.56730.cc | www.bd2019f.com | www.001481.com | www.0151u.com | www.vns995.cc | 8742aa.com | ee4675.com | 01234qq.com | 9659f.com | 22448332.com | y6840.com | 5856rrr.com | 3522yy.com | www.235387.com | www.638173.com | www.hy6262.com | www.27775.cc | www.80065q.com | www.ra8ra8.com | www.0077psb.com | www.256531.com | www.pj888i.com | www.77731f.com | www.hg7650.com | www.118668.com | www.fh9000.com | www.pj4180.com | www.7xh.co | www.6491r.com | www.xsj977.com | 4546vip4.com | 3544i.com | bet28x.com | 2613o.com | 500000712.com | 2805r.com | 2776s.com | 35252x.com | 123456kk.cc | 4443955.com | 2349012.com | gggg19927.com | 159666q.com | vip7570.com | 707144.com | 3009y.com | feicai0358.com | mry345.com | 2851y.com | 80878q.com | 496677.com | www.358msc.com | www.89422.com | www.38200t.com | www.gt885.com | www.hg313.com | www.9996ff.com | www.32126y.net | www.blm599.com | www.tm2818.com | www.659200.com | www.35252s.com | www.55545r.com | www.b35kk.com | www.601710.com | www.v6996.com | www.f98478.com | www.2222bj.com | www.50051w.com | www.cbw222.com | www.848566.com | www.411515.com | www.29277u.com | 4812333.com | 8003822.com | 553955.com | 5856e.com | evere168.cn | 0747g.com | www.9374x.com | www.66930011.com | www.734555.com | www.3g88.com | www.91779d.com | www.826017.com | www.73166d.com | www.ya055.com | www.610026.com | www.81678o.com | 1086.com | 6002e.com | vvv40033.com | 2247b.com | www.ylg1234.com | www.032007.com | www.490000.com | www.cn365h.com | www.97828l.vip | www.50051r.com | www.828165.com | 32424f.com | gm13800.com | 779644.com | dz576.com | www.a2a000.cc | www.5303v.com | www.a81f.cc | www.40288h.com | www.7239n.com | www.927191.com | www.80065u.com | 8036tt.com | 4255ii.com | 0033r.cc | www.36677b.com | www.dafa88181.net | www.313965.com | www.yh76b.com | www.916370.com | 1213iii.com | spj08.com | k62365.com | www.6491k.com | www.080678.com | www.1851132.com | www.9646v.com | www.783386.com | 861051.com | 3304y.com | 30007n.com | www.0860g.com | www.rg666.com | www.68993227.com | www.978137.com | 3189ff.com | q99.com | y00351.com | www.66146.net | www.e80288.com | www.39500q.com | www.183572.com | 5855uu.com | VIPVIP.cc | www.2078j.com | www.8473g.com | www.81233l.com | www.330627.com | 80892w.com | pt777.ph | www.xpj88007.com | www.4446eee.com | www.81520f.com | www.244689.com | 611666.com | hg10t.com | www.223456s.com | www.bscpjj.com | www.2222bj.com | www.338082.com | 97618w.com | 667766k.com | www.413999.com | www.326213.com | www.782500.com | 2096.com | 3178kk.com | www.e2229e.com | www.33678vv.com | www.c6881.com | 01234mmm.com | wns28c.com | www.3339193.com | www.91779e.com | www.fcyl3.com | 5856rrr.com | 5hga.com | www.223228.com | www.285628.com | www.699925.com | 4037.com | j1582.com | www.5008637.com | www.66376b.com | 0241p.com | 61321122.com | www.142357.com | www.3008553.com | www.619477.com | 341a.com | www.y5578.com | www.28000a.com | www.2373q.com | 101.net | 3163.com | www.849suncity.com | www.77114k.com | 228888x.com | 67877h.com | www.578811.com | www.c773776.com | hga030.com | qq365.com | www.94876.com | www.b773776.com | 0166b.com | 66991468.com | www.76775a.com | www.60123l.com | 0015dd.com | 5443c.com | www.c5c33.com | www.02czj.com | js14u.com | www.hg0002.com | www.93955e.com | www.652592.com | 80878h.com | www.330099j.com | www.7681002.com | www.50064i.com | 8547y.com | www.67885.com | www.50054h.com | 1691991.com | www.bmw555888.com | www.5181889.com | www.399130.com | 67890kkk.com | www.332010.com | www.66509.cc | hr1811.com | www.456589.com | www.xpj33987.com | 44pp8332.com | 365399.bet | www.26123aa.com | www.550415.com | 51133ccc.com | www.js276.com | www.3416f.com | yhw0.cc | www.4261122.com | www.2118037.com | 32126n.net | www.617703.com | www.x888678.com | 55818r.com | www.xpj8888.cc | www.lge.huya | 272tt.net | www.kima88.com | www.12136p.com | 333.gg | www.81866t.com | www.xpj915.com | 6245.com | www.1116xj.com | www.4809m.com | bet28.com | www.518hwx.com | www.735518.com | 55555004.com | www.87879193.com | www.js1992.com | 80878e.com | www.330099w.com | www.50026d.com | 59889k.com | www.548sunbet.com | www.zfcp3.com | r1915r.com | www.20199qq.com | www.382688.com | 3136oo.com | www.2021v.com | 2478.com | www.63877w.com | www.yun877.com | 3640n.com | www.qq349.com | www.927816.com | 3344555.vip | www.a30666.vip | 2418.com | www.288kb.net | www.29496c.com | 55331v.com | www.kj207.com | www.506791.com | 2306u.com | www.326213.com | xinpj1600.com | www.b55551.com | www.fcff8.com | 50067x.com | www.33112211.com | 8940.com | www.25025.cc | www.dan03.com | 3522cc.com | www.q063801.com | 01234iii.com | www.xpj9598.com | www.996099.com | 33772007.com | www.ba305.com | 34545.com | www.755789.com | www.546411.com | vn13588.me | www.8d828.com | 2324ddd.com | www.7415o.com | 88894k.com | www.pj9654.com | www.864155.com | 3122rr.com | www.4331y.com | 89777g.com | www.7415v.com | 66335003.com | www.dbet9.com | www.571833.com | 58802w.com | www.33997l.com | 55992007.com | www.559999.vip | 0073.com | www.55060v.com |