{"id":250736,"date":"2022-08-29T09:26:11","date_gmt":"2022-08-29T01:26:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=250736"},"modified":"2022-08-22T14:27:33","modified_gmt":"2022-08-22T06:27:33","slug":"linux-login-shell","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-login-shell.html","title":{"rendered":"Linux \u4e2d\u7684\u767b\u5f55 Shell\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u60a8\u53ef\u80fd\u542c\u8bf4\u8fc7\u767b\u5f55 shell \u548c\u975e\u767b\u5f55 shell \u4e4b\u95f4\u7684\u533a\u522b\u3002\u867d\u7136\u4e00\u5f00\u59cb\u53ef\u80fd\u4e0d\u90a3\u4e48\u660e\u663e\uff0c\u4f46\u4e24\u79cd shell \u7c7b\u578b\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u5dee\u5f02\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5f53\u7528\u6237\u767b\u5f55\u5230\u4ed6\u4eec\u7684\u5e10\u6237\u65f6\uff0cLinux \u4f1a\u542f\u52a8\u4e00\u4e2a\u767b\u5f55 shell\u3002\u90a3\u4e48\u4ec0\u4e48\u662f\u767b\u5f55 shell\uff0c\u4f60\u600e\u4e48\u77e5\u9053\u4f60\u662f\u5426\u6b63\u5728\u8fd0\u884c\u5462\uff1f<\/p>\n \u60a8\u53ef\u80fd\u6bcf\u5929\u90fd\u5728\u4f7f\u7528 Linux shell\uff0c\u4f46\u662f\u60a8\u5982\u4f55\u4f7f\u7528\u5b83\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u51b3\u5b9a\u4e86\u5b83\u7684\u884c\u4e3a\u3002\u60a8\u53ef\u80fd\u542c\u8bf4\u8fc7\u767b\u5f55 shell \u548c\u975e\u767b\u5f55 shell \u4e4b\u95f4\u7684\u533a\u522b\u3002\u867d\u7136\u4e00\u5f00\u59cb\u53ef\u80fd\u4e0d\u90a3\u4e48\u660e\u663e\uff0c\u4f46\u4e24\u79cd shell \u7c7b\u578b\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u5dee\u5f02\u3002<\/p>\n \u8fd9\u662f\u60a8\u9700\u8981\u4e86\u89e3\u7684\u6709\u5173 Linux \u4e0a\u767b\u5f55 shell \u7684\u6240\u6709\u4fe1\u606f\u3002<\/p>\n \u4ec0\u4e48\u662f\u767b\u5f55 Shell\uff1f<\/strong><\/div>\n \u767b\u5f55 shell \u5c31\u662f\u8fd9\u6837\uff1a\u5f53\u4f60\u76f4\u63a5\u767b\u5f55\u5230 Linux \u673a\u5668\u65f6\u542f\u52a8\u7684 shell\u3002\u5f53\u60a8\u4ece\u865a\u62df\u63a7\u5236\u53f0\u6216\u901a\u8fc7 SSH \u767b\u5f55\u7cfb\u7edf\u65f6\uff0c\u542f\u52a8\u7684 shell \u662f\u767b\u5f55 shell\u3002<\/p>\n \u76f8\u6bd4\u4e4b\u4e0b\uff0c\u5982\u679c\u60a8\u542f\u52a8\u7ec8\u7aef\u7a97\u53e3\uff0c\u5219\u8be5 shell \u4f1a\u8bdd\u901a\u5e38\u4e0d\u662f\u767b\u5f55 shell\u3002\u5f53\u60a8\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u952e\u5165 shell \u7684\u540d\u79f0\u6765\u542f\u52a8\u5b50 shell \u65f6\u4e5f\u662f\u5982\u6b64\u3002\u8fd9\u4e2a shell \u53ea\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f shell\u3002<\/p>\n \u4e24\u8005\u4e4b\u95f4\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e shelll \u7684\u884c\u4e3a\u3002shell \u901a\u5e38\u53ea\u4f1a\u5728\u542f\u52a8\u65f6\u8bfb\u53d6\u67d0\u4e9b\u6587\u4ef6\u3002\u53ea\u6709\u5728\u4f5c\u4e3a\u767b\u5f55 shell \u8c03\u7528\u65f6\uff0cBash \u624d\u4f1a\u8bfb\u53d6\u60a8\u7684\u4e3b\u76ee\u5f55\u4e2d\u7684\/etc\/profile\u3001.bash_profile\u3001.bash_login\u548c.profile \u6587\u4ef6\u3002<\/p>\n \u5982\u4f55\u5224\u65ad\u60a8\u662f\u5426\u6b63\u5728\u4f7f\u7528\u767b\u5f55 Shell<\/strong><\/div>\n \u5f88\u5bb9\u6613\u770b\u51fa\u60a8\u662f\u5426\u6b63\u5728\u8fd0\u884c\u767b\u5f55 shell\u3002\u5982\u679c\u60a8\u4ece\u684c\u9762\u7ec8\u7aef\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u4e86\u60a8\u7684 shell\uff0c\u90a3\u4e48\u60a8\u5f88\u53ef\u80fd\u4e0d\u4f1a\uff0c\u9664\u975e\u60a8\u5728\u53e6\u4e00\u4e2a\u7ec8\u7aef\u73af\u5883\u4e2d\uff0c\u4f8b\u5982 WSL \u6216 macOS \u7ec8\u7aef\u3002<\/p>\n \u60a8\u53ef\u4ee5\u4f7f\u7528\u6b64\u547d\u4ee4\u68c0\u67e5\u60a8\u662f\u5426\u6b63\u5728\u8fd0\u884c\u767b\u5f55 shell\uff1b<\/p>\n \r\necho $0\r\n<\/pre>\n |