fox@debian:~$
進入X後
[fox@debian fox]$
--------------------------
在console下alias都沒有作用!
怎麼會這樣呢?
[fox@debian fox]$ echo $SHELL
/bin/bash
fox@debian:~$echo $SHELL
/bin/bash
less /etc/passwd
fox:x:1000:1000:,,,:/mnt/test/fox:/bin/bash
沒錯壓?都是bash?可是怎麼不同調呢?

版主: mufa
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
umask 022
# the rest of this file is commented out.
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
# PATH=~/bin:"${PATH}"
#fi
# do the same with MANPATH
#if [ -d ~/man ]; then
# MANPATH=~/man:"${MANPATH}"
#fi
kanru 寫:使用 x-terminal-emulator 讀取的是 ~/.bashrc
直接從 console login 則會讀取 ~/.bash_profile
不過 debian 預設會讓 ~/.bash_profile 讀取 ~/.bashrc 裡的設定
不知道你是否改過這個檔案?
- 代碼: 選擇全部
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
umask 022
# the rest of this file is commented out.
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
# PATH=~/bin:"${PATH}"
#fi
# do the same with MANPATH
#if [ -d ~/man ]; then
# MANPATH=~/man:"${MANPATH}"
#fi
正在瀏覽這個版面的使用者:Google [Bot] 和 1 位訪客