Centos -bash-4.2$
狀況
建立新使用者後切換,命令列開頭沒有正常顯示
原因
筆者在建立使用者的時候指定了一個已存在的資料夾
# useradd -d /home/wyh/ -m wyh
而wyh
資料夾中缺少了正常使用者目錄的配置檔案
.bash_logout .bash_profile .bashrc
解決
# cd /etc/skel/
# cp .bash_logout /home/wyh/
# cp .bash_profile /home/wyh/
# cp .bashrc /home/wyh/
將配置檔案複製到使用者目錄下
重新連線xshell
相關推薦
Centos -bash-4.2$
狀況 建立新使用者後切換,命令列開頭沒有正常顯示 原因 筆者在建立使用者的時候指定了一個已存在的資料夾 # useradd -d /home/wyh/ -m wyh 而wyh資料夾中缺少了正常使用者目錄的配置檔案 .bash_logout .bash_pro
linux 登錄異常--bash-4.2$故障
linux登錄故障第1章 顯示故障為: 登錄系統顯示為: -bash-4.2$故障第2章 如何解決:故障原因:當前用戶的環境變量文件丟失或者損壞、 解決方案:復制正確的文件到用戶的家目錄下, 用戶家目錄模板路徑/etc/skel/##復制變量到加家目錄-bas
linux 命令終端提示符顯示-bash-4.2#解決方法
bash-4.2昨天在配置linux,突然發現root登錄的xshell的終端提示符顯示的是-bash-4.2# 而不是root@主機名 + 路徑的顯示方式。搞了半天也不知道為什麽出現這種情況。今天終於搞定這個問題, 原因是root在/root下面的幾個配置文件丟失,丟失文件如下: 1、.
linux終端提示符顯示bash-4.2#
原因是root在/root下面的幾個配置檔案丟失,丟失檔案如下: 1、.bash_profile 2、.bashrc 以上這些檔案是每個使用者都必備的檔案。 使用以下命令從主預設檔案重新拷貝一份配置資訊到/root目錄下 cp /etc/skel/.bashrc /r
xshell登入伺服器提示符顯示-bash-4.2#解決方法
突然發現root登入的xshell的終端提示符顯示的是-bash-4.2# 而不是[email protected]主機名 + 路徑的顯示方式。搞了半天也不知道為什麼出現這種情況。今天終於搞定這個問題, 原因是root在/root下面的幾個配置檔案丟失,丟失檔案如
登入Linux新建使用者顯示 -bash-4.2$
登入Linux的 -bash-4.2新建的test用戶登陸linux系統發現是−bash−4.2新建的test用戶登陸linux系統發現是−bash−4.2狀態如下 網路搜尋查詢:是/home目錄
1.3.2 企業案例 切換到alex用戶之後企業故障案例:切換到alex用戶之後 出現 -bash-4.1$ 錯誤
1.3.2 企業案例 切換到alex用戶之後企業故障案例:切換到alex用戶之後 出現 -bash-4.1$ 錯誤企業故障案例:切換到alex用戶之後-bash-4.1$-bash-4.1$ 1.1.1.1
centos 6.4 升級python到版本2.7.12
figure ftp tar .com 下載 http nbsp python2 zxvf 註意:需要root權限查看python版本:python --version1.下載Python-2.7.12wget https://www.python.org/ftp/pyth
CentOS-7.4 二進制安裝mariadb10.2數據庫
重新 sql soc 包名 chown mage 分享圖片 測試數據 mem 在官方網站下在二進制安裝包 http://mariadb.org #"包名:帶有linux字樣的就是編譯完安裝包" mariadb-10.2.12-linux-x86_64.tar.gz 確認系統
yum install ntp 報錯:Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base)
時報 existing -s pmd cond AC base update ntpdate redhat7 在安裝ntp時報如下錯誤 Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base) R
Centos 7.4 中http-2.4 的基本實現和 https 的實現
http-2.4 https 1.建立httpd服務,要求: 1) 提供兩個基於名稱的虛擬主機www1, www2;要求每個虛擬主機都有單獨的錯誤日誌和訪問日誌; 2) 通過www1的/server-status提供狀態信
CentOS 7.4下源碼安裝 Apache HTTP Server(httpd-2.4.35)
-- pre mir 成功 httpd 來安 ces mos .cn CentOS 7.4下源碼安裝 Apache HTTP Server(httpd-2.4.35) 前提:確保安裝了expat-devel, APR包 (apr-1.6.3.tar.gz 和 apr-ut
CentOS 7.4下原始碼安裝 Apache HTTP Server(httpd-2.4.35)
CentOS 7.4下原始碼安裝 Apache HTTP Server(httpd-2.4.35) 前提:確保安裝了expat-devel, APR包 (apr-1.6.3.tar.gz 和 apr-util-1.6.1.tar.gz); 用YUM方式安裝expat-devel 和 apr-ut
CentOS 7.4 編譯安裝 Nginx1.15.2
本文主要記錄如何在CentOS7.4中編譯安裝Nginx官方最新的1.15.2版本。由於像Nginx、Mysql和PHP7的的原始碼都是用C/C++寫的,所以自己的CentOS 7.4伺服器上必須要安裝gcc和g++軟體。 安裝環境 系統:Ce
CentOS 7.4編譯安裝Apache 2.4.29
Apache2.4.29依賴包: apr-1.6.3.tar.gz 下載:wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.6.3.tar.gz apr-util-1.6.1.tar.gz 下載
MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安裝筆記
說明 以root賬戶登入Linux作業系統,注意:本文中的所有命令列前面的 #> 表示命令列提示符,不需要輸入。 建立原始碼目錄: #> mkdir /var/local/src 下載安裝libgdiplus: #> cd /var/local/src #&
CentOS 7.4安裝Zabbix 3.4.2
QQ交流群:64655993 安裝環境 [[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 關閉防火牆 Centos 7.3開始iptables就不存在了
Centos顯示-bash-4.1$問題的修復及原因探究
問題描述 解決步驟 在家目錄下 建立.bash_profile 定義PS1全域性變數 格式可以自定義 使用export把PS1輸出,以使它可以在子shell中生效,這會
CentOS 7.4 安裝 Ambari 2.6.0 + HDP 2.6.3 搭建Hadoop叢集
1.安裝環境說明 三臺機器安裝好CentOS-7-x86_64-Minimal-1708.iso 下載地址:https://www.centos.org/download/ 最好在安裝時設定好IP和HOSTNAME 三臺機器的IP和HOSTNAME下載如下 主
centos 6.4+zabbix 2.4.5 郵件報警設定及郵件title和message亂碼問題解決
外部郵箱傳送報警1、安裝郵件傳送工具mailxyum install mailx #安裝whereis mailx #檢視安裝路徑mailx -V #檢視版本資訊2、 安裝sendmail(郵件傳送代理MTA)(標註:如果直接使用外部郵箱傳送郵件可以不需要配置sendmai