Ubuntu 命令列路徑太長如何縮短? - Linux

Audriana avatar
By Audriana
at 2008-10-28T17:42

Table of Contents


(己爬過文, 但找不到答案)
在 Ubuntu 下命令列預設是將絕對路徑全部顯示, 例如:
root@xxx-desktop:~/dir1/dir2/dir3/dir4/dir5#

相同的情形在 Fedora 8 下, 是長這樣:
[root@localhost dir5]

請問有無方法縮短命令列的路徑顯示方式, 把它弄成像 Fedora 8 的樣子??


--
Tags: Linux

All Comments

Edward Lewis avatar
By Edward Lewis
at 2008-11-02T00:15
man bash可以查到,鳥哥網站裡的bash shell也有講
Zanna avatar
By Zanna
at 2008-11-06T06:57
簡而言之:~/.bashrc最後加上 PS1='[\u@\h \W]\$ '
Audriana avatar
By Audriana
at 2008-11-08T19:57
http://linux.vbird.org/linux_basic/0320bash.php
Caroline avatar
By Caroline
at 2008-11-12T15:37
$ echo $PS1 然後把\w改成\W 再給PS1....我都這樣做@@"

sed 插入檔案的問題。

Zora avatar
By Zora
at 2008-10-28T15:47
※ 引述《yillkid (阿金)》之銘言: : shell script ....略 : log=`date -d at1225158392 +%Fand#34; and#34;%T` : sed -i and#39;$a $logand#39; FILE : 無法將 log 的內容寫進 and#34;FI ...

如何在debian玩AssaultCube?

Lydia avatar
By Lydia
at 2008-10-28T14:57
到最後發現他說我沒有libc6但是我明明有裝libc6,重裝一次之後他還是顯示 Error: Depandency is not satisfiable:libc6 這到底怎麼回事啊?! - ...

sed 插入檔案的問題。

Odelette avatar
By Odelette
at 2008-10-28T14:29
shell script ....略 log=`date -d at1225158392 +%Fand#34; and#34;%T` sed -i and#39;$a $logand#39; FILE 無法將 log 的內容寫進 and#34;FILEand#34; 檔案內, 請幫我看看好嗎?謝謝。 ...

Glibc 使用於 Ubuntu8.04 ,amd64

Leila avatar
By Leila
at 2008-10-28T12:52
../sysdeps/unix/sysv/linux/arm/sysdep.S: Assembler messages: ../sysdeps/unix/sysv/linux/arm/sysdep.S:38: Error: no such instruction: `rsb r0,r0,$0and#39; . ...

請問有什麼方法 可以隱藏 鼠標

Irma avatar
By Irma
at 2008-10-28T11:13
※ 引述《antontw (習慣)》之銘言: : ※ 引述《sunfox (三福士)》之銘言: : : 請教先進 : : 在進入 : : X-Window 之後 : : 有辦法 隱藏鼠標嗎 : : 例如.. N秒後 沒動到滑鼠 鼠標就自動隱藏起來 : : 等待滑鼠一移動 它又會自動出現 : : 謝謝 : ...