{"id":1201,"date":"2017-08-17T10:21:44","date_gmt":"2017-08-17T02:21:44","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1201"},"modified":"2017-08-17T10:21:44","modified_gmt":"2017-08-17T02:21:44","slug":"linux%e4%b8%ad%e5%b8%b8%e7%94%a8%e6%93%8d%e4%bd%9c%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1201.html","title":{"rendered":"Linux\u4e2d\u5e38\u7528\u64cd\u4f5c\u547d\u4ee4"},"content":{"rendered":"

Linux\u7b80\u4ecb\u53ca<\/strong>Ubuntu\u5b89\u88c5<\/strong><\/p>\n

Linux\uff0c\u514d\u8d39\u5f00\u6e90\uff0c\u591a\u7528\u6237\u591a\u4efb\u52a1\u7cfb\u7edf\u3002\u57fa\u4e8eLinux\u6709\u591a\u4e2a\u7248\u672c\u7684\u884d\u751f\u3002RedHat\u3001Ubuntu\u3001Debian<\/p>\n

 <\/p>\n

\u5e38\u7528\u6307\u4ee4<\/strong><\/p>\n

ls\u3000\u3000 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u6587\u4ef6\u6216\u76ee\u5f55<\/p>\n

-l \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5217\u51fa\u6587\u4ef6\u8be6\u7ec6\u4fe1\u606fl(list)<\/p>\n

-a \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5217\u51fa\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u53ca\u76ee\u5f55\uff0c\u5305\u62ec\u9690\u85cf\u7684a(all)<\/p>\n

mkdir \u00a0 \u00a0 \u00a0 \u00a0 \u521b\u5efa\u76ee\u5f55<\/p>\n

-p \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u521b\u5efa\u76ee\u5f55\uff0c\u82e5\u65e0\u7236\u76ee\u5f55\uff0c\u5219\u521b\u5efap(parent)<\/p>\n

cd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5207\u6362\u76ee\u5f55<\/p>\n

touch \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u521b\u5efa\u7a7a\u6587\u4ef6<\/p>\n

echo \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u521b\u5efa\u5e26\u6709\u5185\u5bb9\u7684\u6587\u4ef6\u3002<\/p>\n

cat \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u67e5\u770b\u6587\u4ef6\u5185\u5bb9<\/p>\n

cp \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u62f7\u8d1d<\/p>\n

mv \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u79fb\u52a8\u6216\u91cd\u547d\u540d<\/p>\n

rm \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5220\u9664\u6587\u4ef6<\/p>\n

-r \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u9012\u5f52\u5220\u9664\uff0c\u53ef\u5220\u9664\u5b50\u76ee\u5f55\u53ca\u6587\u4ef6<\/p>\n

-f \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5f3a\u5236\u5220\u9664<\/p>\n

find \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5728\u6587\u4ef6\u7cfb\u7edf\u4e2d\u641c\u7d22\u67d0\u6587\u4ef6<\/p>\n

wc \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u7edf\u8ba1\u6587\u672c\u4e2d\u884c\u6570\u3001\u5b57\u6570\u3001\u5b57\u7b26\u6570<\/p>\n

grep \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5728\u6587\u672c\u6587\u4ef6\u4e2d\u67e5\u627e\u67d0\u4e2a\u5b57\u7b26\u4e32<\/p>\n

rmdir \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5220\u9664\u7a7a\u76ee\u5f55<\/p>\n

tree \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u6811\u5f62\u7ed3\u6784\u663e\u793a\u76ee\u5f55\uff0c\u9700\u8981\u5b89\u88c5tree\u5305<\/p>\n

pwd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u5f53\u524d\u76ee\u5f55<\/p>\n

ln \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u521b\u5efa\u94fe\u63a5\u6587\u4ef6<\/p>\n

more\u3001less \u00a0\u5206\u9875\u663e\u793a\u6587\u672c\u6587\u4ef6\u5185\u5bb9<\/p>\n

head\u3001tail \u00a0 \u00a0\u663e\u793a\u6587\u4ef6\u5934\u3001\u5c3e\u5185\u5bb9<\/p>\n

ctrl+alt+F1 \u00a0\u547d\u4ee4\u884c\u5168\u5c4f\u6a21\u5f0f<\/p>\n

 <\/p>\n

<\/a>\u7cfb\u7edf\u7ba1\u7406\u547d\u4ee4<\/strong><\/p>\n

stat \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u6307\u5b9a\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u6bd4ls\u66f4\u8be6\u7ec6<\/p>\n

who \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u663e\u793a\u5728\u7ebf\u767b\u9646\u7528\u6237<\/p>\n

whoami \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u5f53\u524d\u64cd\u4f5c\u7528\u6237<\/p>\n

hostname \u00a0 \u00a0 \u00a0\u663e\u793a\u4e3b\u673a\u540d<\/p>\n

uname \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u663e\u793a\u7cfb\u7edf\u4fe1\u606f<\/p>\n

top \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u52a8\u6001\u663e\u793a\u5f53\u524d\u8017\u8d39\u8d44\u6e90\u6700\u591a\u8fdb\u7a0b\u4fe1\u606f<\/p>\n

ps \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u77ac\u95f4\u8fdb\u7a0b\u72b6\u6001 ps -aux<\/p>\n

du \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u67e5\u770b\u76ee\u5f55\u5927\u5c0f du -h \/home\u5e26\u6709\u5355\u4f4d\u663e\u793a\u76ee\u5f55\u4fe1\u606f<\/p>\n

df \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u67e5\u770b\u78c1\u76d8\u5927\u5c0f df -h \u5e26\u6709\u5355\u4f4d\u663e\u793a\u78c1\u76d8\u4fe1\u606f<\/p>\n

ifconfig \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u67e5\u770b\u7f51\u7edc\u60c5\u51b5<\/p>\n

ping \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a<\/p>\n

netstat \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u7f51\u7edc\u72b6\u6001\u4fe1\u606f<\/p>\n

man \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u547d\u4ee4\u4e0d\u4f1a\u7528\u4e86\uff0c\u627e\u7537\u4eba\u00a0 \u5982\uff1aman ls<\/p>\n

clear \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6e05\u5c4f<\/p>\n

alias \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5bf9\u547d\u4ee4\u91cd\u547d\u540d \u5982\uff1aalias showmeit=\"ps -aux\" \uff0c\u53e6\u5916\u89e3\u9664\u4f7f\u7528unaliax showmeit<\/p>\n

kill \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u6740\u6b7b\u8fdb\u7a0b\uff0c\u53ef\u4ee5\u5148\u7528ps \u6216 top\u547d\u4ee4\u67e5\u770b\u8fdb\u7a0b\u7684id\uff0c\u7136\u540e\u518d\u7528kill\u547d\u4ee4\u6740\u6b7b\u8fdb\u7a0b\u3002<\/p>\n

 <\/p>\n

<\/a>\u6253\u5305\u538b\u7f29\u76f8\u5173\u547d\u4ee4<\/strong><\/p>\n

gzip\uff1a<\/p>\n

bzip2\uff1a<\/p>\n

tar: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6253\u5305\u538b\u7f29<\/p>\n

-c \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5f52\u6863\u6587\u4ef6<\/p>\n

-x \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u538b\u7f29\u6587\u4ef6<\/p>\n

-z \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0gzip\u538b\u7f29\u6587\u4ef6<\/p>\n

-j \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0bzip2\u538b\u7f29\u6587\u4ef6<\/p>\n

-v \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u663e\u793a\u538b\u7f29\u6216\u89e3\u538b\u7f29\u8fc7\u7a0b v(view)<\/p>\n

-f \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u4f7f\u7528\u6863\u540d<\/p>\n

\u4f8b\uff1a<\/p>\n

tar -cvf \/home\/abc.tar \/home\/abc \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u53ea\u6253\u5305\uff0c\u4e0d\u538b\u7f29<\/p>\n

tar -zcvf \/home\/abc.tar.gz \/home\/abc \u00a0 \u00a0 \u00a0 \u00a0\u6253\u5305\uff0c\u5e76\u7528gzip\u538b\u7f29<\/p>\n

tar -jcvf \/home\/abc.tar.bz2 \/home\/abc \u00a0 \u00a0 \u00a0\u6253\u5305\uff0c\u5e76\u7528bzip2\u538b\u7f29<\/p>\n

\u5f53\u7136\uff0c\u5982\u679c\u60f3\u89e3\u538b\u7f29\uff0c\u5c31\u76f4\u63a5\u66ff\u6362\u4e0a\u9762\u7684\u547d\u4ee4\u00a0 tar -cvf\u00a0 \/ tar -zcvf\u00a0 \/ tar -jcvf \u4e2d\u7684\u201cc\u201d \u6362\u6210\u201cx\u201d \u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n

 <\/p>\n

<\/a>\u5173\u673a\/\u91cd\u542f\u673a\u5668<\/strong><\/p>\n

shutdown<\/p>\n

-r \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5173\u673a\u91cd\u542f<\/p>\n

-h \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5173\u673a\u4e0d\u91cd\u542f<\/p>\n

now \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u7acb\u523b\u5173\u673a<\/p>\n

halt \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5173\u673a<\/p>\n

reboot \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u91cd\u542f<\/p>\n

 <\/p>\n

<\/a>Linux\u7ba1\u9053<\/strong><\/p>\n

\u5c06\u4e00\u4e2a\u547d\u4ee4\u7684\u6807\u51c6\u8f93\u51fa\u4f5c\u4e3a\u53e6\u4e00\u4e2a\u547d\u4ee4\u7684\u6807\u51c6\u8f93\u5165\u3002\u4e5f\u5c31\u662f\u628a\u51e0\u4e2a\u547d\u4ee4\u7ec4\u5408\u8d77\u6765\u4f7f\u7528\uff0c\u540e\u4e00\u4e2a\u547d\u4ee4\u9664\u4ee5\u524d\u4e00\u4e2a\u547d\u4ee4\u7684\u7ed3\u679c\u3002<\/p>\n

\u4f8b\uff1agrep -r \"close\" \/home\/* | more \u00a0 \u00a0 \u00a0 \u5728home\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u4e2d\u67e5\u627e\uff0c\u5305\u62ecclose\u7684\u6587\u4ef6\uff0c\u5e76\u5206\u9875\u8f93\u51fa\u3002<\/p>\n

 <\/p>\n

<\/a>Linux\u8f6f\u4ef6\u5305\u7ba1\u7406<\/strong><\/p>\n

dpkg<\/strong>\u00a0(Debian Package)\u7ba1\u7406\u5de5\u5177\uff0c\u8f6f\u4ef6\u5305\u540d\u4ee5.deb\u540e\u7f00\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u7cfb\u7edf\u4e0d\u80fd\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\u3002<\/p>\n

\u6bd4\u5982\u5b89\u88c5tree\u547d\u4ee4\u7684\u5b89\u88c5\u5305\uff0c\u5148\u5c06tree.deb\u4f20\u5230Linux\u7cfb\u7edf\u4e2d\u3002\u518d\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u3002<\/p>\n

sudo dpkg -i tree_1.5.3-1_i386.deb \u00a0 \u00a0 \u00a0 \u00a0 \u5b89\u88c5\u8f6f\u4ef6<\/p>\n

sudo dpkg -r tree \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5378\u8f7d\u8f6f\u4ef6<\/p>\n

 <\/p>\n

\u6ce8\uff1a\u5c06tree.deb\u4f20\u5230Linux\u7cfb\u7edf\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u5f0f\u3002VMwareTool\uff0c\u4f7f\u7528\u6302\u8f7d\u65b9\u5f0f\uff1b\u4f7f\u7528winSCP\u5de5\u5177\u7b49\uff1b<\/p>\n

APT<\/strong>\uff08Advanced Packaging Tool\uff09\u9ad8\u7ea7\u8f6f\u4ef6\u5de5\u5177\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u7cfb\u7edf\u80fd\u591f\u8fde\u63a5\u4e92\u8054\u7f51\u7684\u60c5\u51b5\u3002<\/p>\n

\u4f9d\u7136\u4ee5tree\u4e3a\u4f8b<\/p>\n

sudo apt-get install tree \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5b89\u88c5tree<\/p>\n

sudo apt-get remove tree \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5378\u8f7dtree<\/p>\n

sudo apt-get update \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u66f4\u65b0\u8f6f\u4ef6<\/p>\n

sudo apt-get upgrade<\/p>\n

 <\/p>\n

\u5c06.rpm<\/strong>\u6587\u4ef6\u8f6c\u4e3a.deb<\/strong>\u6587\u4ef6<\/p>\n

.rpm\u4e3aRedHat\u4f7f\u7528\u7684\u8f6f\u4ef6\u683c\u5f0f\u3002\u5728Ubuntu\u4e0b\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\uff0c\u6240\u4ee5\u9700\u8981\u8f6c\u6362\u4e00\u4e0b\u3002<\/p>\n

sudo alien abc.rpm<\/p>\n

 <\/p>\n

<\/a>vim\u4f7f\u7528<\/strong><\/p>\n

vim\u4e09\u79cd\u6a21\u5f0f\uff1a\u547d\u4ee4\u6a21\u5f0f\u3001\u63d2\u5165\u6a21\u5f0f\u3001\u7f16\u8f91\u6a21\u5f0f\u3002\u4f7f\u7528ESC\u6216i\u6216\uff1a\u6765\u5207\u6362\u6a21\u5f0f\u3002<\/p>\n

\u547d\u4ee4\u6a21\u5f0f\u4e0b\uff1a<\/p>\n

:q \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u9000\u51fa<\/p>\n

:q! \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5f3a\u5236\u9000\u51fa<\/p>\n

:wq \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u4fdd\u5b58\u5e76\u9000\u51fa<\/p>\n

:set number \u00a0 \u00a0 \u663e\u793a\u884c\u53f7<\/p>\n

:set nonumber \u00a0\u9690\u85cf\u884c\u53f7<\/p>\n

\/apache \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5728\u6587\u6863\u4e2d\u67e5\u627eapache \u6309n\u8df3\u5230\u4e0b\u4e00\u4e2a\uff0cshift+n\u4e0a\u4e00\u4e2a<\/p>\n

yyp \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u590d\u5236\u5149\u6807\u6240\u5728\u884c\uff0c\u5e76\u7c98\u8d34<\/p>\n

h(\u5de6\u79fb\u4e00\u4e2a\u5b57\u7b26\u2190)\u3001j(\u4e0b\u4e00\u884c\u2193)\u3001k(\u4e0a\u4e00\u884c\u2191)\u3001l(\u53f3\u79fb\u4e00\u4e2a\u5b57\u7b26\u2192)<\/p>\n

 <\/p>\n

<\/a>\u7528\u6237\u53ca\u7528\u6237\u7ec4\u7ba1\u7406<\/strong><\/p>\n

\/etc\/passwd \u00a0 \u00a0\u5b58\u50a8\u7528\u6237\u8d26\u53f7<\/p>\n

\/etc\/group \u00a0 \u00a0 \u00a0 \u5b58\u50a8\u7ec4\u8d26\u53f7<\/p>\n

\/etc\/shadow \u00a0 \u00a0\u5b58\u50a8\u7528\u6237\u8d26\u53f7\u7684\u5bc6\u7801<\/p>\n

\/etc\/gshadow \u00a0\u5b58\u50a8\u7528\u6237\u7ec4\u8d26\u53f7\u7684\u5bc6\u7801<\/p>\n

useradd \u7528\u6237\u540d<\/p>\n

userdel \u7528\u6237\u540d<\/p>\n

adduser \u7528\u6237\u540d<\/p>\n

groupadd \u7ec4\u540d<\/p>\n

groupdel \u7ec4\u540d<\/p>\n

passwd root \u00a0 \u00a0 \u7ed9root\u8bbe\u7f6e\u5bc6\u7801<\/p>\n

su root<\/p>\n

su - root<\/p>\n

\/etc\/profile \u00a0 \u00a0 \u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/p>\n

bash_profile \u00a0 \u00a0 \u7528\u6237\u73af\u5883\u53d8\u91cf<\/p>\n

.bashrc \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u7528\u6237\u73af\u5883\u53d8\u91cf<\/p>\n

su user \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5207\u6362\u7528\u6237\uff0c\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6.bashrc<\/p>\n

su - user \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5207\u6362\u7528\u6237\uff0c\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\/etc\/profile \uff0c\u52a0\u8f7dbash_profile<\/p>\n

\u66f4\u6539\u6587\u4ef6\u7684\u7528\u6237\u53ca\u7528\u6237\u7ec4<\/strong><\/p>\n

sudo chown [-R] owner[:group] {File|Directory}<\/p>\n

\u4f8b\u5982\uff1a\u8fd8\u4ee5jdk-7u21-linux-i586.tar.gz\u4e3a\u4f8b\u3002\u5c5e\u4e8e\u7528\u6237hadoop\uff0c\u7ec4hadoop<\/p>\n

\u8981\u60f3\u5207\u6362\u6b64\u6587\u4ef6\u6240\u5c5e\u7684\u7528\u6237\u53ca\u7ec4\u3002\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u3002<\/p>\n

sudo chown root:root\u00a0jdk-7u21-linux-i586.tar.gz<\/p>\n

 <\/p>\n

<\/a>\u6587\u4ef6\u6743\u9650\u7ba1\u7406<\/strong><\/p>\n

\u4e09\u79cd\u57fa\u672c\u6743\u9650<\/p>\n

R \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u8bfb \u00a0 \u00a0 \u00a0 \u00a0 \u6570\u503c\u8868\u793a\u4e3a4<\/p>\n

W \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5199 \u00a0 \u00a0 \u00a0 \u00a0 \u6570\u503c\u8868\u793a\u4e3a2<\/p>\n

X \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u53ef\u6267\u884c \u00a0\u6570\u503c\u8868\u793a\u4e3a1<\/p>\n

\"\"<\/p>\n

\u5982\u56fe\u6240\u793a\uff0cjdk-7u21-linux-i586.tar.gz\u6587\u4ef6\u7684\u6743\u9650\u4e3a-rw-rw-r--<\/p>\n

-rw-rw-r--\u4e00\u5171\u5341\u4e2a\u5b57\u7b26\uff0c\u5206\u6210\u56db\u6bb5\u3002<\/p>\n

\u7b2c\u4e00\u4e2a\u5b57\u7b26\u201c-\u201d\u8868\u793a\u666e\u901a\u6587\u4ef6\uff1b\u8fd9\u4e2a\u4f4d\u7f6e\u8fd8\u53ef\u80fd\u4f1a\u51fa\u73b0\u201cl\u201d\u94fe\u63a5\uff1b\u201cd\u201d\u8868\u793a\u76ee\u5f55<\/p>\n

\u7b2c\u4e8c\u4e09\u56db\u4e2a\u5b57\u7b26\u201crw-\u201d\u8868\u793a\u5f53\u524d\u6240\u5c5e\u7528\u6237\u7684\u6743\u9650\u3002 \u00a0 \u6240\u4ee5\u7528\u6570\u503c\u8868\u793a\u4e3a4+2=6<\/p>\n

\u7b2c\u4e94\u516d\u4e03\u4e2a\u5b57\u7b26\u201crw-\u201d\u8868\u793a\u5f53\u524d\u6240\u5c5e\u7ec4\u7684\u6743\u9650\u3002 \u00a0 \u00a0 \u00a0\u6240\u4ee5\u7528\u6570\u503c\u8868\u793a\u4e3a4+2=6<\/p>\n

\u7b2c\u516b\u4e5d\u5341\u4e2a\u5b57\u7b26\u201cr--\u201d\u8868\u793a\u5176\u4ed6\u7528\u6237\u6743\u9650\u3002 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6240\u4ee5\u7528\u6570\u503c\u8868\u793a\u4e3a2<\/p>\n

\u6240\u4ee5\u64cd\u4f5c\u6b64\u6587\u4ef6\u7684\u6743\u9650\u7528\u6570\u503c\u8868\u793a\u4e3a662<\/p>\n

\u66f4\u6539\u6743\u9650<\/strong><\/p>\n

sudo chmod [u\u6240\u5c5e\u7528\u6237 \u00a0g\u6240\u5c5e\u7ec4 \u00a0o\u5176\u4ed6\u7528\u6237 \u00a0a\u6240\u6709\u7528\u6237] \u00a0[+\u589e\u52a0\u6743\u9650 \u00a0-\u51cf\u5c11\u6743\u9650] \u00a0[r \u00a0w \u00a0x] \u00a0 \u76ee\u5f55\u540d<\/p>\n

\u4f8b\u5982\uff1a\u6709\u4e00\u4e2a\u6587\u4ef6filename\uff0c\u6743\u9650\u4e3a\u201c-rw-r----x\u201d ,\u5c06\u6743\u9650\u503c\u6539\u4e3a\"-rwxrw-r-x\"\uff0c\u7528\u6570\u503c\u8868\u793a\u4e3a765<\/p>\n

sudo chmod u+x g+w o+r \u00a0filename<\/p>\n

\u4e0a\u9762\u7684\u4f8b\u5b50\u53ef\u4ee5\u7528\u6570\u503c\u8868\u793a<\/p>\n

sudo chmod 765 filename<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux\u7b80\u4ecb\u53caUbuntu\u5b89\u88c5 Linux\uff0c\u514d\u8d39\u5f00\u6e90\uff0c\u591a\u7528\u6237\u591a\u4efb\u52a1\u7cfb\u7edf\u3002\u57fa\u4e8eLinux\u6709\u591a\u4e2a\u7248\u672c\u7684\u884d\u751f\u3002Re […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[337,345],"class_list":["post-1201","post","type-post","status-publish","format-standard","hentry","category-wljs","tag-linux","tag-345"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1201"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1201\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}