{"id":63037,"date":"2026-01-21T08:29:02","date_gmt":"2026-01-21T00:29:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/63037.html"},"modified":"2026-01-21T08:29:02","modified_gmt":"2026-01-21T00:29:02","slug":"linux%e8%bf%9b%e9%98%b6%ef%bc%9a%e7%8e%a9%e8%bd%ac%e6%96%87%e4%bb%b6%e4%b8%8e%e6%9d%83%e9%99%90%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/63037.html","title":{"rendered":"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406"},"content":{"rendered":"<p> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121002854-69701dc6d7ef5.jpg\" alt=\"\u5934\u50cf\" \/> <\/p>\n<p> <font color=\"#ff4500\" size=\"4\"><b>&#x1f525; \u7801\u9014CQ&#xff1a;<\/b><\/font><br \/>\n <font size=\"4\">\u4e2a\u4eba\u4e3b\u9875<\/font> <\/p>\n<p> <font color=\"#1E90FF\" size=\"3\">\u2728 \u4e2a\u4eba\u4e13\u680f&#xff1a;<\/font><br \/>\n <font size=\"3\">\u300aLinux\u300b<\/font><br \/>\n <font color=\"#cccccc\" size=\"3\"> | <\/font><br \/>\n <font size=\"3\">\u300a\u7ecf\u5178\u7b97\u6cd5\u9898\u96c6\u300b<\/font><br \/>\n <font size=\"3\">\u300aC&#043;&#043;\u300b<\/font><br \/>\n <font size=\"3\">\u300aQT\u300b<\/font> <\/p>\n<p> <font color=\"#4169E1\" size=\"3\">\u2728 \u8ffd\u98ce\u8d76\u6708\u83ab\u505c\u7559&#xff0c;\u65e0\u829c\u5c3d\u5904\u662f\u6625\u5c71!<\/font> <\/p>\n<p> <font color=\"#ff4500\" size=\"3\"><b>&#x1f496; \u6b22\u8fce\u5173\u6ce8&#xff0c;\u4e00\u8d77\u4ea4\u6d41\u5b66\u4e60 &#x1f496;<\/b><\/font> <\/p>\n<p>  <font color=\"#666\" size=\"2\">&#x1f4cc; \u5173\u6ce8\u540e\u53ef\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6C&#043;&#043;\/Qt\/\u7b97\u6cd5\u5e72\u8d27\u66f4\u65b0<\/font>  <\/p>\n<h2>&#x1f31f;<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121002854-69701dc6e5c9c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>&#x1f680; \u7b2c\u4e00\u7ae0&#xff1a;\u6b22\u8fce\u56de\u5230Linux\u547d\u4ee4\u884c\u4e16\u754c&#xff01;<\/h3>\n<p>\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u4e00\u8d77\u8ba4\u8bc6\u4e86Linux\u7684\u57fa\u7840\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4&#xff0c;\u662f\u4e0d\u662f\u5df2\u7ecf\u5bf9\u90a3\u4e2a\u9ed1\u4e4e\u4e4e\u7684\u7ec8\u7aef\u7a97\u53e3\u6709\u4e86\u4e9b\u8bb8\u4eb2\u5207\u611f&#xff1f;\u4eca\u5929&#xff0c;\u6211\u4eec\u5c06\u7ee7\u7eed\u6df1\u5165&#xff0c;\u5b66\u4e60\u66f4\u591a\u5b9e\u7528\u6307\u4ee4&#xff0c;\u5c24\u5176\u662fLinux\u4e2d\u81f3\u5173\u91cd\u8981\u7684\u6587\u4ef6\u64cd\u4f5c\u548c\u6743\u9650\u7ba1\u7406\u3002<\/p>\n<p>&#x1f3a9; \u8fdb\u9636\u601d\u7ef4&#xff1a;\u5982\u679c\u8bf4\u57fa\u7840\u547d\u4ee4\u662fLinux\u7684\u201c\u5355\u8bcd\u201d&#xff0c;\u90a3\u4e48\u4eca\u5929\u7684\u547d\u4ee4\u5c31\u662f\u201c\u8bed\u6cd5\u201d&#xff0c;\u800c\u6743\u9650\u7cfb\u7edf\u5219\u662f\u6574\u4e2a\u8bed\u8a00\u7684\u201c\u89c4\u5219\u4f53\u7cfb\u201d\u3002<\/p>\n<h4>\u4e00\u3001\u6e29\u6545\u77e5\u65b0&#xff1a;\u5feb\u901f\u56de\u987e<\/h4>\n<p>\u8fd8\u8bb0\u5f97\u8fd9\u4e9b\u547d\u4ee4\u5417&#xff1f;<\/p>\n<p><span class=\"token function\">ls<\/span> -la          <span class=\"token comment\"># \u67e5\u770b\u8be6\u7ec6\u4fe1\u606f<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~            <span class=\"token comment\"># \u56de\u5bb6<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p a\/b\/c  <span class=\"token comment\"># \u521b\u5efa\u591a\u5c42\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">rm<\/span> -rf danger   <span class=\"token comment\"># \u5371\u9669&#xff01;\u614e\u7528&#xff01;<\/span><\/p>\n<p>\u5f88\u597d&#xff01;\u73b0\u5728\u8ba9\u6211\u4eec\u8fdb\u5165\u4eca\u5929\u7684\u4e3b\u83dc\u3002<\/p>\n<hr \/>\n<h3>&#x1f4c1; \u7b2c\u4e8c\u7ae0&#xff1a;\u9ad8\u7ea7\u6587\u4ef6\u64cd\u4f5c<\/h3>\n<h4>\u4e00\u3001\u590d\u5236\u4e0e\u79fb\u52a8\u7684\u827a\u672f<\/h4>\n<h5>1. cp&#xff1a;\u4e0d\u53ea\u662f\u590d\u5236&#xff0c;\u66f4\u662f\u5907\u4efd\u7684\u8d77\u70b9<\/h5>\n<p>\u57fa\u672c\u7528\u6cd5&#xff1a;<\/p>\n<p><span class=\"token function\">cp<\/span> source.txt destination.txt          <span class=\"token comment\"># \u590d\u5236\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> -r source_dir\/ destination_dir\/     <span class=\"token comment\"># \u590d\u5236\u6574\u4e2a\u76ee\u5f55<\/span><\/p>\n<p>\u9ad8\u7ea7\u6280\u5de7&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5907\u4efd\u65f6\u4fdd\u7559\u6240\u6709\u5c5e\u6027&#xff08;\u6743\u9650\u3001\u65f6\u95f4\u7b49&#xff09;<\/span><br \/>\n<span class=\"token function\">cp<\/span> -p important_file.txt backup\/<\/p>\n<p><span class=\"token comment\"># \u4ea4\u4e92\u5f0f\u590d\u5236&#xff0c;\u8986\u76d6\u524d\u8be2\u95ee<\/span><br \/>\n<span class=\"token function\">cp<\/span> -i *.txt backup\/<\/p>\n<p><span class=\"token comment\"># \u53ea\u590d\u5236\u66f4\u65b0\u7684\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> -u source\/*.log backup\/<\/p>\n<p><span class=\"token comment\"># \u8be6\u7ec6\u6a21\u5f0f&#xff0c;\u663e\u793a\u590d\u5236\u8fc7\u7a0b<\/span><br \/>\n<span class=\"token function\">cp<\/span> -v file1 file2 file3 destination\/<\/p>\n<p><span class=\"token comment\"># \u590d\u5236\u7b26\u53f7\u94fe\u63a5\u672c\u8eab&#xff0c;\u800c\u4e0d\u662f\u6307\u5411\u7684\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> -d symbolic_link backup\/<\/p>\n<p>\u5b9e\u7528\u573a\u666f&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5907\u4efd\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> -p \/etc\/nginx\/nginx.conf \/etc\/nginx\/nginx.conf.backup<\/p>\n<p><span class=\"token comment\"># \u6279\u91cf\u590d\u5236\u56fe\u7247\u5e76\u91cd\u547d\u540d<\/span><br \/>\n<span class=\"token function\">cp<\/span> photo.jpg vacation\/photo_2023.jpg<\/p>\n<h5>2. mv&#xff1a;\u79fb\u52a8\u3001\u91cd\u547d\u540d\u3001\u8fd8\u662f\u8986\u76d6&#xff1f;<\/h5>\n<p>mv\u547d\u4ee4\u6709\u4e09\u91cd\u8eab\u4efd&#xff0c;\u5168\u770b\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4ec0\u4e48&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u91cd\u547d\u540d\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">mv<\/span> old_name.txt new_name.txt<\/p>\n<p><span class=\"token comment\"># 2. \u79fb\u52a8\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">mv<\/span> file.txt \/home\/user\/Documents\/<\/p>\n<p><span class=\"token comment\"># 3. \u79fb\u52a8\u5e76\u91cd\u547d\u540d<\/span><br \/>\n<span class=\"token function\">mv<\/span> file.txt \/home\/user\/new_name.txt<\/p>\n<p><span class=\"token comment\"># 4. \u79fb\u52a8\u591a\u4e2a\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">mv<\/span> file1.txt file2.txt file3.txt destination_folder\/<\/p>\n<p><span class=\"token comment\"># 5. \u4ea4\u4e92\u5f0f\u79fb\u52a8&#xff08;\u8986\u76d6\u524d\u8be2\u95ee&#xff09;<\/span><br \/>\n<span class=\"token function\">mv<\/span> -i important_file.txt maybe_existing_file.txt<\/p>\n<p>&#x1f4a1; \u5c0f\u8d34\u58eb&#xff1a;mv\u5b9e\u9645\u4e0a\u662f\u201c\u79fb\u52a8\u201d\u800c\u975e\u201c\u590d\u5236&#043;\u5220\u9664\u201d&#xff0c;\u6240\u4ee5\u901f\u5ea6\u6781\u5feb&#xff0c;\u5373\u4f7f\u5927\u6587\u4ef6\u4e5f\u80fd\u77ac\u95f4\u5b8c\u6210\u3002<\/p>\n<h4>\u4e8c\u3001\u6587\u4ef6\u6bd4\u8f83&#xff1a;diff \u2014\u2014 \u627e\u4e0d\u540c\u9ad8\u624b<\/h4>\n<p><span class=\"token comment\"># \u6bd4\u8f83\u4e24\u4e2a\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">diff<\/span> file_v1.txt file_v2.txt<\/p>\n<p><span class=\"token comment\"># \u5e76\u6392\u663e\u793a\u5dee\u5f02<\/span><br \/>\n<span class=\"token function\">diff<\/span> -y file1.txt file2.txt<\/p>\n<p><span class=\"token comment\"># \u7edf\u4e00\u683c\u5f0f&#xff0c;\u66f4\u6613\u8bfb<\/span><br \/>\n<span class=\"token function\">diff<\/span> -u old_version.c new_version.c<\/p>\n<p><span class=\"token comment\"># \u6bd4\u8f83\u4e24\u4e2a\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">diff<\/span> -r directory1\/ directory2\/<\/p>\n<p>\u5b9e\u9645\u5e94\u7528&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u4e86\u54ea\u4e9b\u5730\u65b9<\/span><br \/>\n<span class=\"token function\">diff<\/span> -u \/etc\/nginx\/nginx.conf.orig \/etc\/nginx\/nginx.conf<\/p>\n<p><span class=\"token comment\"># \u751f\u6210\u8865\u4e01\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">diff<\/span> -u old_code.c new_code.c <span class=\"token operator\">&gt;<\/span> fix_bug.patch<\/p>\n<h4>\u4e09\u3001\u94fe\u63a5\u6587\u4ef6&#xff1a;ln \u2014\u2014 \u6587\u4ef6\u7684\u201c\u5feb\u6377\u65b9\u5f0f\u201d<\/h4>\n<p>Linux\u6709\u4e24\u79cd\u94fe\u63a5&#xff1a;<\/p>\n<ul>\n<li>\u786c\u94fe\u63a5&#xff1a;\u540c\u4e00\u4e2a\u6587\u4ef6\u7684\u591a\u4e2a\u540d\u5b57&#xff08;\u50cf\u5206\u8eab&#xff09;<\/li>\n<li>\u8f6f\u94fe\u63a5&#xff1a;\u771f\u6b63\u7684\u5feb\u6377\u65b9\u5f0f&#xff08;\u50cf\u6307\u9488&#xff09;<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u521b\u5efa\u786c\u94fe\u63a5<\/span><br \/>\n<span class=\"token function\">ln<\/span> original.txt hardlink.txt<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u8f6f\u94fe\u63a5&#xff08;\u7b26\u53f7\u94fe\u63a5&#xff09;<\/span><br \/>\n<span class=\"token function\">ln<\/span> -s \/path\/to\/original symlink_name<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u94fe\u63a5\u6307\u5411<\/span><br \/>\n<span class=\"token function\">ls<\/span> -l symlink_name<br \/>\nreadlink symlink_name<\/p>\n<p>\u5bf9\u6bd4\u7406\u89e3&#xff1a;<\/p>\n<p>\u539f\u59cb\u6587\u4ef6&#xff1a;\u6211\u662f\u4e00\u4efd\u91cd\u8981\u6587\u6863<br \/>\n\u786c\u94fe\u63a5&#xff1a;\u6211\u4e5f\u662f\u90a3\u4efd\u6587\u6863&#xff08;\u540c\u4e00\u4e2a\u5b9e\u4f53&#xff09;<br \/>\n\u8f6f\u94fe\u63a5&#xff1a;\u6211\u6307\u5411\u90a3\u4efd\u6587\u6863&#xff08;\u53ea\u662f\u4e00\u4e2a\u8def\u5f84&#xff09;<\/p>\n<hr \/>\n<h3>&#x1f510; \u7b2c\u4e09\u7ae0&#xff1a;Linux\u6743\u9650\u7cfb\u7edf\u6df1\u5ea6\u89e3\u6790<\/h3>\n<h4>\u4e00\u3001\u7406\u89e3\u6743\u9650&#xff1a;Linux\u7684\u201c\u95e8\u7981\u7cfb\u7edf\u201d<\/h4>\n<p>\u5f53\u4f60\u6267\u884cls -l\u65f6&#xff0c;\u770b\u5230\u7684\u90a3\u4e9b\u795e\u79d8\u5b57\u6bcd\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;<\/p>\n<p>-rwxr-xr&#8211; 1 user group 4096 Jan 1 12:00 myfile<br \/>\n\u2191 \u2191\u2191\u2191\u2191\u2191\u2191\u2191\u2191<br \/>\n\u2502 \u2514\u2500\u2500 \u6743\u9650\u90e8\u5206<br \/>\n\u2514\u2500\u2500 \u6587\u4ef6\u7c7b\u578b<\/p>\n<h5>1. \u6587\u4ef6\u7c7b\u578b\u6807\u8bc6\u7b26<\/h5>\n<ul>\n<li>-&#xff1a;\u666e\u901a\u6587\u4ef6&#xff08;\u6587\u672c\u3001\u56fe\u7247\u3001\u4e8c\u8fdb\u5236\u7b49&#xff09;<\/li>\n<li>d&#xff1a;\u76ee\u5f55<\/li>\n<li>l&#xff1a;\u7b26\u53f7\u94fe\u63a5<\/li>\n<li>b&#xff1a;\u5757\u8bbe\u5907&#xff08;\u786c\u76d8\u3001U\u76d8\u7b49&#xff09;<\/li>\n<li>c&#xff1a;\u5b57\u7b26\u8bbe\u5907&#xff08;\u7ec8\u7aef\u3001\u6253\u5370\u673a\u7b49&#xff09;<\/li>\n<li>s&#xff1a;\u5957\u63a5\u5b57\u6587\u4ef6<\/li>\n<li>p&#xff1a;\u7ba1\u9053\u6587\u4ef6<\/li>\n<\/ul>\n<h5>2. \u6743\u9650\u8be6\u89e3<\/h5>\n<p>\u6743\u9650\u5206\u4e3a\u4e09\u7ec4&#xff0c;\u6bcf\u7ec4\u4e09\u4e2a\u5b57\u7b26&#xff1a;<\/p>\n<p>rwx r-x r&#8211;<br \/>\n\u2191\u2191\u2191 \u2191\u2191\u2191 \u2191\u2191\u2191<br \/>\n||| ||| ||\u2514\u2500\u2500 \u5176\u4ed6\u4eba&#xff1a;\u65e0\u6267\u884c\u6743\u9650<br \/>\n||| ||| |\u2514\u2500\u2500 \u5176\u4ed6\u4eba&#xff1a;\u65e0\u5199\u6743\u9650<br \/>\n||| ||| \u2514\u2500\u2500 \u5176\u4ed6\u4eba&#xff1a;\u6709\u8bfb\u6743\u9650<br \/>\n||| ||\u2514\u2500\u2500 \u6240\u5c5e\u7ec4&#xff1a;\u65e0\u6267\u884c\u6743\u9650<br \/>\n||| |\u2514\u2500\u2500 \u6240\u5c5e\u7ec4&#xff1a;\u6709\u5199\u6743\u9650<br \/>\n||| \u2514\u2500\u2500 \u6240\u5c5e\u7ec4&#xff1a;\u6709\u8bfb\u6743\u9650<br \/>\n||\u2514\u2500\u2500 \u6240\u6709\u8005&#xff1a;\u65e0\u6267\u884c\u6743\u9650<br \/>\n|\u2514\u2500\u2500 \u6240\u6709\u8005&#xff1a;\u6709\u5199\u6743\u9650<br \/>\n\u2514\u2500\u2500 \u6240\u6709\u8005&#xff1a;\u6709\u8bfb\u6743\u9650<\/p>\n<h4>\u4e8c\u3001\u6743\u9650\u7684\u6570\u5b57\u8868\u793a\u6cd5<\/h4>\n<p>\u6bcf\u4e2a\u6743\u9650\u90fd\u6709\u5bf9\u5e94\u7684\u6570\u5b57&#xff1a;<\/p>\n<ul>\n<li>r (\u8bfb) &#061; 4<\/li>\n<li>w (\u5199) &#061; 2<\/li>\n<li>x (\u6267\u884c) &#061; 1<\/li>\n<li>\n<ul>\n<li>(\u65e0\u6743\u9650) &#061; 0<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u7ec4\u5408\u8ba1\u7b97&#xff1a;<\/p>\n<p>rwx &#061; 4&#043;2&#043;1 &#061; 7<br \/>\nr-x &#061; 4&#043;0&#043;1 &#061; 5<br \/>\nr&#8211; &#061; 4&#043;0&#043;0 &#061; 4<br \/>\nrw-r&#8211;r&#8211; &#061; 644<br \/>\nrwxr-xr-x &#061; 755<\/p>\n<h4>\u4e09\u3001\u4fee\u6539\u6743\u9650&#xff1a;chmod\u547d\u4ee4\u5927\u5168<\/h4>\n<h5>1. \u6570\u5b57\u6a21\u5f0f&#xff08;\u6700\u5e38\u7528&#xff09;<\/h5>\n<p><span class=\"token function\">chmod<\/span> <span class=\"token number\">755<\/span> script.sh      <span class=\"token comment\"># rwxr-xr-x<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> config.txt     <span class=\"token comment\"># rw-r&#8211;r&#8211;<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> private.key    <span class=\"token comment\"># rw&#8212;&#8212;-<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">777<\/span> test_dir       <span class=\"token comment\"># \u5b8c\u5168\u5f00\u653e&#xff08;\u614e\u7528&#xff01;&#xff09;<\/span><\/p>\n<h5>2. \u7b26\u53f7\u6a21\u5f0f&#xff08;\u66f4\u76f4\u89c2&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> u&#043;x myscript.sh    <span class=\"token comment\"># \u7ed9\u6240\u6709\u8005\u6dfb\u52a0\u6267\u884c\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> g&#043;w shared_file    <span class=\"token comment\"># \u7ed9\u7ec4\u6dfb\u52a0\u5199\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> o&#043;r public.txt     <span class=\"token comment\"># \u7ed9\u5176\u4ed6\u4eba\u6dfb\u52a0\u8bfb\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> a&#043;x everyone.sh    <span class=\"token comment\"># \u7ed9\u6240\u6709\u4eba\u6dfb\u52a0\u6267\u884c\u6743\u9650<\/span><\/p>\n<p><span class=\"token comment\"># \u79fb\u9664\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> u-w sensitive.txt  <span class=\"token comment\"># \u79fb\u9664\u6240\u6709\u8005\u7684\u5199\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> o-rx private_dir\/  <span class=\"token comment\"># \u79fb\u9664\u5176\u4ed6\u4eba\u7684\u8bfb\u548c\u6267\u884c\u6743\u9650<\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u7cbe\u786e\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token assign-left variable\">u<\/span><span class=\"token operator\">&#061;<\/span>rwx,g<span class=\"token operator\">&#061;<\/span>rx,o<span class=\"token operator\">&#061;<\/span> file.txt<br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token assign-left variable\">a<\/span><span class=\"token operator\">&#061;<\/span>rwx open_for_all.sh<\/p>\n<h5>3. \u9012\u5f52\u4fee\u6539\u76ee\u5f55\u6743\u9650<\/h5>\n<p><span class=\"token function\">chmod<\/span> -R <span class=\"token number\">755<\/span> web_root\/      <span class=\"token comment\"># \u9012\u5f52\u4fee\u6539\u6574\u4e2a\u76ee\u5f55\u6811<\/span><br \/>\n<span class=\"token function\">chmod<\/span> -R u&#043;w project\/       <span class=\"token comment\"># \u7ed9\u6240\u6709\u8005\u9012\u5f52\u6dfb\u52a0\u5199\u6743\u9650<\/span><\/p>\n<h4>\u56db\u3001\u4fee\u6539\u6240\u6709\u8005\u548c\u7ec4<\/h4>\n<h5>1. chown&#xff1a;\u6539\u53d8\u6587\u4ef6\u6240\u6709\u8005<\/h5>\n<p><span class=\"token comment\"># \u57fa\u672c\u7528\u6cd5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> newowner file.txt<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> newowner:newgroup file.txt<\/p>\n<p><span class=\"token comment\"># \u9012\u5f52\u4fee\u6539<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> -R www-data:www-data \/var\/www\/html\/<\/p>\n<p><span class=\"token comment\"># \u53ea\u6539\u7ec4<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> :developers project\/<\/p>\n<h5>2. chgrp&#xff1a;\u6539\u53d8\u6587\u4ef6\u6240\u5c5e\u7ec4<\/h5>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">chgrp<\/span> developers source_code\/<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chgrp<\/span> -R www-data web_content\/<\/p>\n<h4>\u4e94\u3001\u7279\u6b8a\u6743\u9650\u4f4d<\/h4>\n<h5>1. SUID&#xff08;Set User ID&#xff09;<\/h5>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u666e\u901a\u7528\u6237\u4ee5\u6587\u4ef6\u6240\u6709\u8005\u7684\u6743\u9650\u6267\u884c<\/li>\n<li>\u8bbe\u7f6e&#xff1a;chmod u&#043;s file \u6216 chmod 4755 file<\/li>\n<li>\u5178\u578b\u5e94\u7528&#xff1a;\/usr\/bin\/passwd<\/li>\n<\/ul>\n<h5>2. SGID&#xff08;Set Group ID&#xff09;<\/h5>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u5728\u76ee\u5f55\u4e2d\u65b0\u5efa\u7684\u6587\u4ef6\u7ee7\u627f\u76ee\u5f55\u7684\u7ec4<\/li>\n<li>\u8bbe\u7f6e&#xff1a;chmod g&#043;s directory \u6216 chmod 2755 directory<\/li>\n<li>\u5178\u578b\u5e94\u7528&#xff1a;\u56e2\u961f\u534f\u4f5c\u76ee\u5f55<\/li>\n<\/ul>\n<h5>3. Sticky Bit&#xff08;\u7c98\u6ede\u4f4d&#xff09;<\/h5>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u53ea\u6709\u6587\u4ef6\u6240\u6709\u8005\u3001\u76ee\u5f55\u6240\u6709\u8005\u6216root\u80fd\u5220\u9664<\/li>\n<li>\u8bbe\u7f6e&#xff1a;chmod &#043;t directory \u6216 chmod 1777 directory<\/li>\n<li>\u5178\u578b\u5e94\u7528&#xff1a;\/tmp\u76ee\u5f55<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\/tmp\u7684\u5178\u578b\u6743\u9650<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">1777<\/span> \/tmp<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7279\u6b8a\u6743\u9650<\/span><br \/>\n<span class=\"token function\">ls<\/span> -ld \/tmp<br \/>\n<span class=\"token comment\"># \u663e\u793a&#xff1a;drwxrwxrwt &#8230; \/tmp<\/span><br \/>\n<span class=\"token comment\"># \u6ce8\u610f\u6700\u540e\u7684t&#xff0c;\u8868\u793a\u7c98\u6ede\u4f4d<\/span><\/p>\n<h4>\u516d\u3001\u9ed8\u8ba4\u6743\u9650\u4e0eumask<\/h4>\n<p>umask\u51b3\u5b9a\u65b0\u5efa\u6587\u4ef6\u7684\u9ed8\u8ba4\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">umask<\/span>          <span class=\"token comment\"># \u67e5\u770b\u5f53\u524dumask<\/span><br \/>\n<span class=\"token builtin class-name\">umask<\/span> 022      <span class=\"token comment\"># \u8bbe\u7f6eumask<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u9ed8\u8ba4\u6743\u9650<\/span><br \/>\n<span class=\"token comment\"># \u6587\u4ef6&#xff1a;666 &#8211; umask<\/span><br \/>\n<span class=\"token comment\"># \u76ee\u5f55&#xff1a;777 &#8211; umask<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b&#xff1a;umask&#061;022<\/span><br \/>\n<span class=\"token comment\"># \u6587\u4ef6&#xff1a;666-022&#061;644 (rw-r&#8211;r&#8211;)<\/span><br \/>\n<span class=\"token comment\"># \u76ee\u5f55&#xff1a;777-022&#061;755 (rwxr-xr-x)<\/span><\/p>\n<hr \/>\n<h3>&#x1f4e6; \u7b2c\u56db\u7ae0&#xff1a;\u538b\u7f29\u4e0e\u6253\u5305<\/h3>\n<h4>\u4e00\u3001tar&#xff1a;Linux\u7684\u201c\u745e\u58eb\u519b\u5200\u201d<\/h4>\n<p>tar\u6700\u521d\u662fTape ARchive&#xff08;\u78c1\u5e26\u5f52\u6863&#xff09;\u7684\u7f29\u5199&#xff0c;\u73b0\u5728\u662f\u6700\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\u3002<\/p>\n<h5>1. \u6253\u5305\u4e0e\u89e3\u5305<\/h5>\n<p><span class=\"token comment\"># \u6253\u5305&#xff08;\u4e0d\u538b\u7f29&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -cvf archive.tar file1 file2 dir1\/<\/p>\n<p><span class=\"token comment\"># \u89e3\u5305<\/span><br \/>\n<span class=\"token function\">tar<\/span> -xvf archive.tar<\/p>\n<p><span class=\"token comment\"># \u89e3\u5305\u5230\u6307\u5b9a\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">tar<\/span> -xvf archive.tar -C \/target\/path\/<\/p>\n<h5>2. \u538b\u7f29\u4e0e\u89e3\u538b<\/h5>\n<p><span class=\"token comment\"># \u4f7f\u7528gzip\u538b\u7f29&#xff08;.tar.gz \u6216 .tgz&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -czvf archive.tar.gz files\/<br \/>\n<span class=\"token function\">tar<\/span> -xzvf archive.tar.gz<\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528bzip2\u538b\u7f29&#xff08;.tar.bz2&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -cjvf archive.tar.bz2 files\/<br \/>\n<span class=\"token function\">tar<\/span> -xjvf archive.tar.bz2<\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528xz\u538b\u7f29&#xff08;.tar.xz&#xff0c;\u538b\u7f29\u7387\u6700\u9ad8&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -cJvf archive.tar.xz files\/<br \/>\n<span class=\"token function\">tar<\/span> -xJvf archive.tar.xz<\/p>\n<h5>3. \u67e5\u770b\u5185\u5bb9\u800c\u4e0d\u89e3\u538b<\/h5>\n<p><span class=\"token function\">tar<\/span> -tzvf archive.tar.gz          <span class=\"token comment\"># \u67e5\u770bgzip\u538b\u7f29\u5305\u5185\u5bb9<\/span><br \/>\n<span class=\"token function\">tar<\/span> -tjvf archive.tar.bz2         <span class=\"token comment\"># \u67e5\u770bbzip2\u538b\u7f29\u5305\u5185\u5bb9<\/span><br \/>\n<span class=\"token function\">tar<\/span> -tJvf archive.tar.xz          <span class=\"token comment\"># \u67e5\u770bxz\u538b\u7f29\u5305\u5185\u5bb9<\/span><\/p>\n<h5>4. \u9ad8\u7ea7\u6280\u5de7<\/h5>\n<p><span class=\"token comment\"># \u53ea\u89e3\u538b\u7279\u5b9a\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">tar<\/span> -xzvf archive.tar.gz path\/to\/specific\/file<\/p>\n<p><span class=\"token comment\"># \u8ffd\u52a0\u6587\u4ef6\u5230\u538b\u7f29\u5305<\/span><br \/>\n<span class=\"token function\">tar<\/span> -rvf archive.tar new_file.txt<\/p>\n<p><span class=\"token comment\"># \u6392\u9664\u7279\u5b9a\u6587\u4ef6\/\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">tar<\/span> -czvf backup.tar.gz &#8211;exclude<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;*.log&#034;<\/span> &#8211;exclude<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;temp\/&#034;<\/span> \/home\/user\/<\/p>\n<p><span class=\"token comment\"># \u57fa\u4e8e\u65f6\u95f4\u5907\u4efd&#xff08;\u53ea\u5907\u4efd24\u5c0f\u65f6\u5185\u4fee\u6539\u7684\u6587\u4ef6&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -czvf daily_backup.tar.gz &#8211;newer-mtime<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;1 day ago&#034;<\/span> \/data\/<\/p>\n<h4>\u4e8c\u3001zip\u548cunzip&#xff1a;\u8de8\u5e73\u53f0\u9009\u62e9<\/h4>\n<p><span class=\"token comment\"># \u538b\u7f29<\/span><br \/>\n<span class=\"token function\">zip<\/span> -r archive.zip folder\/<br \/>\n<span class=\"token function\">zip<\/span> -r -9 maximum_compression.zip large_files\/  <span class=\"token comment\"># \u6700\u5927\u538b\u7f29\u7387<\/span><br \/>\n<span class=\"token function\">zip<\/span> -e encrypted.zip sensitive_data\/            <span class=\"token comment\"># \u52a0\u5bc6\u538b\u7f29<\/span><\/p>\n<p><span class=\"token comment\"># \u89e3\u538b<\/span><br \/>\n<span class=\"token function\">unzip<\/span> archive.zip<br \/>\n<span class=\"token function\">unzip<\/span> archive.zip -d target_directory\/          <span class=\"token comment\"># \u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">unzip<\/span> -l archive.zip                            <span class=\"token comment\"># \u67e5\u770b\u5185\u5bb9\u800c\u4e0d\u89e3\u538b<\/span><br \/>\n<span class=\"token function\">unzip<\/span> -t archive.zip                            <span class=\"token comment\"># \u6d4b\u8bd5\u538b\u7f29\u5305\u5b8c\u6574\u6027<\/span><\/p>\n<h4>\u4e09\u3001\u5176\u4ed6\u538b\u7f29\u5de5\u5177<\/h4>\n<p><span class=\"token comment\"># gzip&#xff08;\u901a\u5e38\u7528\u4e8e\u5355\u4e2a\u6587\u4ef6&#xff09;<\/span><br \/>\n<span class=\"token function\">gzip<\/span> large_file.log<br \/>\ngunzip large_file.log.gz<\/p>\n<p><span class=\"token comment\"># bzip2&#xff08;\u538b\u7f29\u7387\u6bd4gzip\u9ad8&#xff09;<\/span><br \/>\n<span class=\"token function\">bzip2<\/span> big_file.txt<br \/>\nbunzip2 big_file.txt.bz2<\/p>\n<p><span class=\"token comment\"># xz&#xff08;\u538b\u7f29\u7387\u6700\u9ad8&#xff0c;\u4f46\u8f83\u6162&#xff09;<\/span><br \/>\nxz huge_file.data<br \/>\nunxz huge_file.data.xz<\/p>\n<hr \/>\n<h3>&#x1f5a5;\ufe0f \u7b2c\u4e94\u7ae0&#xff1a;\u7cfb\u7edf\u76d1\u63a7\u4e0e\u8fdb\u7a0b\u7ba1\u7406<\/h3>\n<h4>\u4e00\u3001top\u548chtop&#xff1a;\u5b9e\u65f6\u7cfb\u7edf\u76d1\u63a7<\/h4>\n<h5>1. top&#xff1a;\u7ecf\u5178\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177<\/h5>\n<p><span class=\"token function\">top<\/span><\/p>\n<p>\u5728top\u754c\u9762\u4e2d&#xff1a;<\/p>\n<ul>\n<li>\u63091&#xff1a;\u663e\u793a\u6bcf\u4e2aCPU\u6838\u5fc3\u7684\u4f7f\u7528\u60c5\u51b5<\/li>\n<li>\u6309M&#xff1a;\u6309\u5185\u5b58\u4f7f\u7528\u6392\u5e8f<\/li>\n<li>\u6309P&#xff1a;\u6309CPU\u4f7f\u7528\u6392\u5e8f<\/li>\n<li>\u6309k&#xff1a;\u6740\u6b7b\u8fdb\u7a0b&#xff08;\u8f93\u5165PID&#xff09;<\/li>\n<li>\u6309q&#xff1a;\u9000\u51fa<\/li>\n<\/ul>\n<h5>2. htop&#xff1a;top\u7684\u589e\u5f3a\u7248&#xff08;\u9700\u8981\u5b89\u88c5&#xff09;<\/h5>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">htop<\/span>    <span class=\"token comment\"># Ubuntu\/Debian<\/span><br \/>\n<span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> <span class=\"token function\">htop<\/span>    <span class=\"token comment\"># CentOS\/RHEL<\/span><br \/>\n<span class=\"token function\">htop<\/span><\/p>\n<p>htop\u7684\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5f69\u8272\u754c\u9762&#xff0c;\u66f4\u76f4\u89c2<\/li>\n<li>\u9f20\u6807\u652f\u6301<\/li>\n<li>\u6811\u72b6\u89c6\u56fe\u663e\u793a\u8fdb\u7a0b\u5173\u7cfb<\/li>\n<li>\u66f4\u65b9\u4fbf\u7684\u8fdb\u7a0b\u64cd\u4f5c<\/li>\n<\/ul>\n<h4>\u4e8c\u3001ps&#xff1a;\u8fdb\u7a0b\u5feb\u7167<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">ps<\/span> aux<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7279\u5b9a\u7528\u6237\u7684\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">ps<\/span> -u username<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u8fdb\u7a0b\u6811<\/span><br \/>\n<span class=\"token function\">ps<\/span> auxf<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7279\u5b9a\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">ps<\/span> -p PID<br \/>\n<span class=\"token function\">ps<\/span> -C process_name<\/p>\n<p><span class=\"token comment\"># \u81ea\u5b9a\u4e49\u8f93\u51fa\u683c\u5f0f<\/span><br \/>\n<span class=\"token function\">ps<\/span> -eo pid,ppid,cmd,%mem,%cpu &#8211;sort<span class=\"token operator\">&#061;<\/span>-%mem <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> -10<\/p>\n<h4>\u4e09\u3001\u8fdb\u7a0b\u63a7\u5236<\/h4>\n<h5>1. \u53d1\u9001\u4fe1\u53f7<\/h5>\n<p><span class=\"token function\">kill<\/span> PID                  <span class=\"token comment\"># \u53d1\u9001TERM\u4fe1\u53f7&#xff08;\u6b63\u5e38\u7ec8\u6b62&#xff09;<\/span><br \/>\n<span class=\"token function\">kill<\/span> -9 PID               <span class=\"token comment\"># \u53d1\u9001KILL\u4fe1\u53f7&#xff08;\u5f3a\u5236\u7ec8\u6b62&#xff09;<\/span><br \/>\n<span class=\"token function\">kill<\/span> -15 PID              <span class=\"token comment\"># \u53d1\u9001TERM\u4fe1\u53f7&#xff08;\u540ckill PID&#xff09;<\/span><br \/>\n<span class=\"token function\">kill<\/span> -STOP PID            <span class=\"token comment\"># \u6682\u505c\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">kill<\/span> -CONT PID            <span class=\"token comment\"># \u7ee7\u7eed\u88ab\u6682\u505c\u7684\u8fdb\u7a0b<\/span><\/p>\n<p><span class=\"token comment\"># \u901a\u8fc7\u540d\u79f0\u6740\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">pkill<\/span> process_name<br \/>\n<span class=\"token function\">killall<\/span> process_name<\/p>\n<h5>2. \u540e\u53f0\u4e0e\u524d\u53f0<\/h5>\n<p><span class=\"token comment\"># \u8fd0\u884c\u547d\u4ee4\u5e76\u653e\u5230\u540e\u53f0<\/span><br \/>\nlong_running_command <span class=\"token operator\">&amp;<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u540e\u53f0\u4f5c\u4e1a<\/span><br \/>\n<span class=\"token function\">jobs<\/span><\/p>\n<p><span class=\"token comment\"># \u5c06\u540e\u53f0\u4f5c\u4e1a\u8c03\u5230\u524d\u53f0<\/span><br \/>\n<span class=\"token function\">fg<\/span> %1<\/p>\n<p><span class=\"token comment\"># \u6682\u505c\u5f53\u524d\u4f5c\u4e1a&#xff08;\u6309Ctrl&#043;Z&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u7136\u540e\u53ef\u4ee5&#xff1a;<\/span><br \/>\n<span class=\"token function\">bg<\/span> %1      <span class=\"token comment\"># \u5728\u540e\u53f0\u7ee7\u7eed\u8fd0\u884c<\/span><br \/>\n<span class=\"token function\">fg<\/span> %1      <span class=\"token comment\"># \u56de\u5230\u524d\u53f0\u8fd0\u884c<\/span><\/p>\n<h4>\u56db\u3001\u7cfb\u7edf\u4fe1\u606f\u67e5\u8be2<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u7cfb\u7edf\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">uname<\/span> -a                  <span class=\"token comment\"># \u6240\u6709\u7cfb\u7edf\u4fe1\u606f<\/span><br \/>\nlsb_release -a            <span class=\"token comment\"># \u53d1\u884c\u7248\u4fe1\u606f&#xff08;\u9700\u8981\u5b89\u88c5lsb-release&#xff09;<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/etc\/os-release       <span class=\"token comment\"># \u7cfb\u7edf\u7248\u672c\u4fe1\u606f<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770bCPU\u4fe1\u606f<\/span><br \/>\nlscpu<br \/>\n<span class=\"token function\">cat<\/span> \/proc\/cpuinfo<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5185\u5b58\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">free<\/span> -h<br \/>\n<span class=\"token function\">cat<\/span> \/proc\/meminfo<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u78c1\u76d8\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">df<\/span> -h                     <span class=\"token comment\"># \u78c1\u76d8\u4f7f\u7528\u60c5\u51b5<\/span><br \/>\n<span class=\"token function\">du<\/span> -sh directory\/         <span class=\"token comment\"># \u76ee\u5f55\u5927\u5c0f<\/span><br \/>\n<span class=\"token function\">du<\/span> -h &#8211;max-depth<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span> \/home <span class=\"token comment\"># \u67e5\u770b\/home\u4e0b\u5404\u76ee\u5f55\u5927\u5c0f<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7f51\u7edc\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">ifconfig<\/span>                  <span class=\"token comment\"># \u7f51\u7edc\u63a5\u53e3\u4fe1\u606f&#xff08;\u9700\u8981\u5b89\u88c5net-tools&#xff09;<\/span><br \/>\n<span class=\"token function\">ip<\/span> addr                   <span class=\"token comment\"># \u66f4\u73b0\u4ee3\u7684\u66ff\u4ee3\u54c1<\/span><br \/>\n<span class=\"token function\">netstat<\/span> -tuln             <span class=\"token comment\"># \u76d1\u542c\u7aef\u53e3<\/span><br \/>\nss -tuln                  <span class=\"token comment\"># netstat\u7684\u66ff\u4ee3\u54c1<\/span><\/p>\n<hr \/>\n<h3>&#x1f3af; \u7b2c\u516d\u7ae0&#xff1a;\u7efc\u5408\u5b9e\u6218\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<h4>\u4e00\u3001\u5b9e\u7528\u811a\u672c\u793a\u4f8b<\/h4>\n<h5>1. \u5907\u4efd\u811a\u672c<\/h5>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\"># backup.sh &#8211; \u7b80\u5355\u5907\u4efd\u811a\u672c<\/span><\/p>\n<p><span class=\"token assign-left variable\">BACKUP_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/backup\/<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d<span class=\"token variable\">)<\/span><\/span>&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">SOURCE_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/home\/user\/important_data&#034;<\/span><\/p>\n<p><span class=\"token function\">mkdir<\/span> -p <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>&#034;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -czf <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/backup_<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%H%M%S<span class=\"token variable\">)<\/span><\/span>.tar.gz&#034;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$SOURCE_DIR<\/span>&#034;<\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u5907\u4efd\u5b8c\u6210&#xff1a;<span class=\"token variable\">$BACKUP_DIR<\/span>&#034;<\/span><\/p>\n<h5>2. \u65e5\u5fd7\u6e05\u7406\u811a\u672c<\/h5>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\"># clean_logs.sh &#8211; \u6e05\u7406\u65e7\u65e5\u5fd7<\/span><\/p>\n<p><span class=\"token assign-left variable\">LOG_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/var\/log\/myapp&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">DAYS_TO_KEEP<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">30<\/span><\/p>\n<p><span class=\"token function\">find<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$LOG_DIR<\/span>&#034;<\/span> -name <span class=\"token string\">&#034;*.log&#034;<\/span> -mtime &#043;<span class=\"token variable\">$DAYS_TO_KEEP<\/span> -delete<br \/>\n<span class=\"token function\">find<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$LOG_DIR<\/span>&#034;<\/span> -name <span class=\"token string\">&#034;*.log.*.gz&#034;<\/span> -mtime &#043;<span class=\"token variable\">$DAYS_TO_KEEP<\/span> -delete<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u5df2\u6e05\u7406 <span class=\"token variable\">$LOG_DIR<\/span> \u4e2d <span class=\"token variable\">$DAYS_TO_KEEP<\/span> \u5929\u524d\u7684\u65e5\u5fd7&#034;<\/span><\/p>\n<h4>\u4e8c\u3001\u5b89\u5168\u6700\u4f73\u5b9e\u8df5<\/h4>\n<li>\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff1a;\u53ea\u7ed9\u5fc5\u8981\u7684\u6743\u9650<\/li>\n<li>\u5b9a\u671f\u5907\u4efd&#xff1a;\u91cd\u8981\u6570\u636e\u6c38\u8fdc\u8981\u6709\u5907\u4efd<\/li>\n<li>\u4f7f\u7528sudo&#xff1a;\u907f\u514d\u76f4\u63a5\u4f7f\u7528root\u8d26\u6237<\/li>\n<li>\u68c0\u67e5\u811a\u672c&#xff1a;\u8fd0\u884c\u672a\u77e5\u811a\u672c\u524d\u5148\u67e5\u770b\u5185\u5bb9<\/li>\n<li>\u65e5\u5fd7\u76d1\u63a7&#xff1a;\u5b9a\u671f\u68c0\u67e5\u7cfb\u7edf\u65e5\u5fd7<\/li>\n<h4>\u4e09\u3001\u6545\u969c\u6392\u67e5\u6d41\u7a0b<\/h4>\n<li>\u67e5\u770b\u65e5\u5fd7&#xff1a;tail -f \/var\/log\/syslog \u6216\u76f8\u5e94\u5e94\u7528\u65e5\u5fd7<\/li>\n<li>\u68c0\u67e5\u8fdb\u7a0b&#xff1a;ps aux | grep process_name<\/li>\n<li>\u68c0\u67e5\u7aef\u53e3&#xff1a;netstat -tuln | grep port_number<\/li>\n<li>\u68c0\u67e5\u6743\u9650&#xff1a;ls -la \/path\/to\/file<\/li>\n<li>\u68c0\u67e5\u78c1\u76d8&#xff1a;df -h \u548c du -sh<\/li>\n<hr \/>\n<h3>&#x1f31f; \u603b\u7ed3<\/h3>\n<p>\u606d\u559c&#xff01;\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86Linux\u7cfb\u7edf\u7ba1\u7406\u7684\u6838\u5fc3\u6280\u80fd\u3002\u8ba9\u6211\u4eec\u603b\u7ed3\u4e00\u4e0b&#xff1a;<\/p>\n<p>\u2705 \u9ad8\u7ea7\u6587\u4ef6\u64cd\u4f5c&#xff1a;cp, mv, diff, ln \u2705 \u6743\u9650\u7ba1\u7406&#xff1a;chmod, chown, chgrp, \u7279\u6b8a\u6743\u9650\u4f4d \u2705 \u538b\u7f29\u6253\u5305&#xff1a;tar, zip, \u5404\u79cd\u538b\u7f29\u683c\u5f0f \u2705 \u7cfb\u7edf\u76d1\u63a7&#xff1a;top, htop, ps, \u8fdb\u7a0b\u63a7\u5236 \u2705 \u4fe1\u606f\u67e5\u8be2&#xff1a;uname, df, du, free<\/p>\n<p>&#x1f3af; Linux\u54f2\u5b66&#xff1a;\u4e00\u4e2a\u5de5\u5177\u53ea\u505a\u597d\u4e00\u4ef6\u4e8b&#xff0c;\u901a\u8fc7\u7ba1\u9053\u7ec4\u5408\u5b8c\u6210\u590d\u6742\u4efb\u52a1\u3002<\/p>\n<hr \/>\n<p>\u5982\u679c\u89c9\u5f97\u6587\u7ae0\u6709\u5e2e\u52a9&#xff0c;\u6b22\u8fce&#xff1a;<\/p>\n<ul>\n<li>&#x1f44d; \u70b9\u8d5e\u652f\u6301<\/li>\n<li>&#x1f4be; \u6536\u85cf\u5907\u7528<\/li>\n<li>\u2795 \u5173\u6ce8\u4f5c\u8005\u83b7\u53d6\u66f4\u591aLinux\u6559\u7a0b<\/li>\n<li>&#x1f4ac; \u7559\u8a00\u5206\u4eab\u4f60\u7684Linux\u5b66\u4e60\u7ecf\u9a8c<\/li>\n<\/ul>\n<p>\u5b66\u4e60Linux\u662f\u4e00\u573a\u9a6c\u62c9\u677e&#xff0c;\u4e0d\u662f\u77ed\u8dd1\u3002\u6bcf\u5929\u8fdb\u6b65\u4e00\u70b9\u70b9&#xff0c;\u4f60\u5c06\u6210\u4e3a\u771f\u6b63\u7684Linux\u9ad8\u624b&#xff01;<\/p>\n<p>\u63a8\u8350\u8d44\u6e90&#xff1a;<\/p>\n<ul>\n<li>\u4e66\u7c4d&#xff1a;\u300a\u9e1f\u54e5\u7684Linux\u79c1\u623f\u83dc\u300b<\/li>\n<li>\u7f51\u7ad9&#xff1a;Linux\u4e2d\u56fd\u3001\u9177\u58f3<\/li>\n<li>\u7ec3\u4e60&#xff1a;Linux Journey\u3001OverTheWire<\/li>\n<\/ul>\n<p>\u795d\u4f60\u5728Linux\u7684\u4e16\u754c\u91cc\u63a2\u7d22\u6109\u5feb&#xff01;&#x1f427;&#x1f680;<\/p>\n<hr \/>\n<p>\u6211\u4eec\u4e0b\u7bc7\u89c1&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f525; \u7801\u9014CQ&#xff1a; \u4e2a\u4eba\u4e3b\u9875 \u2728 \u4e2a\u4eba\u4e13\u680f&#xff1a; \u300aLinux\u300b |  \u300a\u7ecf\u5178\u7b97\u6cd5\u9898\u96c6\u300b \u300aC\u300b \u300aQT\u300b \u2728 \u8ffd\u98ce\u8d76\u6708\u83ab\u505c\u7559&#xff0c;\u65e0\u829c\u5c3d\u5904\u662f\u6625\u5c71! &#x1f496; \u6b22\u8fce\u5173\u6ce8&#xff0c;\u4e00\u8d77\u4ea4\u6d41\u5b66\u4e60 &#x1f496; &#x1f4cc; \u5173\u6ce8\u540e\u53ef\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6C\/Qt\/\u7b97\u6cd5\u5e72\u8d27\u66f4\u65b0  &#x1f31f; &#x1f680; \u7b2c\u4e00\u7ae0&#xff1a;\u6b22\u8fce\u56de\u5230Linux\u547d\u4ee4\u884c\u4e16\u754c&#xff01;<br \/>\n\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;<\/p>\n","protected":false},"author":2,"featured_media":63035,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,89,58,76,1813,43,44],"topic":[],"class_list":["post-63037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-git","tag-linux","tag-vscode","tag-1813","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \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\/63037.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f525; \u7801\u9014CQ&#xff1a; \u4e2a\u4eba\u4e3b\u9875 \u2728 \u4e2a\u4eba\u4e13\u680f&#xff1a; \u300aLinux\u300b | \u300a\u7ecf\u5178\u7b97\u6cd5\u9898\u96c6\u300b \u300aC\u300b \u300aQT\u300b \u2728 \u8ffd\u98ce\u8d76\u6708\u83ab\u505c\u7559&#xff0c;\u65e0\u829c\u5c3d\u5904\u662f\u6625\u5c71! &#x1f496; \u6b22\u8fce\u5173\u6ce8&#xff0c;\u4e00\u8d77\u4ea4\u6d41\u5b66\u4e60 &#x1f496; &#x1f4cc; \u5173\u6ce8\u540e\u53ef\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6C\/Qt\/\u7b97\u6cd5\u5e72\u8d27\u66f4\u65b0 &#x1f31f; &#x1f680; \u7b2c\u4e00\u7ae0&#xff1a;\u6b22\u8fce\u56de\u5230Linux\u547d\u4ee4\u884c\u4e16\u754c&#xff01; \u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/63037.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-21T00:29:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121002854-69701dc6d7ef5.jpg\" \/>\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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63037.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/63037.html\",\"name\":\"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-21T00:29:02+00:00\",\"dateModified\":\"2026-01-21T00:29:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/63037.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/63037.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63037.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406\"}]},{\"@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\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \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\/63037.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f525; \u7801\u9014CQ&#xff1a; \u4e2a\u4eba\u4e3b\u9875 \u2728 \u4e2a\u4eba\u4e13\u680f&#xff1a; \u300aLinux\u300b | \u300a\u7ecf\u5178\u7b97\u6cd5\u9898\u96c6\u300b \u300aC\u300b \u300aQT\u300b \u2728 \u8ffd\u98ce\u8d76\u6708\u83ab\u505c\u7559&#xff0c;\u65e0\u829c\u5c3d\u5904\u662f\u6625\u5c71! &#x1f496; \u6b22\u8fce\u5173\u6ce8&#xff0c;\u4e00\u8d77\u4ea4\u6d41\u5b66\u4e60 &#x1f496; &#x1f4cc; \u5173\u6ce8\u540e\u53ef\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6C\/Qt\/\u7b97\u6cd5\u5e72\u8d27\u66f4\u65b0 &#x1f31f; &#x1f680; \u7b2c\u4e00\u7ae0&#xff1a;\u6b22\u8fce\u56de\u5230Linux\u547d\u4ee4\u884c\u4e16\u754c&#xff01; \u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/63037.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-21T00:29:02+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121002854-69701dc6d7ef5.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/63037.html","url":"https:\/\/www.wsisp.com\/helps\/63037.html","name":"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-21T00:29:02+00:00","dateModified":"2026-01-21T00:29:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/63037.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/63037.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/63037.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8fdb\u9636\uff1a\u73a9\u8f6c\u6587\u4ef6\u4e0e\u6743\u9650\u7ba1\u7406"}]},{"@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\/63037","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=63037"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/63037\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/63035"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=63037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=63037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=63037"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=63037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}