{"id":647,"date":"2019-10-13T19:27:07","date_gmt":"2019-10-13T19:27:07","guid":{"rendered":"https:\/\/ipcalc.co\/blog\/?p=647"},"modified":"2019-10-13T22:43:19","modified_gmt":"2019-10-13T19:43:19","slug":"nastrojka-stroki-priglasheniya-v-bash","status":"publish","type":"post","link":"https:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash"},"content":{"rendered":"<p>\u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash \u2013 \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<br \/>\n\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u043f\u0440\u0438\u043c\u0435\u0442\u043d\u044b\u0439 \u0432\u0438\u0434, \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0440\u0435\u0434\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 bash. \u0420\u0435\u0446\u0435\u043f\u0442 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439, \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043b\u044f Ubuntu 16.04, \u0442\u0430\u043a \u0438 \u0432 Archlinux.<\/p>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>PS1<\/strong>, \u0443\u0437\u043d\u0430\u0442\u044c \u0435\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e echo:<br \/>\n<code>$ echo $PS1<\/code><\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u043f\u043e\u043a\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0435 \u0437\u0430\u043a\u0440\u043e\u0435\u0442\u0441\u044f):<br \/>\n<code>$ PS1='\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435'<\/code><\/p>\n<p>\u041b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u0438\u0434\u0430:<br \/>\n<code>export PS1='\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435'<\/code><br \/>\n<a href=\"\/blog\/faylyi-konfiguratsii-bash\/\">\u0412 \u0444\u0430\u0439\u043b\u044b <strong>~\/.bashrc<\/strong> \u0438 <strong>~\/.bash_profile<\/strong> \u2013 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0436\u0435 <strong>\/etc\/bashrc<\/strong> \u0438 <strong>\/etc\/bash_profile<\/strong> \u2013 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/a><\/p>\n<h2>\u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash<\/h2>\n<p>\u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>PS1<\/strong> \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430, \u0441\u043b\u0443\u0436\u0430\u0442 \u0441\u043a\u043e\u0440\u0435\u0435 \u0434\u043b\u044f \u0434\u0435\u043a\u043e\u0440\u0430\u0446\u0438\u0438. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0435 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<\/p>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0445 \u0432\u0440\u0435\u043c\u044f \u0438 \u0434\u0430\u0442\u0443<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044b<\/strong><\/th>\n<th><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/th>\n<\/tr>\n<tr>\n<th>d<\/th>\n<th>\u0414\u0430\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435: \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438, \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446, \u0447\u0438\u0441\u043b\u043e<\/th>\n<\/tr>\n<tr>\n<td>t<\/td>\n<td>\u0412\u0440\u0435\u043c\u044f \u0432 24-\u0447\u0430\u0441\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435: \u0447\u0430\u0441\u044b, \u043c\u0438\u043d\u0443\u0442\u044b, \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/td>\n<\/tr>\n<tr>\n<td>T<\/td>\n<td>\u0412\u0440\u0435\u043c\u044f \u0432 12-\u0447\u0430\u0441\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435: \u0447\u0430\u0441\u044b, \u043c\u0438\u043d\u0443\u0442\u044b, \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/td>\n<\/tr>\n<tr>\n<td>@<\/td>\n<td>\u0412\u0440\u0435\u043c\u044f \u0432 12-\u0447\u0430\u0441\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435: \u0447\u0430\u0441\u044b, \u043c\u0438\u043d\u0443\u0442\u044b, \u0441\u0435\u043a\u0443\u043d\u0434\u044b + AM(\u0443\u0442\u0440\u043e) \u0438\u043b\u0438 PM(\u0432\u0435\u0447\u0435\u0440)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0445\u043e\u0441\u0442\u0430<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044b<\/strong><\/th>\n<th><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/th>\n<\/tr>\n<tr>\n<th>H<\/th>\n<th>\u041f\u043e\u043b\u043d\u044b\u0439 hostname<\/th>\n<\/tr>\n<tr>\n<td>h<\/td>\n<td>hostname \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td>u<\/td>\n<td>\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/td>\n<\/tr>\n<tr>\n<td>$<\/td>\n<td>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 $ \u2013 \u0435\u0441\u043b\u0438 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 # \u2013 root\u2019\u043e\u043c<\/td>\n<\/tr>\n<tr>\n<td>s<\/td>\n<td>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u041c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044b<\/strong><\/th>\n<th><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/th>\n<\/tr>\n<tr>\n<th>W<\/th>\n<th>\u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043f\u0430\u043f\u043a\u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0435\u0430\u043d\u0441<\/th>\n<\/tr>\n<tr>\n<td>w<\/td>\n<td>\u0421\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u044b\u0439 \u043f\u0443\u0442\u044c (\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u041f\u0440\u043e\u0447\u0435\u0435<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044b<\/strong><\/th>\n<th><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/th>\n<\/tr>\n<tr>\n<th>n<\/th>\n<th>\u041d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/th>\n<\/tr>\n<tr>\n<td>#<\/td>\n<td>\u041d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/td>\n<\/tr>\n<tr>\n<td>!<\/td>\n<td>\u041d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 bash\u2019\u0430<\/td>\n<\/tr>\n<tr>\n<td>a<\/td>\n<td>\u0417\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0417\u0430\u0434\u0430\u0432 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u2018\u0438\u043c\u044f_\u0445\u043e\u0441\u0442\u0430 : \u0432\u0440\u0435\u043c\u044f : \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b -:\u2019<br \/>\n<code>PS1='H : t : # -:'<\/code><br \/>\n\u0423\u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u044d\u0442\u043e:<br \/>\n<code>ozi-linux : 08:55:35 : 8 -:<\/code><\/p>\n<h2>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/h2>\n<p>\u0426\u0432\u0435\u0442 \u0431\u0443\u043a\u0432 \u0438\u043b\u0438 \u0444\u043e\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:<br \/>\n<code>[\u0435[K;Nm]<\/code>\u0413\u0434\u0435 K \u2013 \u043d\u043e\u043c\u0435\u0440 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, N \u2013 \u043d\u043e\u043c\u0435\u0440 \u0446\u0432\u0435\u0442\u0430 \u0431\u0443\u043a\u0432 \u0438\u043b\u0438 \u0444\u043e\u043d\u0430, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0446\u0432\u0435\u0442\u0430 \u0438 \u0438\u0445 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e<\/strong><\/th>\n<th><strong>K<\/strong><\/th>\n<\/tr>\n<tr>\n<th>\u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/th>\n<th>0<\/th>\n<\/tr>\n<tr>\n<td>\u042f\u0440\u043a\u0438\u0439<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0443\u0441\u043a\u043b\u044b\u0439<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>\u041e\u0431\u044b\u0447\u043d\u044b\u0439<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>\u0418\u043d\u0432\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>\u0421\u043a\u0440\u044b\u0442\u044b\u0439<\/td>\n<td>8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u0426\u0432\u0435\u0442<\/h3>\n<table border=\"1\">\n<tbody>\n<tr>\n<th><strong>\u0426\u0432\u0435\u0442<\/strong><\/th>\n<th><strong>N \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/strong><\/th>\n<th><strong>N \u0434\u043b\u044f \u0444\u043e\u043d\u0430<\/strong><\/th>\n<\/tr>\n<tr>\n<th>\u0427\u0451\u0440\u043d\u044b\u0439<\/th>\n<th>30<\/th>\n<th>40<\/th>\n<\/tr>\n<tr>\n<th>\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/th>\n<th>31<\/th>\n<th>41<\/th>\n<\/tr>\n<tr>\n<th>\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/th>\n<th>32<\/th>\n<th>42<\/th>\n<\/tr>\n<tr>\n<th>\u0416\u0451\u043b\u0442\u044b\u0439<\/th>\n<th>33<\/th>\n<th>43<\/th>\n<\/tr>\n<tr>\n<th>\u0421\u0438\u043d\u0438\u0439<\/th>\n<th>34<\/th>\n<th>44<\/th>\n<\/tr>\n<tr>\n<th>\u0424\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439<\/th>\n<th>35<\/th>\n<th>45<\/th>\n<\/tr>\n<tr>\n<th>\u0413\u043e\u043b\u0443\u0431\u043e\u0439<\/th>\n<th>36<\/th>\n<th>46<\/th>\n<\/tr>\n<tr>\n<th>\u0411\u0435\u043b\u044b\u0439<\/th>\n<th>37<\/th>\n<th>47<\/th>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p><code>[\u0435[1;47m][\u0435[2;35m]<\/code><br \/>\n\u042d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0451\u0442 \u044f\u0440\u043a\u0438\u0439(1) \u0431\u0435\u043b\u044b\u0439 \u0444\u043e\u043d(47) \u0438 \u0442\u0443\u0441\u043a\u043b\u044b\u0435(2) \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b(35) \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0432, \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0442\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442:<br \/>\n<code>PS1='[e[1;31m]u[e[0;32m]:[e[0;35m]w[e[0;32m]$ [e[0;37m]'<\/code><br \/>\n\u0421 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043e\u043a\u0440\u0430\u0441\u043a\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438):<\/p>\n<p>\u0410 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u044d\u0441\u0442\u0435\u0442\u0438\u0447\u043d\u043e, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2013 \u0437\u0430\u043c\u0435\u0442\u043d\u043e. \u0427\u0442\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 =)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash \u2013 \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a: \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u043f\u0440\u0438\u043c\u0435\u0442\u043d\u044b\u0439&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash - IPCalc Blog<\/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:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash - IPCalc Blog\" \/>\n<meta property=\"og:description\" content=\"\u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 bash \u2013 \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a: \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u043f\u0440\u0438\u043c\u0435\u0442\u043d\u044b\u0439...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/\" \/>\n<meta property=\"og:site_name\" content=\"IPCalc Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-13T19:27:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-13T19:43:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\">\n\t<meta name=\"twitter:data2\" content=\"0 \u043c\u0438\u043d\u0443\u0442\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ipcalc.co\/blog\/#website\",\"url\":\"https:\/\/ipcalc.co\/blog\/\",\"name\":\"IPCalc Blog\",\"description\":\"\\u041f\\u043e\\u043b\\u0437\\u0435\\u043d\\u044b\\u0435 \\u0441\\u043a\\u0440\\u0438\\u043f\\u0442\\u044b, \\u043a\\u043e\\u043d\\u0444\\u0438\\u0433\\u0438 \\u0438 \\u043c\\u043d\\u043e\\u0433\\u043e\\u0435 \\u0434\\u0440\\u0443\\u0433\\u043e\\u0435\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ipcalc.co\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/#webpage\",\"url\":\"https:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/\",\"name\":\"\\u041d\\u0430\\u0441\\u0442\\u0440\\u043e\\u0439\\u043a\\u0430 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438 \\u043f\\u0440\\u0438\\u0433\\u043b\\u0430\\u0448\\u0435\\u043d\\u0438\\u044f \\u0432 bash - IPCalc Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ipcalc.co\/blog\/#website\"},\"datePublished\":\"2019-10-13T19:27:07+00:00\",\"dateModified\":\"2019-10-13T19:43:19+00:00\",\"author\":{\"@id\":\"https:\/\/ipcalc.co\/blog\/#\/schema\/person\/995e074baefb3871a51b718fd5de412a\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ipcalc.co\/blog\/nastrojka-stroki-priglasheniya-v-bash\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ipcalc.co\/blog\/#\/schema\/person\/995e074baefb3871a51b718fd5de412a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ipcalc.co\/blog\/#personlogo\",\"inLanguage\":\"ru-RU\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/937f7cf83eb4581f64861b93fe484e16?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/posts\/647"}],"collection":[{"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/comments?post=647"}],"version-history":[{"count":2,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/media?parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/categories?post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ipcalc.co\/blog\/wp-json\/wp\/v2\/tags?post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}