{"id":25629,"date":"2023-04-27T13:37:55","date_gmt":"2023-12-06T19:04:55","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/"},"modified":"2025-08-11T15:07:47","modified_gmt":"2025-08-11T07:07:47","slug":"linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/","title":{"rendered":"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv"},"content":{"rendered":"<p>\u4ee5\u4e0b\u662f\u4e2d\u6587\u7684\u91ca\u4e49\uff1a<\/p>\n<p>\u5404\u4e2a\u53d1\u884c\u7248\uff08\u5982 Ubuntu\uff0cSparky Linux\uff09\u4e2d\u7684 \/etc\/profile \/etc\/bash.bashrc \/etc\/zsh\/zshenv \u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code># \/etc\/profile: system-wide .profile file for the Bourne shell (sh(1))\r\n# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).\r\n\r\nif [ \"${PS1-}\" ]; then\r\n  if [ \"${BASH-}\" ] &amp;&amp; [ \"$BASH\" != \"\/bin\/sh\" ]; then\r\n    # The file bash.bashrc already sets the default PS1.\r\n    # PS1='\\h:\\w\\$ '\r\n    if [ -f \/etc\/bash.bashrc ]; then\r\n      . \/etc\/bash.bashrc\r\n    fi\r\n  else\r\n    if [ \"`id -u`\" -eq 0 ]; then\r\n      PS1='# '\r\n    else\r\n      PS1='$ '\r\n    fi\r\n  fi\r\nfi\r\n\r\nif [ -d \/etc\/profile.d ]; then\r\n  for i in \/etc\/profile.d\/*.sh; do\r\n    if [ -r $i ]; then\r\n      . $i\r\n    fi\r\n  done\r\n  unset i\r\nfi\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># \/etc\/profile: system-wide .profile file for the Bourne shell (sh(1))\r\n# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).\r\n\r\nif [ \"`id -u`\" -eq 0 ]; then\r\n  PATH=\"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin\"\r\nelse\r\n  PATH=\"\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/local\/games:\/usr\/games\"\r\nfi\r\nexport PATH\r\n\r\nif [ \"${PS1-}\" ]; then\r\n  if [ \"${BASH-}\" ] &amp;&amp; [ \"$BASH\" != \"\/bin\/sh\" ]; then\r\n    # The file bash.bashrc already sets the default PS1.\r\n    # PS1='\\h:\\w\\$ '\r\n    if [ -f \/etc\/bash.bashrc ]; then\r\n      . \/etc\/bash.bashrc\r\n    fi\r\n  else\r\n    if [ \"`id -u`\" -eq 0 ]; then\r\n      PS1='# '\r\n    else\r\n      PS1='$ '\r\n    fi\r\n  fi\r\nfi\r\n\r\nif [ -d \/etc\/profile.d ]; then\r\n  for i in \/etc\/profile.d\/*.sh; do\r\n    if [ -r $i ]; then\r\n      . $i\r\n    fi\r\n  done\r\n  unset i\r\nfi\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># System-wide .bashrc file for interactive bash(1) shells.\r\n\r\n# To enable the settings \/ commands in this file for login shells as well,\r\n# this file has to be sourced in \/etc\/profile.\r\n\r\n# If not running interactively, don't do anything\r\n[ -z \"$PS1\" ] &amp;&amp; return\r\n\r\n# check the window size after each command and, if necessary,\r\n# update the values of LINES and COLUMNS.\r\nshopt -s checkwinsize\r\n\r\n# set variable identifying the chroot you work in (used in the prompt below)\r\nif [ -z \"${debian_chroot:-}\" ] &amp;&amp; [ -r \/etc\/debian_chroot ]; then\r\n    debian_chroot=$(cat \/etc\/debian_chroot)\r\nfi\r\n\r\n# set a fancy prompt (non-color, overwrite the one in \/etc\/profile)\r\n# but only if not SUDOing and have SUDO_PS1 set; then assume smart user.\r\nif ! [ -n \"${SUDO_USER}\" -a -n \"${SUDO_PS1}\" ]; then\r\n  PS1='${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ '\r\nfi\r\n\r\n# Commented out, don't overwrite xterm -T \"title\" -n \"icontitle\" by default.\r\n# If this is an xterm set the title to user@host:dir\r\n#case \"$TERM\" in\r\n#xterm*|rxvt*)\r\n#    PROMPT_COMMAND='echo -ne \"\\033]0;${USER}@${HOSTNAME}: ${PWD}\\007\"'\r\n#    ;;\r\n#*)\r\n#    ;;\r\n#esac\r\n\r\n# enable bash completion in interactive shells\r\n#if ! shopt -oq posix; then\r\n#  if [ -f \/usr\/share\/bash-completion\/bash_completion ]; then\r\n#    . \/usr\/share\/bash-completion\/bash_completion\r\n#  elif [ -f \/etc\/bash_completion ]; then\r\n#    . \/etc\/bash_completion\r\n#  fi\r\n#fi\r\n\r\n# if the command-not-found package is installed, use it\r\nif [ -x \/usr\/lib\/command-not-found -o -x \/usr\/share\/command-not-found\/command-not-found ]; then\r\n    function command_not_found_handle {\r\n            # check because c-n-f could've been removed in the meantime\r\n                if [ -x \/usr\/lib\/command-not-found ]; then\r\n           \/usr\/lib\/command-not-found -- \"$1\"\r\n                   return $?\r\n                elif [ -x \/usr\/share\/command-not-found\/command-not-found ]; then\r\n           \/usr\/share\/command-not-found\/command-not-found -- \"$1\"\r\n                   return $?\r\n        else\r\n           printf \"%s: command not found\\n\" \"$1\" &gt;&amp;2\r\n           return 127\r\n        fi\r\n    }\r\nfi\r\n<\/code><\/pre>\n<p>\/etc\/bash.bashrc \u53ef\u4ee5\u88ab\u7b80\u5355\u5730\u7ffb\u8bd1\u4e3a\u201c\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6\u201d<\/p>\n<pre class=\"post-pre\"><code># System-wide .bashrc file for interactive bash(1) shells.\r\n\r\n# To enable the settings \/ commands in this file for login shells as well,\r\n# this file has to be sourced in \/etc\/profile.\r\n\r\n# If not running interactively, don't do anything\r\n[ -z \"$PS1\" ] &amp;&amp; return\r\n\r\n# check the window size after each command and, if necessary,\r\n# update the values of LINES and COLUMNS.\r\nshopt -s checkwinsize\r\n\r\n# set variable identifying the chroot you work in (used in the prompt below)\r\nif [ -z \"${debian_chroot:-}\" ] &amp;&amp; [ -r \/etc\/debian_chroot ]; then\r\n    debian_chroot=$(cat \/etc\/debian_chroot)\r\nfi\r\n\r\n# set a fancy prompt (non-color, overwrite the one in \/etc\/profile)\r\n# but only if not SUDOing and have SUDO_PS1 set; then assume smart user.\r\nif ! [ -n \"${SUDO_USER}\" -a -n \"${SUDO_PS1}\" ]; then\r\n  PS1='${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ '\r\nfi\r\n\r\n# Commented out, don't overwrite xterm -T \"title\" -n \"icontitle\" by default.\r\n# If this is an xterm set the title to user@host:dir\r\n#case \"$TERM\" in\r\n#xterm*|rxvt*)\r\n#    PROMPT_COMMAND='echo -ne \"\\033]0;${USER}@${HOSTNAME}: ${PWD}\\007\"'\r\n#    ;;\r\n#*)\r\n#    ;;\r\n#esac\r\n\r\n# enable bash completion in interactive shells\r\n#if ! shopt -oq posix; then\r\n#  if [ -f \/usr\/share\/bash-completion\/bash_completion ]; then\r\n#    . \/usr\/share\/bash-completion\/bash_completion\r\n#  elif [ -f \/etc\/bash_completion ]; then\r\n#    . \/etc\/bash_completion\r\n#  fi\r\n#fi\r\n\r\n# if the command-not-found package is installed, use it\r\nif [ -x \/usr\/lib\/command-not-found -o -x \/usr\/share\/command-not-found\/command-not-found ]; then\r\n    function command_not_found_handle {\r\n            # check because c-n-f could've been removed in the meantime\r\n                if [ -x \/usr\/lib\/command-not-found ]; then\r\n           \/usr\/lib\/command-not-found -- \"$1\"\r\n                   return $?\r\n                elif [ -x \/usr\/share\/command-not-found\/command-not-found ]; then\r\n           \/usr\/share\/command-not-found\/command-not-found -- \"$1\"\r\n                   return $?\r\n        else\r\n           printf \"%s: command not found\\n\" \"$1\" &gt;&amp;2\r\n           return 127\r\n        fi\r\n    }\r\nfi\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># \/etc\/zsh\/zshenv: system-wide .zshenv file for zsh(1).\r\n#\r\n# This file is sourced on all invocations of the shell.\r\n# If the -f flag is present or if the NO_RCS option is\r\n# set within this file, all other initialization files\r\n# are skipped.\r\n#\r\n# This file should contain commands to set the command\r\n# search path, plus other important environment variables.\r\n# This file should not contain commands that produce\r\n# output or assume the shell is attached to a tty.\r\n#\r\n# Global Order: zshenv, zprofile, zshrc, zlogin\r\n\r\nif [[ -z \"$PATH\" || \"$PATH\" == \"\/bin:\/usr\/bin\" ]]\r\nthen\r\n    export PATH=\"\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/games\"\r\nfi\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u662f\u4e2d\u6587\u7684\u91ca\u4e49\uff1a \u5404\u4e2a\u53d1\u884c\u7248\uff08\u5982 Ubuntu\uff0cSparky Linux\uff09\u4e2d\u7684 \/etc\/profile \/ [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-25629","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0\" \/>\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.silicloud.com\/zh\/blog\/linux-\u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6-etc-profile\u3001-etc-bash-bashrc-\u548c-etc-zsh-zshenv\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/linux-\u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6-etc-profile\u3001-etc-bash-bashrc-\u548c-etc-zsh-zshenv\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-06T19:04:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T07:07:47+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/\",\"name\":\"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-06T19:04:55+00:00\",\"dateModified\":\"2025-08-11T07:07:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"description\":\"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv - Blog - Silicon Cloud","description":"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0","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.silicloud.com\/zh\/blog\/linux-\u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6-etc-profile\u3001-etc-bash-bashrc-\u548c-etc-zsh-zshenv\/","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv","og_description":"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/linux-\u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6-etc-profile\u3001-etc-bash-bashrc-\u548c-etc-zsh-zshenv\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-06T19:04:55+00:00","article_modified_time":"2025-08-11T07:07:47+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/","name":"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-06T19:04:55+00:00","dateModified":"2025-08-11T07:07:47+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"description":"\u5173\u4e8eLinux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux \u7684\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6 \/etc\/profile\u3001\/etc\/bash.bashrc \u548c \/etc\/zsh\/zshenv"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/linux-%e7%9a%84%e4%b8%89%e4%b8%aa%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-etc-profile%e3%80%81-etc-bash-bashrc-%e5%92%8c-etc-zsh-zshenv\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=25629"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25629\/revisions"}],"predecessor-version":[{"id":55865,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25629\/revisions\/55865"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=25629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=25629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=25629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}