{"id":2154,"date":"2015-05-16T23:08:48","date_gmt":"2015-05-16T15:08:48","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2154"},"modified":"2015-05-16T23:08:48","modified_gmt":"2015-05-16T15:08:48","slug":"linux%e4%b8%8b%e7%9a%84%e4%b8%80%e4%ba%9b%e4%bd%bf%e7%94%a8%e7%bb%8f%e9%aa%8c%e5%b0%8f%e7%bb%93_3","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2154.html","title":{"rendered":"Linux\u4e0b\u7684\u4e00\u4e9b\u4f7f\u7528\u7ecf\u9a8c\u5c0f\u7ed3_3"},"content":{"rendered":"<p><a href=\"https:\/\/linux.cn\/article-5438-1.html\" target=\"_blank\">11\u4e2a\u8ba9\u4f60\u5403\u60ca\u7684 Linux \u7ec8\u7aef\u547d\u4ee4 &#8211; \u6280\u672f<\/a><\/p>\n<p>==<\/p>\n<p><strong>\u5728<\/strong><strong>Linux<\/strong><strong>\u4e0b\u67e5\u770b\u67d0\u4e00\u8fdb\u7a0b\u7684\u7edd\u5bf9\u8def\u5f84\u4fe1\u606f<\/strong><\/p>\n<h6>\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/h6>\n<ul>\n<li>linux get the full exe path of a process<\/li>\n<\/ul>\n<h6>\u53c2\u8003\u89e3\u7b54\uff1a<\/h6>\n<p>Try this:<\/p>\n<pre class=\"lang:default decode:true\">$ ls -l \/proc\/8505\/exe<\/pre>\n<p>Or if you don&#8217;t want to parse the output of ls, just do:<\/p>\n<pre class=\"lang:default decode:true\">$ readlink \/proc\/8505\/exe<\/pre>\n<p>or<\/p>\n<pre class=\"lang:default decode:true\">$ realpath \/proc\/8505\/exe<\/pre>\n<p>==<\/p>\n<pre class=\"lang:default decode:true\">abs_path=$(sudo readlink \"\/proc\/$pid\/exe\" | sed 's\/ (deleted)\/\/')<\/pre>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/unix.stackexchange.com\/questions\/8503\/is-it-possible-to-find-the-path-of-a-running-program\" target=\"_blank\">http:\/\/unix.stackexchange.com\/questions\/8503\/is-it-possible-to-find-the-path-of-a-running-program<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/606041\/how-do-i-get-the-path-of-a-process-in-unix-linux\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/606041\/how-do-i-get-the-path-of-a-process-in-unix-linux<\/a><\/li>\n<li><a href=\"https:\/\/www.kernel.org\/doc\/Documentation\/filesystems\/proc.txt\" target=\"_blank\">https:\/\/www.kernel.org\/doc\/Documentation\/filesystems\/proc.txt<\/a><\/li>\n<li><a href=\"http:\/\/unix.stackexchange.com\/questions\/197854\/how-does-the-proc-pid-exe-symlink-differ-from-ordinary-symlinks\" target=\"_blank\">http:\/\/unix.stackexchange.com\/questions\/197854\/how-does-the-proc-pid-exe-symlink-differ-from-ordinary-symlinks<\/a><\/li>\n<li>=<\/li>\n<li><a href=\"http:\/\/superuser.com\/questions\/299678\/how-to-find-out-from-which-folder-a-process-is-running\" target=\"_blank\">linux &#8211; How to find out from which folder a process is running?<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<p>#sed\/awk\u7684\u4e00\u4e9b\u4f8b\u5b50<\/p>\n<p><a href=\"http:\/\/docstore.mik.ua\/orelly\/unix3\/sedawk\/ch03_02.htm\" target=\"_blank\">A Line-Up of Characters (sed &amp; awk, Second Edition)<\/a><\/p>\n<p>#xargs\u547d\u4ee4\u7684\u4e00\u4e9b\u4f8b\u5b50<\/p>\n<p><a href=\"https:\/\/jonlabelle.com\/snippets\/view\/shell\/xargs-command\" target=\"_blank\">https:\/\/jonlabelle.com\/snippets\/view\/shell\/xargs-command<\/a><\/p>\n<p>#\u627e\u51fa\u672c\u8fdb\u7a0b\u8fd0\u884c\u5728\u54ea\u4e2a\u7528\u6237<\/p>\n<pre class=\"lang:default decode:true\">exec_user=$(ps -o user --no-headers \"$pid\")<\/pre>\n<p>#\u8fc7\u6ee4\u6389\u7a7a\u884c<\/p>\n<pre class=\"lang:default decode:true\">echo \"$tmp\" | grep -v '^$'<\/pre>\n<p><strong>Linux<\/strong><strong>\u4e0b\u76f8\u5173\u4fe1\u606f\u7684\u83b7\u53d6{\u901a\u8fc7\/proc\u6587\u4ef6\u7cfb\u7edf}<\/strong><\/p>\n<ul>\n<li>\u83b7\u53d6\u67d0\u4e00\u8fdb\u7a0b\u5bf9\u5e94\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u7edd\u5bf9\u8def\u5f84\uff1b<\/li>\n<li>\u83b7\u53d6\u67d0\u4e00\u8fdb\u7a0b\u5bf9\u5e94\u7684\u5e94\u7528\u7a0b\u5e8f\u6240\u5728\u76ee\u5f55\uff1b<\/li>\n<li>\u547d\u4ee4\u884c\u53c2\u6570\u3001\u73af\u5883\u53d8\u91cf\u4fe1\u606f\u3001CPU\u3001\u5185\u5b58\u7b49\u72b6\u6001\u4fe1\u606f\uff1b<\/li>\n<li>\u2026\u2026<\/li>\n<\/ul>\n<h6><span style=\"color: #0000ff;\"><strong>Process-Specific Subdirectories<\/strong><\/span><\/h6>\n<p>The directory\u00a0 \/proc\u00a0 contains\u00a0 (among other things) one subdirectory for each process running on the system, which is named after the process ID (PID).<\/p>\n<p>The link\u00a0 self\u00a0 points\u00a0 to\u00a0 the\u00a0 process reading the file system. Each process subdirectory has the entries listed in Table 1-1.<\/p>\n<p>Table 1-1: Process specific entries in \/proc<\/p>\n<pre class=\"lang:default decode:true\">File\t\tContent\nclear_refs\tClears page referenced bits shown in smaps output\ncmdline\t\tCommand line arguments\ncpu\t\tCurrent and last cpu in which it was executed\t(2.4)(smp)\ncwd\t\tLink to the current working directory\nenviron\t\tValues of environment variables\nexe\t\tLink to the executable of this process\nfd\t\tDirectory, which contains all file descriptors\nmaps\t\tMemory maps to executables and library files\t(2.4)\nmem\t\tMemory held by this process\nroot\t\tLink to the root directory of this process\nstat\t\tProcess status\nstatm\t\tProcess memory status information\nstatus\t\tProcess status in human readable form\nwchan\t\tIf CONFIG_KALLSYMS is set, a pre-decoded wchan\npagemap\t\tPage table\nstack\t\tReport full stack trace, enable via CONFIG_STACKTRACE\nsmaps\t\ta extension based on maps, showing the memory consumption of each mapping and flags associated with it\nnuma_maps\tan extension based on maps, showing the memory locality and binding policy as well as mem usage (in pages) of each mapping.<\/pre>\n<p>For example, to get the status information of a process, all you have to do is read the file \/proc\/PID\/status.<\/p>\n<pre class=\"lang:default decode:true \">$ cat \/proc\/self\/status\n# \u4f60\u80fd\u591f\u901a\u8fc7\u4e0a\u9762\u7684\u547d\u4ee4\u80fd\u591f\u83b7\u53d6\u548cps\u547d\u4ee4\u51e0\u4e4e\u76f8\u540c(\u751a\u81f3\u66f4\u4e30\u5bcc)\u7684\u4fe1\u606f\uff0c\u5b9e\u9645\u4e0aps\u547d\u4ee4\u4e5f\u5c31\u662f\u901a\u8fc7\u8bfb\u53d6 \/proc \u6587\u4ef6\u7cfb\u7edf\u6765\u83b7\u53d6\u4fe1\u606f\u7684<\/pre>\n<p>\/proc \u6587\u4ef6\u7cfb\u7edf\u76842\u5927\u4f5c\u7528\uff1a<\/p>\n<ol>\n<li>\u6536\u96c6\u7cfb\u7edf\u4fe1\u606f\uff1b<\/li>\n<li>\u4fee\u6539\u7cfb\u7edf\u53c2\u6570\u3002<\/li>\n<\/ol>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"https:\/\/www.kernel.org\/doc\/Documentation\/filesystems\/proc.txt\" target=\"_blank\">https:\/\/www.kernel.org\/doc\/Documentation\/filesystems\/proc.txt<\/a><\/li>\n<li><a href=\"http:\/\/tldp.org\/LDP\/Linux-Filesystem-Hierarchy\/html\/proc.html\" target=\"_blank\">http:\/\/tldp.org\/LDP\/Linux-Filesystem-Hierarchy\/html\/proc.html<\/a><\/li>\n<li><a href=\"http:\/\/linux.die.net\/man\/5\/proc\" target=\"_blank\">http:\/\/linux.die.net\/man\/5\/proc<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<h5>\u5982\u679c\u76ee\u5f55\u4e0d\u5b58\u5728\u5219\u521b\u5efa<\/h5>\n<p>\u641c\u7d22\u5173\u952e\u5b57\uff1alinux bash if dir not exist then make it<\/p>\n<pre class=\"lang:default decode:true\">result_path=\"${HOME}\/result\"\n[ -d \"$result_path\" ] || mkdir -p \"$result_path\"<\/pre>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/793858\/how-to-mkdir-only-if-a-dir-does-not-already-exist\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/793858\/how-to-mkdir-only-if-a-dir-does-not-already-exist<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/59838\/check-if-a-directory-exists-in-a-shell-script\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/59838\/check-if-a-directory-exists-in-a-shell-script<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/6916559\/test-multiple-file-conditions-in-one-swoop-bash\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/6916559\/test-multiple-file-conditions-in-one-swoop-bash<\/a><\/li>\n<li><a href=\"http:\/\/tldp.org\/LDP\/abs\/html\/fto.html\" target=\"_blank\">http:\/\/tldp.org\/LDP\/abs\/html\/fto.html<\/a><\/li>\n<li><a href=\"http:\/\/ixyzero.com\/blog\/archives\/1225.html\" target=\"_blank\">http:\/\/ixyzero.com\/blog\/archives\/1225.html<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<h5>For\u5faa\u73af\u3001\u6761\u4ef6\u6d4b\u8bd5\u3001\u5b57\u7b26\u4e32\u622a\u53d6<\/h5>\n<ul>\n<li><a href=\"http:\/\/ixyzero.com\/blog\/archives\/406.html\" target=\"_blank\">Linux\u7684shell\u7f16\u5199\u2013for\/while\u5faa\u73af<\/a><\/li>\n<li><a href=\"http:\/\/ixyzero.com\/blog\/archives\/1225.html\" target=\"_blank\">Shell\u6761\u4ef6\u6d4b\u8bd5<\/a><\/li>\n<li><a href=\"http:\/\/ixyzero.com\/blog\/archives\/512.html\" target=\"_blank\">Linux shell\u811a\u672c\u7684\u5b57\u7b26\u4e32\u622a\u53d6\u7b49\u64cd\u4f5c<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<h5>awk\u7684\u4f7f\u7528\u5b66\u4e60<\/h5>\n<p>\u641c\u7d22\u5173\u952e\u5b57\uff1aawk match example<\/p>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/5536018\/how-to-get-match-regex-pattern-using-awk-from-file\">http:\/\/stackoverflow.com\/questions\/5536018\/how-to-get-match-regex-pattern-using-awk-from-file <\/a>\u00a0#Nice<\/li>\n<li><a href=\"http:\/\/www.staff.science.uu.nl\/~oostr102\/docs\/nawk\/nawk_92.html\">http:\/\/www.staff.science.uu.nl\/~oostr102\/docs\/nawk\/nawk_92.html <\/a>\u00a0#Nice2<\/li>\n<li><a href=\"http:\/\/en.wikibooks.org\/wiki\/An_Awk_Primer\/Search_Patterns_(1)\">http:\/\/en.wikibooks.org\/wiki\/An_Awk_Primer\/Search_Patterns_(1)<\/a><\/li>\n<li><a href=\"http:\/\/en.wikibooks.org\/wiki\/An_Awk_Primer\/Search_Patterns_(2)\">http:\/\/en.wikibooks.org\/wiki\/An_Awk_Primer\/Search_Patterns_(2)<\/a><\/li>\n<li><a href=\"http:\/\/www.math.utah.edu\/docs\/info\/gawk_5.html\" target=\"_blank\">AWK Language Programming &#8211; Regular Expressions<\/a><\/li>\n<li><a href=\"http:\/\/www.ibm.com\/developerworks\/library\/l-awk3\/\">http:\/\/www.ibm.com\/developerworks\/library\/l-awk3\/<\/a>\u00a0#Nice<\/li>\n<li><a href=\"http:\/\/docstore.mik.ua\/orelly\/unix3\/sedawk\/ch03_02.htm\">http:\/\/docstore.mik.ua\/orelly\/unix3\/sedawk\/ch03_02.htm<\/a><\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">$ awk '\/gold\/' coins.txt\n$ awk '\/gold\/ {print $5,$6,$7,$8}' coins.txt\n$ awk '{if ($3 &lt; 1980) print $3, \"    \",$5,$6,$7,$8}' coins.txt\n$ awk 'END {print NR,\"coins\"}' coins.txt\n$ awk '\/gold\/{ num_gold++; wt_gold += $2 } END{print num_gold,wt_gold}'\n$ awk -F'\\x01' '{dict[$2]++}; END{for(x in dict) print dict[x]\"\\t\"x}' access.log | sort -nr\n\n$ ls -l | awk 'NR!=1 {s+=$5} END {print \"Average: \" s\/(NR-1)}'\n\n$ awk '\/foo\/ { print $2 }' info.log\n$ awk '$1 ~ \/J\/' info.log\n\n$ echo \"xxx=a yyy=b zzz=c\" | awk '{match($0,\"yyy=([^ ]+)\",a)}END{print a[0],a[1],RSTART,RLENGTH}'\nyyy=b b 7 5\n$ echo \"xxx=a yyy=b zzz=c\" | awk '{match($0,\"yyy=([^ ]+)\",a)}END{print a[0],a[1]}'\nyyy=b b<\/pre>\n<h5>Linux\u4e0b\u5982\u4f55\u5bf9\u538b\u7f29\u8fc7\u7684\u6587\u4ef6\u8fdb\u884c\u5b57\u7b26\u4e32\u67e5\u627e\u64cd\u4f5c<\/h5>\n<ul>\n<li><a href=\"http:\/\/ixyzero.com\/blog\/archives\/2129.html\" target=\"_blank\">Zcat\/Zgrep\/Zdiff<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<h5>Linux\u4e0b\u7684\u65e5\u671f\u683c\u5f0f\u5316<\/h5>\n<h6>\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/h6>\n<ul>\n<li>linux convert english time format to year month day<\/li>\n<li>linux human readable date format<\/li>\n<\/ul>\n<p>\u4ee5\u5982\u4e0b\u7684\u65e5\u5fd7\u4e3a\u4f8b\uff1a<\/p>\n<blockquote><p>May 5 03:28:01 hostname rsyslogd: [origin software=&#8221;rsyslogd&#8221; swVersion=&#8221;6.1.1&#8243; x-pid=&#8221;1111&#8243; x-info=&#8221;http:\/\/www.rsyslog.com&#8221;] rsyslogd was HUPed<\/p><\/blockquote>\n<p>\u5982\u4f55\u628a\u4e0a\u9762\u7684\u65e5\u671f\u5b57\u7b26\u4e32&#8221;May 5 03:28:01&#8243;\u8f6c\u6362\u4e3a&#8221;2015-05-05 03:28:01&#8243;\u8fd9\u6837\u7684\u683c\u5f0f\uff1f<\/p>\n<h6>\u89e3\u51b3\u65b9\u6cd5(date\u547d\u4ee4\u7684-d\u9009\u9879)\uff1a<\/h6>\n<pre class=\"lang:default decode:true\">date_str=$(echo \"$item\" | awk '{print $1,$2,$3}')\ndate=$(date -d \"$date_str\" +'%Y-%m-%d %H:%M:%S')\n\n# date -d@1234567890\nSat Feb 14 07:31:30 CST 2009\n# date -d@1234567890 +'%F %T'\n2009-02-14 07:31:30<\/pre>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/6508819\/convert-date-formats-in-bash\">http:\/\/stackoverflow.com\/questions\/6508819\/convert-date-formats-in-bash<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/3249827\/convert-from-unixtime-at-command-line\">http:\/\/stackoverflow.com\/questions\/3249827\/convert-from-unixtime-at-command-line<\/a><\/li>\n<li><a href=\"http:\/\/unix.stackexchange.com\/questions\/2987\/how-do-i-convert-an-epoch-timestamp-to-a-human-readable-format-on-the-cli\">http:\/\/unix.stackexchange.com\/questions\/2987\/how-do-i-convert-an-epoch-timestamp-to-a-human-readable-format-on-the-cli<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/11021460\/getting-human-readable-date-from-epoch-into-variable\">http:\/\/stackoverflow.com\/questions\/11021460\/getting-human-readable-date-from-epoch-into-variable<\/a><\/li>\n<li><a href=\"http:\/\/unix.stackexchange.com\/questions\/107750\/how-to-parse-iso8601-dates-with-linux-date-command\">http:\/\/unix.stackexchange.com\/questions\/107750\/how-to-parse-iso8601-dates-with-linux-date-command<\/a><\/li>\n<\/ul>\n<p>==<\/p>\n<h5>MySQL\u7ec8\u7aef\u63d0\u793a\u7b26<\/h5>\n<p>\u4e4b\u524d\u56e0\u4e3a\u67d0\u4e2a\u673a\u4f1a\uff0c\u9605\u8bfb\u4e86MySQL\u5ba2\u6237\u7aef\u7684\u6e90\u7801\uff0c\u7528\u4e8e\u8bb0\u5f55\u901a\u8fc7MySQL\u5ba2\u6237\u7aef\u4ea4\u4e92\u5f0f\u6267\u884c\u7684\u547d\u4ee4\uff0c\u5176\u4e2d\u6709\u4e2a\u9700\u6c42\u5c31\u662f\uff1a\u8bb0\u5f55\u5728\u6267\u884c\u5f53\u524d\u547d\u4ee4\u65f6\u7684\u8fde\u63a5\u4fe1\u606f\uff08\u4e3b\u673a\u540d\u3001\u7528\u6237\u540d\u5e93\u540d\u3001\u8868\u540d\u2026\u2026\u7b49\u4fe1\u606f\uff09\u3002\u4f46\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u547d\u4ee4\u5176\u5b9e\u4e5f\u662f\u9700\u8981\u8fd9\u6837\u7684\u63d0\u793a\u7684\u2014\u2014\u77e5\u9053\u81ea\u5df1\u73b0\u5728\u6240\u5904\u7684\u4f4d\u7f6e\uff0c\u9632\u6b62\u8bef\u64cd\u4f5c\u3002\u4e00\u4e2a\u7b80\u5355\u7684\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u2014\u2014\u4fee\u6539MySQL\u7ec8\u7aef\u63d0\u793a\u7b26\uff08MYSQL_PS1\uff09\u3002<\/p>\n<h6>\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/h6>\n<ul>\n<li>MySQL prompt<\/li>\n<li>MySQL MYSQL_PS1<\/li>\n<\/ul>\n<h6>\u53c2\u8003\u89e3\u7b54\uff1a<\/h6>\n<p>\u4e00\u3001\u5728\u00a0~\/.bash_profile \u6216 ~\/.bashrc\u00a0\u4e2d\u6dfb\u52a0\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"lang:default decode:true\">export MYSQL_PS1=\"\\u@\\h [\\d]&gt; \"<\/pre>\n<p>\u4e8c\u3001\u5728\u00a0my.cnf\u00a0\u4e2d\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u9009\u9879\u00a0prompt=&#8217;\\u@\\h &gt;&#8217;\u00a0\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\uff01\u53e6\u4e00\u4e2a\u4e0d\u9519\u7684 my.cnf\u00a0\u7684\u914d\u7f6e\uff1a<\/p>\n<pre class=\"lang:default decode:true\">[mysql]\nprompt = \\\\R:\\\\m:\\\\s\\_\\h:\\p\\_\\\\d&gt;<\/pre>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/mysql-commands.html\">https:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/mysql-commands.html<\/a><\/li>\n<li><a href=\"http:\/\/www.thegeekstuff.com\/2010\/02\/mysql_ps1-6-examples-to-make-your-mysql-prompt-like-angelina-jolie\/\">http:\/\/www.thegeekstuff.com\/2010\/02\/mysql_ps1-6-examples-to-make-your-mysql-prompt-like-angelina-jolie\/<\/a><\/li>\n<li>=<\/li>\n<li><a href=\"http:\/\/ronaldbradford.com\/blog\/correctly-setting-your-mysql-prompt-using-sudo-2014-05-22\/\">http:\/\/ronaldbradford.com\/blog\/correctly-setting-your-mysql-prompt-using-sudo-2014-05-22\/<\/a><\/li>\n<li><a href=\"http:\/\/www.dev-garden.org\/2011\/07\/20\/put-the-database-hostname-in-your-mysql-prompt\/\">http:\/\/www.dev-garden.org\/2011\/07\/20\/put-the-database-hostname-in-your-mysql-prompt\/<\/a><\/li>\n<li><a href=\"http:\/\/www.codediesel.com\/mysql\/changing-mysql-clients-default-prompt\/\">http:\/\/www.codediesel.com\/mysql\/changing-mysql-clients-default-prompt\/<\/a><\/li>\n<li>=<\/li>\n<li><a href=\"https:\/\/github.com\/romuald\/config\/blob\/master\/zsh\/zshrc\">https:\/\/github.com\/romuald\/config\/blob\/master\/zsh\/zshrc<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>11\u4e2a\u8ba9\u4f60\u5403\u60ca\u7684 Linux \u7ec8\u7aef\u547d\u4ee4 &#8211; \u6280\u672f == \u5728Linux\u4e0b\u67e5\u770b\u67d0\u4e00\u8fdb\u7a0b\u7684\u7edd\u5bf9\u8def\u5f84\u4fe1\u606f  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,7,12],"tags":[30,516,19],"class_list":["post-2154","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-programing","category-tools","tag-linux","tag-mysql_ps1","tag-tips"],"views":4744,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2154"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2154\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}