請問沒辦法顯示目前在哪個目錄下,要怎묠… - BBS
By Linda
at 2007-12-04T02:54
at 2007-12-04T02:54
Table of Contents
※ 引述《Gracybaby (對愛情沒痛覺)》之銘言:
: 請問一下喔
: 我看不太懂耶
: [33m\]....這些是要加的字or不是?
: PS1=後面的內容可以再寫一遍嗎?
: 還有我有個同事跟我說可以改/root/.profile
: 加上一行export PS1='\h:\w\$ '
: 可是我加了沒用耶
: 加上了之後要再重開機才能work嗎?
bash 請加到 ~/.bash_profile 或 ~/.bashrc 裡...
(以下節錄自 man bash)
\w the current working directory
\h the hostname
\$ if the effective UID is 0, a #, otherwise a $
~/.bash_profile
The personal initialization file, executed for
login shells
~/.bashrc
The individual per-interactive-shell startup file
--
: 請問一下喔
: 我看不太懂耶
: [33m\]....這些是要加的字or不是?
: PS1=後面的內容可以再寫一遍嗎?
: 還有我有個同事跟我說可以改/root/.profile
: 加上一行export PS1='\h:\w\$ '
: 可是我加了沒用耶
: 加上了之後要再重開機才能work嗎?
bash 請加到 ~/.bash_profile 或 ~/.bashrc 裡...
(以下節錄自 man bash)
\w the current working directory
\h the hostname
\$ if the effective UID is 0, a #, otherwise a $
~/.bash_profile
The personal initialization file, executed for
login shells
~/.bashrc
The individual per-interactive-shell startup file
--
Tags:
BBS
All Comments
Related Posts
請問沒辦法顯示目前在哪個目錄下,要怎묠…
By Hardy
at 2007-12-03T22:21
at 2007-12-03T22:21
請問沒辦法顯示目前在哪個目錄下,要怎묠…
By Madame
at 2007-12-03T21:59
at 2007-12-03T21:59
ssh 進去後馬上斷線
By Ophelia
at 2007-12-03T19:54
at 2007-12-03T19:54
請問沒辦法顯示目前在哪個目錄下,要怎묠…
By Yuri
at 2007-12-03T19:38
at 2007-12-03T19:38
ssh 進去後馬上斷線
By Madame
at 2007-12-03T19:27
at 2007-12-03T19:27