.bash_profile好像被我搞壞了.. - Linux

By Jessica
at 2014-08-15T21:27
at 2014-08-15T21:27
Table of Contents
各位好,小弟的電腦是用macbook air,剛剛看鳥哥網站學了一些指令
其中要改命令提示字元時,要su root去改~/.bashrc的指令
不過因為mac在家目錄好像沒有這個檔,只有~/.bash_profile
bashrc這個檔似乎是在/etc中,後來我在~/.bash_profile中
原本要增加這一段敘述:
if [ -f ~/.bashrc ]; then <==底下這三行在判斷並讀取 ~/.bashrc
. ~/.bashrc
fi
以上這是鳥哥原本要我們填在~/.bash_profile中的
不過我把它改成:
if [ -f /Users/xxxxxx/.bash_profile ]; then
. /Users/xxxxxx/.bash_profile
fi
xxxxxx是我的使用者名稱
存檔離開後就悲劇了,我一開終端機後它就一直只顯示:[程序完成]
然後什麼命令提示字元的內容我都看不到... 就這樣死當了..
有板友可以告訴我這是怎麼回事嗎..
小弟還是新手,如果犯了什麼大錯還請各位幫忙指點一下..
謝謝
--
作者 remic7761 (他們的世界) 看板 Gossiping
標題 [新聞] KARA傷兵再添一員 具荷拉下舞台不慎摔傷
時間 Sat Mar 31 23:11:30 2012
--
其中要改命令提示字元時,要su root去改~/.bashrc的指令
不過因為mac在家目錄好像沒有這個檔,只有~/.bash_profile
bashrc這個檔似乎是在/etc中,後來我在~/.bash_profile中
原本要增加這一段敘述:
if [ -f ~/.bashrc ]; then <==底下這三行在判斷並讀取 ~/.bashrc
. ~/.bashrc
fi
以上這是鳥哥原本要我們填在~/.bash_profile中的
不過我把它改成:
if [ -f /Users/xxxxxx/.bash_profile ]; then
. /Users/xxxxxx/.bash_profile
fi
xxxxxx是我的使用者名稱
存檔離開後就悲劇了,我一開終端機後它就一直只顯示:[程序完成]
然後什麼命令提示字元的內容我都看不到... 就這樣死當了..
有板友可以告訴我這是怎麼回事嗎..
小弟還是新手,如果犯了什麼大錯還請各位幫忙指點一下..
謝謝
--
作者 remic7761 (他們的世界) 看板 Gossiping
標題 [新聞] KARA傷兵再添一員 具荷拉下舞台不慎摔傷
時間 Sat Mar 31 23:11:30 2012
推 YU0158:沒關係 聖嚴我老婆03/31 23:13
--
Tags:
Linux
All Comments

By William
at 2014-08-18T08:21
at 2014-08-18T08:21

By Jessica
at 2014-08-18T18:39
at 2014-08-18T18:39

By Adele
at 2014-08-22T00:32
at 2014-08-22T00:32

By Mia
at 2014-08-23T18:22
at 2014-08-23T18:22

By David
at 2014-08-26T00:41
at 2014-08-26T00:41

By Xanthe
at 2014-08-26T03:10
at 2014-08-26T03:10

By Ethan
at 2014-08-29T04:38
at 2014-08-29T04:38

By David
at 2014-09-01T14:24
at 2014-09-01T14:24
我該從哪個地方去修改這個檔案才好? 我一直都只會用終端

By Tristan Cohan
at 2014-09-03T02:38
at 2014-09-03T02:38

By Agnes
at 2014-09-05T18:05
at 2014-09-05T18:05
所以你用任何一個文字編輯器開Home的.bash_profile就好了

By Agatha
at 2014-09-07T17:40
at 2014-09-07T17:40

By Una
at 2014-09-11T22:24
at 2014-09-11T22:24
部修改它QQ

By Dinah
at 2014-09-12T20:39
at 2014-09-12T20:39

By William
at 2014-09-15T02:19
at 2014-09-15T02:19

By Ophelia
at 2014-09-17T01:11
at 2014-09-17T01:11
可以試試看

By Elizabeth
at 2014-09-21T09:43
at 2014-09-21T09:43
偏好設定那邊把預設登入的shell改成zsh,用zsh登入後把會

By Lily
at 2014-09-21T18:29
at 2014-09-21T18:29

By Victoria
at 2014-09-23T19:40
at 2014-09-23T19:40

By Xanthe
at 2014-09-26T21:39
at 2014-09-26T21:39

By Daniel
at 2014-09-27T14:41
at 2014-09-27T14:41

By Hedwig
at 2014-09-27T21:41
at 2014-09-27T21:41

By Kama
at 2014-09-28T04:24
at 2014-09-28T04:24

By Elvira
at 2014-10-02T04:08
at 2014-10-02T04:08

By Ula
at 2014-10-05T10:32
at 2014-10-05T10:32
Related Posts
ubuntu移除cinnamon之後留下的桌布要怎麼刪除?

By Callum
at 2014-08-15T14:17
at 2014-08-15T14:17
請大家推薦embedded system的linux書籍

By Ivy
at 2014-08-15T09:39
at 2014-08-15T09:39
usb3.0 uvc hdmi 擷取卡

By Elizabeth
at 2014-08-14T17:34
at 2014-08-14T17:34
Embedded Linux

By Todd Johnson
at 2014-08-14T13:34
at 2014-08-14T13:34
chrome在ubuntu 14.04的中文支援

By Candice
at 2014-08-14T00:28
at 2014-08-14T00:28