{"id":102936,"date":"2026-09-09T18:09:04","date_gmt":"2026-09-09T10:09:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/102936.html"},"modified":"2026-09-09T18:09:04","modified_gmt":"2026-09-09T10:09:04","slug":"linux%e7%9a%84shell%e7%bc%96%e7%a8%8b%e3%80%81%e5%8f%98%e9%87%8f%e3%80%81%e7%94%a8%e6%88%b7%e4%b8%8e%e7%bb%84%e7%ae%a1%e7%90%86%e3%80%81%e5%91%bd%e4%bb%a4%e6%9b%bf%e6%8d%a2%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/102936.html","title":{"rendered":"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218"},"content":{"rendered":"<h2>Linux Shell\u7f16\u7a0b&#xff5c;\u53d8\u91cf\u3001\u7528\u6237\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218\u7b14\u8bb0&#xff08;CentOS7&#xff09;<\/h2>\n<p>\u6458\u8981&#xff1a;\u672c\u6587\u4eceshell\u53d8\u91cf\u5f00\u59cb\u8bb2\u89e3&#xff0c;\u5305\u542b\u672c\u5730\/\u73af\u5883\u53d8\u91cf\u3001shell\u767b\u5f55\u7c7b\u578b\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001passwd\/shadow\u914d\u7f6e\u6587\u4ef6\u3001\u547d\u4ee4\u66ff\u6362\u4e0e\u5f15\u53f7\u89c4\u5219\u3002\u5168\u90e8\u547d\u4ee4\u53ef\u76f4\u63a5\u590d\u5236\u6267\u884c&#xff0c;\u6574\u7406\u5927\u91cf\u5b9e\u9a8c\u8e29\u5751\u70b9\u4e0e\u9762\u8bd5\u9ad8\u9891\u8003\u70b9\u3002<\/p>\n<h2>\u4e00\u3001Shell\u7f16\u7a0b\u2011\u53d8\u91cf\u8d4b\u503c<\/h2>\n<p>\u53d8\u91cf\u4fdd\u5b58\u5728\u5f53\u524d\u4f1a\u8bdd\u5185\u5b58&#xff0c;\u7ec8\u7aef\u9000\u51fa\u4e4b\u540e\u53d8\u91cf\u81ea\u52a8\u9500\u6bc1\u3002<br \/>\n\u53d8\u91cf\u547d\u540d&#xff1a;\u53ea\u80fd\u7531\u6570\u5b57\u3001\u5b57\u6bcd\u3001\u4e0b\u5212\u7ebf\u7ec4\u6210&#xff0c;\u4e0d\u80fd\u6570\u5b57\u5f00\u5934\u3002<\/p>\n<p><span class=\"token comment\"># \u53d8\u91cf\u8d4b\u503c&#xff0c;\u7b49\u53f7\u4e24\u8fb9\u4e0d\u80fd\u6709\u7a7a\u683c<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">18<\/span>:14:48<span class=\"token punctuation\">]<\/span>$ <span class=\"token assign-left variable\">z<\/span><span class=\"token operator\">&#061;<\/span>zhangjunxiang<\/p>\n<p><span class=\"token comment\"># \u8bfb\u53d6\u53d8\u91cf<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">18<\/span>:14:58<span class=\"token punctuation\">]<\/span>$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$z<\/span><br \/>\nzhangjunxiang<\/p>\n<h3>\u53d8\u91cf\u5206\u7c7b<\/h3>\n<h4>\u666e\u901a&#xff08;\u672c\u5730&#xff09;\u53d8\u91cf<\/h4>\n<p><span class=\"token comment\"># \u5b9a\u4e49\u666e\u901a\u53d8\u91cf<\/span><br \/>\n<span class=\"token assign-left variable\">z<\/span><span class=\"token operator\">&#061;<\/span>zhangjunxiang<\/p>\n<p><span class=\"token comment\"># \u666e\u901a\u53d8\u91cf\u4ec5\u5f53\u524dshell\u751f\u6548&#xff0c;\u5b50shell\u65e0\u6cd5\u8bfb\u53d6<\/span><br \/>\n<span class=\"token function\">bash<\/span>                <span class=\"token comment\"># \u5f00\u542f\u5b50shell<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$z<\/span>             <span class=\"token comment\"># \u8f93\u51fa\u4e3a\u7a7a<\/span><br \/>\n<span class=\"token builtin class-name\">exit<\/span>                <span class=\"token comment\"># \u9000\u51fa\u5b50shell<\/span><\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528export\u5c06\u666e\u901a\u53d8\u91cf\u5347\u7ea7\u4e3a\u73af\u5883\u53d8\u91cf&#xff0c;\u5b50shell\u53ef\u7ee7\u627f<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> z<br \/>\n<span class=\"token function\">bash<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$z<\/span>             <span class=\"token comment\"># zhangjunxiang<\/span><br \/>\n<span class=\"token builtin class-name\">exit<\/span><\/p>\n<p>\u26a0\ufe0f\u8e29\u5751&#xff1a;\u4e0d\u52a0export&#xff0c;\u5b50shell\u770b\u4e0d\u5230\u672c\u5730\u53d8\u91cf\u3002<\/p>\n<h4>\u73af\u5883\u53d8\u91cf<\/h4>\n<p><span class=\"token comment\"># \u5b9a\u4e49\u73af\u5883\u53d8\u91cf\u5199\u6cd5<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> \u53d8\u91cf\u540d<span class=\"token operator\">&#061;<\/span>\u503c<\/p>\n<p>\u7cfb\u7edf\u81ea\u5e26\u73af\u5883\u53d8\u91cf&#xff08;PATH\u3001USER\u3001HOSTNAME\u7b49&#xff09;\u5df2\u5728\u914d\u7f6e\u6587\u4ef6\u9884\u5148export&#xff0c;\u65e0\u9700\u624b\u52a8\u5bfc\u51fa\u3002<\/p>\n<p><span class=\"token function\">grep<\/span> <span class=\"token builtin class-name\">export<\/span> \/etc\/profile<\/p>\n<h3>\u53d8\u91cf\u6301\u4e45\u5316 &amp; shell\u767b\u5f55\u7c7b\u578b<\/h3>\n<h4>login shell \u767b\u5f55\u5f0fshell<\/h4>\n<p>\u9700\u8981\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u767b\u5f55\u7684bash\u7ec8\u7aef<br \/>\n\u52a0\u8f7d\u6587\u4ef6\u987a\u5e8f&#xff08;\u4ece\u4e0a\u5f80\u4e0b&#xff0c;\u540e\u9762\u8986\u76d6\u524d\u9762&#xff09;<\/p>\n<li>\/etc\/profile \u5168\u5c40\u914d\u7f6e<\/li>\n<li>~\/.bash_profile \u7528\u6237\u4e2a\u4eba\u914d\u7f6e<\/li>\n<li>~\/.bashrc<\/li>\n<li>\/etc\/bashrc<\/li>\n<h4>nologin shell \u975e\u767b\u5f55\u5f0fshell<\/h4>\n<p>\u4e0d\u9700\u8981\u8d26\u53f7\u5bc6\u7801&#xff0c;\u6bd4\u5982\u76f4\u63a5bash\u5f00\u542f\u5b50\u7ec8\u7aef<br \/>\n\u52a0\u8f7d\u6587\u4ef6\u987a\u5e8f<\/p>\n<li>~\/.bashrc<\/li>\n<li>\/etc\/bashrc<\/li>\n<h4>\u5224\u65ad\u5f53\u524d\u662f\u767b\u5f55\/\u975e\u767b\u5f55shell<\/h4>\n<p><span class=\"token comment\"># -bash \u4ee3\u8868login&#xff1b;bash\u4ee3\u8868nologin<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">18<\/span>:54:18<span class=\"token punctuation\">]<\/span>$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$0<\/span><br \/>\n<span class=\"token parameter variable\">-bash<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">19<\/span>:01:21<span class=\"token punctuation\">]<\/span>$ <span class=\"token function\">bash<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">19<\/span>:01:23<span class=\"token punctuation\">]<\/span>$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$0<\/span><br \/>\n<span class=\"token function\">bash<\/span><\/p>\n<p>&#x1f4a1;\u9762\u8bd5\u8003\u70b9&#xff1a;\u60f3\u8981\u53d8\u91cf\u6c38\u4e45\u751f\u6548&#xff0c;\u9700\u8981\u5199\u5165\u5bf9\u5e94\u914d\u7f6e\u6587\u4ef6&#xff1b;\u4e34\u65f6export\u53ea\u5bf9\u5f53\u524d\u4f1a\u8bdd\u751f\u6548\u3002<\/p>\n<h2>\u4e8c\u3001\u7528\u6237\u548c\u7ec4\u7ba1\u7406<\/h2>\n<h3>\u67e5\u770b\u7528\u6237\u4fe1\u606f<\/h3>\n<p><span class=\"token comment\"># \u67e5\u770b\u7528\u6237uid\u3001gid\u3001\u9644\u5c5e\u7ec4<\/span><br \/>\n<span class=\"token function\">id<\/span> zjx<\/p>\n<h3>\/etc\/passwd \u7528\u6237\u4fe1\u606f\u6587\u4ef6<\/h3>\n<p>\u4fdd\u5b58\u767b\u5f55\u7528\u6237\u57fa\u7840\u4fe1\u606f&#xff0c;\u5192\u53f7\u5206\u96947\u4e2a\u5b57\u6bb5<\/p>\n<p><span class=\"token comment\">#\u683c\u5f0f name:password:UID:GID:GECOS:directory:shell<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>zjx&#064;localhost ~ <span class=\"token number\">19<\/span>:01:23<span class=\"token punctuation\">]<\/span>$ <span class=\"token function\">grep<\/span> zjx \/etc\/passwd<br \/>\nzjx:x:1000:1000:zjx:\/home\/zjx:\/bin\/bash<\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<li>name&#xff1a;\u767b\u5f55\u7528\u6237\u540d<\/li>\n<li>password&#xff1a;\u5bc6\u7801\u5360\u4f4d\u7b26x&#xff0c;\u771f\u6b63\u5bc6\u6587\u5b58\u653e\u5728\/etc\/shadow<\/li>\n<li>UID&#xff1a;\u7528\u6237ID<\/li>\n<li>GID&#xff1a;\u4e3b\u7ec4ID<\/li>\n<li>GECOS&#xff1a;\u7528\u6237\u63cf\u8ff0\u4fe1\u606f<\/li>\n<li>directory&#xff1a;\u5bb6\u76ee\u5f55<\/li>\n<li>shell&#xff1a;\u767b\u5f55shell\u7a0b\u5e8f<\/li>\n<p>\u65b0\u7528\u6237\u5bb6\u76ee\u5f55\u7684\u521d\u59cb\u5316\u6587\u4ef6\u590d\u5236\u81ea \/etc\/skel\u3002<\/p>\n<h3>\u7528\u6237\u7ba1\u7406\u547d\u4ee4 useradd \/ usermod \/ userdel<\/h3>\n<h4>useradd \u521b\u5efa\u7528\u6237<\/h4>\n<p><span class=\"token comment\"># \u9ed8\u8ba4\u521b\u5efa\u7528\u6237<\/span><br \/>\n<span class=\"token function\">useradd<\/span> zzz<\/p>\n<p><span class=\"token comment\"># \u6307\u5b9a\u53c2\u6570\u521b\u5efa\u7528\u6237<\/span><br \/>\n<span class=\"token comment\"># -u \u6307\u5b9aUID&#xff1b;-d \u6307\u5b9a\u5bb6\u76ee\u5f55&#xff1b;-g \u6307\u5b9a\u4e3b\u7ec4&#xff1b;-c \u63cf\u8ff0&#xff1b;-s \u6307\u5b9ashell<\/span><br \/>\n<span class=\"token function\">useradd<\/span> <span class=\"token parameter variable\">-u<\/span> <span class=\"token number\">6666<\/span> <span class=\"token parameter variable\">-d<\/span> \/home\/zjx1 <span class=\"token parameter variable\">-g<\/span> wheel zjx1<\/p>\n<h4>usermod \u4fee\u6539\u7528\u6237\u5c5e\u6027<\/h4>\n<p><span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-u<\/span> <span class=\"token number\">1234<\/span> zjx               <span class=\"token comment\"># \u4fee\u6539uid<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-g<\/span> dev zjx                <span class=\"token comment\"># \u4fee\u6539\u4e3b\u7ec4<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-G<\/span> <span class=\"token function\">docker<\/span> zjx             <span class=\"token comment\"># \u8986\u76d6\u5f0f\u8bbe\u7f6e\u9644\u52a0\u7ec4&#xff08;\u4f1a\u6e05\u7a7a\u65e7\u9644\u52a0\u7ec4&#xff01;&#xff09;<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-aG<\/span> <span class=\"token function\">docker<\/span> zjx            <span class=\"token comment\"># \u8ffd\u52a0\u9644\u52a0\u7ec4&#xff0c;\u63a8\u8350\u4f7f\u7528\u2011aG<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#034;\u6d4b\u8bd5\u8d26\u53f7&#034;<\/span> zjx         <span class=\"token comment\"># \u4fee\u6539\u6ce8\u91ca\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-md<\/span> \/home\/zjx2 zjx2       <span class=\"token comment\"># -d\u4fee\u6539\u5bb6\u76ee\u5f55&#xff0c;\u2011m\u8fc1\u79fb\u539f\u6709\u6570\u636e<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-s<\/span> \/sbin\/nologin zjx      <span class=\"token comment\"># \u7981\u6b62\u7528\u6237\u767b\u5f55shell<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-L<\/span> zjx                    <span class=\"token comment\"># \u9501\u5b9a\u7528\u6237\u5bc6\u7801&#xff0c;\u7b49\u4ef7 passwd -l<\/span><br \/>\n<span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-U<\/span> zjx                    <span class=\"token comment\"># \u89e3\u9501\u7528\u6237\u5bc6\u7801&#xff0c;\u7b49\u4ef7 passwd -u<\/span><\/p>\n<p>\u26a0\ufe0f\u9ad8\u9891\u8e29\u5751&#xff1a;usermod -G\u4f1a\u8986\u76d6\u5168\u90e8\u9644\u52a0\u7ec4&#xff0c;\u8ffd\u52a0\u4e00\u5b9a\u8981\u52a0\u2011a\u53c2\u6570\u3002<\/p>\n<h4>userdel \u5220\u9664\u7528\u6237<\/h4>\n<p><span class=\"token function\">userdel<\/span> zjx1<br \/>\n<span class=\"token comment\"># \u9ed8\u8ba4\u4e0d\u4f1a\u5220\u9664\u5bb6\u76ee\u5f55&#xff0c;\u5982\u9700\u8fde\u5e26\u5bb6\u76ee\u5f55\u5220\u9664 userdel -r zjx1<\/span><\/p>\n<h3>\/etc\/shadow \u7528\u6237\u5bc6\u7801\u6587\u4ef6<\/h3>\n<p>\u5b58\u50a8\u52a0\u5bc6\u5bc6\u7801\u3001\u5bc6\u7801\u6709\u6548\u671f&#xff0c;\u51719\u4e2a\u5b57\u6bb5&#xff0c;\u4ec5root\u53ef\u8bfb<\/p>\n<p><span class=\"token function\">grep<\/span> zjx  \/etc\/shadow<br \/>\nzjx:<span class=\"token variable\">$6<\/span><span class=\"token variable\">$jIxPcfC2<\/span><span class=\"token variable\">$t15Qr85DL9m2ui<\/span>.ZhUnKwMpkCxn488YcNZeJjv34GP.A2MgzSP5LN0LhZgWC.QoRo\/6V0Gt6S0JcboMw9J9Tj\/:20704:0:99999:5:10::<\/p>\n<p>\u5b57\u6bb5\u542b\u4e49&#xff1a;<\/p>\n<li>\u767b\u5f55\u7528\u6237\u540d<\/li>\n<li>\u52a0\u5bc6\u5bc6\u7801\u4e32<\/li>\n<li>\u4e0a\u6b21\u6539\u5bc6\u7801\u65f6\u95f4\u6233<\/li>\n<li>-m \u6700\u5c0f\u5bc6\u7801\u6709\u6548\u671f&#xff0c;n\u5929\u5185\u4e0d\u80fd\u6539\u5bc6\u7801&#xff0c;0\u4ee3\u8868\u968f\u65f6\u4fee\u6539<\/li>\n<li>-M \u6700\u5927\u5bc6\u7801\u6709\u6548\u671f&#xff0c;n\u5929\u540e\u5fc5\u987b\u6539\u5bc6\u7801<\/li>\n<li>-W \u8fc7\u671f\u544a\u8b66\u5929\u6570<\/li>\n<li>-I \u5bc6\u7801\u5bbd\u9650\u5929\u6570&#xff0c;\u8fc7\u671f\u540e\u8fd8\u80fd\u767b\u5f55\u7684\u7f13\u51b2\u65f6\u95f4<\/li>\n<li>\u8d26\u53f7\u8fc7\u671f\u65f6\u95f4<\/li>\n<li>\u4fdd\u7559\u5b57\u6bb5<\/li>\n<p><span class=\"token comment\"># chage \u4fee\u6539\u5bc6\u7801\u5468\u671f<\/span><br \/>\nchage <span class=\"token parameter variable\">-m<\/span> <span class=\"token number\">3<\/span> <span class=\"token parameter variable\">-M<\/span> <span class=\"token number\">60<\/span> <span class=\"token parameter variable\">-W<\/span> <span class=\"token number\">5<\/span> <span class=\"token parameter variable\">-I<\/span> <span class=\"token number\">7<\/span> zjx<\/p>\n<p>\u26a0\ufe0f\u5927\u5751&#xff1a;usermod -p &#039;123&#039; zjx&#xff0c;-p\u540e\u9762\u9700\u8981\u586b\u5199\u5bc6\u7801\u5bc6\u6587&#xff0c;\u76f4\u63a5\u5199\u660e\u6587\u4f1a\u5bfc\u81f4\u8d26\u53f7\u65e0\u6cd5\u767b\u5f55\u3002<\/p>\n<h3>\u67e5\u770b\u767b\u5f55\u7528\u6237<\/h3>\n<p><span class=\"token function\">whoami<\/span>          <span class=\"token comment\"># \u67e5\u770b\u6211\u662f\u8c01<\/span><br \/>\n<span class=\"token function\">who<\/span>             <span class=\"token comment\"># \u5217\u51fa\u6240\u6709\u767b\u5f55\u7ec8\u7aef<\/span><br \/>\nw               <span class=\"token comment\"># who\u589e\u5f3a\u7248&#xff0c;\u663e\u793a\u8d1f\u8f7d\u3001CPU\u5360\u7528\u3001\u6267\u884c\u547d\u4ee4<\/span><\/p>\n<h3>\u7ec4\u7ba1\u7406 \/etc\/group<\/h3>\n<p>\/etc\/group&#xff1a;\u7ec4\u914d\u7f6e\u6587\u4ef6&#xff0c;\u683c\u5f0f \u7ec4\u540d:\u5bc6\u7801\u5360\u4f4d\u7b26:GID:\u9644\u52a0\u7ec4\u6210\u5458\u5217\u8868<\/p>\n<p><span class=\"token function\">grep<\/span> wheel \/etc\/group<br \/>\nwheel:x:10:<\/p>\n<p>\u7ec4\u533a\u5206<\/p>\n<li>\u4e3b\u7ec4&#xff1a;\u6bcf\u4e2a\u7528\u6237\u4ec5\u67091\u4e2a\u4e3b\u7ec4&#xff0c;\u65b0\u5efa\u6587\u4ef6\u9ed8\u8ba4\u5f52\u5c5e\u4e3b\u7ec4\u3002<\/li>\n<li>\u9644\u52a0\u7ec4&#xff08;\u8865\u5145\u7ec4&#xff09;&#xff1a;\u7528\u6237\u53ef\u4ee5\u62e5\u6709\u591a\u4e2a\u9644\u52a0\u7ec4\u3002<\/li>\n<h4>groupadd \u521b\u5efa\u7ec4<\/h4>\n<p><span class=\"token function\">groupadd<\/span> admin<br \/>\n<span class=\"token function\">groupadd<\/span> admin <span class=\"token parameter variable\">&#8211;g<\/span> <span class=\"token number\">2000<\/span>   <span class=\"token comment\"># \u6307\u5b9aGID\u521b\u5efa<\/span><\/p>\n<h4>groupmod \u4fee\u6539\u7ec4<\/h4>\n<p><span class=\"token function\">groupmod<\/span> <span class=\"token parameter variable\">-n<\/span> newname oldname   <span class=\"token comment\"># \u4fee\u6539\u7ec4\u540d<\/span><br \/>\n<span class=\"token function\">groupmod<\/span> <span class=\"token parameter variable\">-g<\/span> <span class=\"token number\">2006<\/span> admins       <span class=\"token comment\"># \u4fee\u6539GID<\/span><\/p>\n<h4>groupdel \u5220\u9664\u7ec4<\/h4>\n<p><span class=\"token function\">groupdel<\/span> \u7ec4\u540d<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u67d0\u4e2a\u7528\u6237\u628a\u8be5\u7ec4\u4f5c\u4e3a\u4e3b\u7ec4&#xff0c;\u8be5\u7ec4\u4e0d\u80fd\u76f4\u63a5\u5220\u9664&#xff0c;\u9700\u8981\u5148\u4fee\u6539\u7528\u6237\u4e3b\u7ec4\u3002<\/p>\n<h4>groupmems \u7ba1\u7406\u9644\u52a0\u7ec4\u6210\u5458<\/h4>\n<p>groupmems\u53ea\u64cd\u4f5c\u9644\u52a0\u7ec4\u6210\u5458&#xff0c;\u4e0d\u5904\u7406\u7528\u6237\u4e3b\u7ec4\u3002<\/p>\n<p>groupmems <span class=\"token parameter variable\">-g<\/span> <span class=\"token builtin class-name\">test<\/span> <span class=\"token parameter variable\">-l<\/span>         <span class=\"token comment\"># \u5217\u51fa\u9644\u52a0\u7ec4\u6210\u5458<\/span><br \/>\ngroupmems <span class=\"token parameter variable\">-g<\/span> <span class=\"token builtin class-name\">test<\/span> <span class=\"token parameter variable\">-p<\/span>         <span class=\"token comment\"># \u6e05\u7a7a\u5168\u90e8\u9644\u52a0\u7ec4\u6210\u5458<\/span><br \/>\ngroupmems <span class=\"token parameter variable\">-g<\/span> <span class=\"token builtin class-name\">test<\/span> <span class=\"token parameter variable\">-a<\/span> test2   <span class=\"token comment\"># \u6dfb\u52a0\u9644\u52a0\u7ec4\u6210\u5458<\/span><br \/>\ngroupmems <span class=\"token parameter variable\">-g<\/span> <span class=\"token builtin class-name\">test<\/span> <span class=\"token parameter variable\">-d<\/span> test2   <span class=\"token comment\"># \u5220\u9664\u9644\u52a0\u7ec4\u6210\u5458<\/span><\/p>\n<h2>\u4e09\u3001\u547d\u4ee4\u66ff\u6362<\/h2>\n<p>\u5c06\u547d\u4ee4\u6267\u884c\u8f93\u51fa&#xff0c;\u63d0\u53d6\u51fa\u6765\u5f53\u505a\u5b57\u7b26\u4e32\u4f7f\u7528\u3002<br \/>\n\u4e24\u79cd\u5199\u6cd5&#xff1a;<\/p>\n<li>$(command) \u63a8\u8350\u5199\u6cd5<\/li>\n<li>&#096;command&#096; \u53cd\u5f15\u53f7\u5199\u6cd5<\/li>\n<p><span class=\"token comment\"># $()<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u4eca\u5929\u65e5\u671f&#xff1a;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span><span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u53cd\u5f15\u53f7<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u4eca\u5929\u65e5\u671f&#xff1a;&#034;<\/span><span class=\"token variable\"><span class=\"token variable\">&#096;<\/span><span class=\"token function\">date<\/span><span class=\"token variable\">&#096;<\/span><\/span><\/p>\n<h4>\u547d\u4ee4\u66ff\u6362 vs \u53d8\u91cf\u66ff\u6362<\/h4>\n<table>\n<tr>\u7c7b\u578b\u8bed\u6cd5\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u547d\u4ee4\u66ff\u6362<\/td>\n<td>$(cmd)<\/td>\n<td>\u6267\u884c\u547d\u4ee4&#xff0c;\u83b7\u53d6\u547d\u4ee4\u8f93\u51fa\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td>\u53d8\u91cf\u66ff\u6362<\/td>\n<td>${var}<\/td>\n<td>\u8bfb\u53d6\u53d8\u91cf\u503c&#xff0c;\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u547d\u4ee4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span class=\"token comment\">#\u547d\u4ee4\u66ff\u6362<\/span><br \/>\n<span class=\"token assign-left variable\">var<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">hostname<\/span><span class=\"token variable\">)<\/span><\/span><\/p>\n<p><span class=\"token comment\">#\u53d8\u91cf\u66ff\u6362<\/span><br \/>\n<span class=\"token assign-left variable\">var<\/span><span class=\"token operator\">&#061;<\/span>abc<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">${var}<\/span><\/p>\n<h4>\u5f15\u53f7\u7684\u4f5c\u7528&#xff08;\u9762\u8bd5\u9ad8\u9891&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u5355\u5f15\u53f7&#xff1a;\u539f\u6837\u8f93\u51fa&#xff0c;\u4e0d\u89e3\u6790\u4efb\u4f55\u66ff\u6362<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;$(date)&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u53cc\u5f15\u53f7&#xff1a;\u5141\u8bb8\u89e3\u6790\u547d\u4ee4\u66ff\u6362\u3001\u53d8\u91cf\u66ff\u6362<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span><span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<p>\u603b\u7ed3&#xff1a;<\/p>\n<ul>\n<li>\u5355\u5f15\u53f7 &#039; &#039;&#xff1a;\u6240\u89c1\u5373\u6240\u5f97&#xff0c;\u539f\u6837\u8f93\u51fa&#xff1b;<\/li>\n<li>\u53cc\u5f15\u53f7 &#034; &#034;&#xff1a;\u89e3\u6790\u53d8\u91cf\u3001$()\u547d\u4ee4\u66ff\u6362\u3002<\/li>\n<\/ul>\n<h2>\u907f\u5751\u603b\u7ed3<\/h2>\n<li>shell\u53d8\u91cf\u8d4b\u503c\u7b49\u53f7\u4e24\u8fb9\u4e0d\u80fd\u6709\u7a7a\u683c&#xff1b;export\u624d\u53ef\u4ee5\u8ba9\u5b50shell\u7ee7\u627f\u53d8\u91cf\u3002<\/li>\n<li>usermod -G\u76f4\u63a5\u8986\u76d6\u9644\u52a0\u7ec4&#xff0c;\u8ffd\u52a0\u6210\u5458\u5fc5\u987b\u7528\u2011aG\u3002<\/li>\n<li>usermod -p\u63a5\u6536\u5bc6\u6587&#xff0c;\u4e0d\u8981\u76f4\u63a5\u586b\u660e\u6587\u5bc6\u7801&#xff0c;\u4f1a\u9020\u6210\u8d26\u53f7\u65e0\u6cd5\u767b\u5f55\u3002<\/li>\n<li>groupmems\u53ea\u7ba1\u7406\u9644\u52a0\u7ec4&#xff0c;\u5bf9\u7528\u6237\u4e3b\u7ec4\u65e0\u6548\u3002<\/li>\n<li>\u5355\u5f15\u53f7\u5173\u95ed\u89e3\u6790&#xff0c;\u53cc\u5f15\u53f7\u5141\u8bb8$()\u547d\u4ee4\u66ff\u6362\u3001\u53d8\u91cf\u89e3\u6790\u3002<\/li>\n<li>login shell\u548cnologin shell\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\u987a\u5e8f\u4e0d\u540c&#xff0c;\u5199\u6c38\u4e45\u73af\u5883\u53d8\u91cf\u8981\u6ce8\u610f\u3002<\/li>\n<h2>\u5b66\u4e60\u7b14\u8bb0\u5c0f\u7ed3\u3010\u9762\u8bd5\u901f\u8bb0\u3011<\/h2>\n<li>\u666e\u901a\u53d8\u91cf\u53ea\u5f53\u524dshell\u6709\u6548&#xff1b;export\u5bfc\u51fa\u6210\u73af\u5883\u53d8\u91cf&#xff0c;\u5b50shell\u7ee7\u627f\u3002<\/li>\n<li>\/etc\/passwd\u5b58\u7528\u6237\u57fa\u7840\u4fe1\u606f&#xff1b;\/etc\/shadow\u5b58\u50a8\u52a0\u5bc6\u5bc6\u7801&#xff0c;\u6743\u9650\u4e25\u683c\u3002<\/li>\n<li>\u7528\u6237\u6dfb\u52a0\u9644\u52a0\u7ec4&#xff1a;usermod -aG \u7ec4\u540d \u7528\u6237\u540d&#xff0c;\u4e0d\u8981\u5fd8\u8bb0\u2011a\u3002<\/li>\n<li>groupmems\u4ec5\u64cd\u4f5c\u9644\u52a0\u7ec4\u6210\u5458&#xff0c;\u65e0\u6cd5\u4fee\u6539\u7528\u6237\u4e3b\u7ec4\u3002<\/li>\n<li>\u547d\u4ee4\u66ff\u6362\u4f18\u5148\u7528$(cmd)&#xff0c;\u53cd\u5f15\u53f7\u5d4c\u5957\u53ef\u8bfb\u6027\u5dee&#xff1b;\u5355\u5f15\u53f7\u539f\u6837\u8f93\u51fa&#xff0c;\u53cc\u5f15\u53f7\u89e3\u6790\u66ff\u6362\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Linux Shell\u7f16\u7a0b&#xff5c;\u53d8\u91cf\u3001\u7528\u6237\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218\u7b14\u8bb0&#xff08;CentOS7&#xff09;<br \/>\n\u6458\u8981&#xff1a;\u672c\u6587\u4eceshell\u53d8\u91cf\u5f00\u59cb\u8bb2\u89e3&#xff0c;\u5305\u542b\u672c\u5730\/\u73af\u5883\u53d8\u91cf\u3001shell\u767b\u5f55\u7c7b\u578b\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001passwd\/shadow\u914d\u7f6e\u6587\u4ef6\u3001\u547d\u4ee4\u66ff\u6362\u4e0e\u5f15\u53f7\u89c4\u5219\u3002\u5168\u90e8\u547d\u4ee4\u53ef\u76f4\u63a5\u590d\u5236\u6267\u884c&#xff0c;\u6574\u7406\u5927\u91cf\u5b9e\u9a8c\u8e29\u5751\u70b9\u4e0e\u9762\u8bd5\u9ad8\u9891\u8003\u70b9\u3002<br \/>\n\u4e00\u3001Shell\u7f16\u7a0b\u2011\u53d8\u91cf\u8d4b\u503c\u53d8\u91cf\u4fdd\u5b58\u5728\u5f53\u524d\u4f1a\u8bdd\u5185\u5b58&#xff0c;\u7ec8\u7aef\u9000\u51fa\u4e4b\u540e\u53d8\u91cf\u81ea\u52a8\u9500\u6bc1\u3002<br \/>\n\u53d8\u91cf\u547d\u540d&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[130,58,44],"topic":[],"class_list":["post-102936","post","type-post","status-publish","format-standard","hentry","category-server","tag-chrome","tag-linux","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/102936.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux Shell\u7f16\u7a0b&#xff5c;\u53d8\u91cf\u3001\u7528\u6237\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218\u7b14\u8bb0&#xff08;CentOS7&#xff09; \u6458\u8981&#xff1a;\u672c\u6587\u4eceshell\u53d8\u91cf\u5f00\u59cb\u8bb2\u89e3&#xff0c;\u5305\u542b\u672c\u5730\/\u73af\u5883\u53d8\u91cf\u3001shell\u767b\u5f55\u7c7b\u578b\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001passwd\/shadow\u914d\u7f6e\u6587\u4ef6\u3001\u547d\u4ee4\u66ff\u6362\u4e0e\u5f15\u53f7\u89c4\u5219\u3002\u5168\u90e8\u547d\u4ee4\u53ef\u76f4\u63a5\u590d\u5236\u6267\u884c&#xff0c;\u6574\u7406\u5927\u91cf\u5b9e\u9a8c\u8e29\u5751\u70b9\u4e0e\u9762\u8bd5\u9ad8\u9891\u8003\u70b9\u3002 \u4e00\u3001Shell\u7f16\u7a0b\u2011\u53d8\u91cf\u8d4b\u503c\u53d8\u91cf\u4fdd\u5b58\u5728\u5f53\u524d\u4f1a\u8bdd\u5185\u5b58&#xff0c;\u7ec8\u7aef\u9000\u51fa\u4e4b\u540e\u53d8\u91cf\u81ea\u52a8\u9500\u6bc1\u3002 \u53d8\u91cf\u547d\u540d&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/102936.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-09T10:09:04+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102936.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/102936.html\",\"name\":\"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-09T10:09:04+00:00\",\"dateModified\":\"2026-09-09T10:09:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/102936.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/102936.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102936.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/102936.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux Shell\u7f16\u7a0b&#xff5c;\u53d8\u91cf\u3001\u7528\u6237\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218\u7b14\u8bb0&#xff08;CentOS7&#xff09; \u6458\u8981&#xff1a;\u672c\u6587\u4eceshell\u53d8\u91cf\u5f00\u59cb\u8bb2\u89e3&#xff0c;\u5305\u542b\u672c\u5730\/\u73af\u5883\u53d8\u91cf\u3001shell\u767b\u5f55\u7c7b\u578b\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001passwd\/shadow\u914d\u7f6e\u6587\u4ef6\u3001\u547d\u4ee4\u66ff\u6362\u4e0e\u5f15\u53f7\u89c4\u5219\u3002\u5168\u90e8\u547d\u4ee4\u53ef\u76f4\u63a5\u590d\u5236\u6267\u884c&#xff0c;\u6574\u7406\u5927\u91cf\u5b9e\u9a8c\u8e29\u5751\u70b9\u4e0e\u9762\u8bd5\u9ad8\u9891\u8003\u70b9\u3002 \u4e00\u3001Shell\u7f16\u7a0b\u2011\u53d8\u91cf\u8d4b\u503c\u53d8\u91cf\u4fdd\u5b58\u5728\u5f53\u524d\u4f1a\u8bdd\u5185\u5b58&#xff0c;\u7ec8\u7aef\u9000\u51fa\u4e4b\u540e\u53d8\u91cf\u81ea\u52a8\u9500\u6bc1\u3002 \u53d8\u91cf\u547d\u540d&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/102936.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-09T10:09:04+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/102936.html","url":"https:\/\/www.wsisp.com\/helps\/102936.html","name":"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-09T10:09:04+00:00","dateModified":"2026-09-09T10:09:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/102936.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/102936.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/102936.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u7684Shell\u7f16\u7a0b\u3001\u53d8\u91cf\u3001\u7528\u6237\u4e0e\u7ec4\u7ba1\u7406\u3001\u547d\u4ee4\u66ff\u6362\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=102936"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102936\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=102936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=102936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=102936"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=102936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}