On Montag, 22. März 2010 22:43:39 Lutz Weber wrote:
Stefan Plenert´s Tastaturgeklapper am Montag 22 März 2010 :
Hi Stefan,
kommentiere mal die alias Einträge in
/etc/bash.bashrc
Ist das nicht verkehrt?
aus. Sollte evtl. helfen.
Gruß Lutz
# find / -name "alias.ash"
find: "/home/stefan/.gvfs": Keine Berechtigung
~/Docukents/ / / (die Kopie)
/etc/profile.d/alias.ash
# /etc/profile.d/alias.ash for SuSE Linux
#
# The ash shell does not have an alias builtin in
# therefore we use functions here. This is a seperate
# file because other shells may run into trouble
# if they parse this even if they do not expand.
#
suspend () { local -; set +j; kill -TSTP 0; }
#
# A bug? the builtin bltin is missed and mapped
# to the builtin command.
#
bltin () { command ${1+"$@"}; }
pushd () {
local SAVE=`pwd`
if test -z "$1" ; then
if test -z "$DSTACK" ; then
echo "pushd: directory stack empty." 1>&2
return 1
fi
set $DSTACK
cd $1 || return
shift 1
DSTACK="$@"
else
cd $1 > /dev/null || return
fi
DSTACK="$SAVE $DSTACK"
dirs
}
popd () {
if test -z "$DSTACK"; then
echo "popd: directory stack empty." 1>&2
return 1
fi
set $DSTACK
cd $1
shift 1
DSTACK="$@"
dirs
}
dirs () { echo "`pwd` $DSTACK"; return 0; }
ls () { /bin/ls $LS_OPTIONS ${1+"$@"}; }
dir () { ls -l ${1+"$@"}; }
ll () { ls -l ${1+"$@"}; }
la () { ls -la ${1+"$@"}; }
l () { ls -alF ${1+"$@"}; }
ls-l () { ls -l ${1+"$@"}; }
#
# Set some generic aliase functions
#
o () { less ${1+"$@"}; }
.. () { cd ../; }
... () { cd ../../; }
+ () { pushd .; }
- () { popd; }
rd () { rmdir ${1+"$@"}; }
md () { mkdir -p ${1+"$@"}; }
rehash () { hash -r ${1+"$@"}; }
you () { su - -c "yast2 online_update"; }
beep () { echo -n ' ' | tr ' ' '\007'; }
unmount () { echo "Error: Try the command: umount" 1>&2; return 1; }
#
# End of /etc/profile.d/alias.ash
#
Hier finde ich die Liste von alias wieder
$ alias
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..'
alias beep='echo -en "\007"'
alias cd..='cd ..'
alias dir='ls -l'
alias l='ls -alF'
alias la='ls -la'
alias ll='ls -l'
alias ls='ls $LS_OPTIONS'
alias ls-l='ls -l'
alias md='mkdir -p'
alias o='less'
alias rd='rmdir'
alias rehash='hash -r'
alias unmount='echo "Error: Try the command: umount" 1>&2; false'
alias you='if test "$EUID" = 0 ; then /sbin/yast2 online_update ; else su - -c
"/sbin/yast2 online_update" ; fi'
Die Frage ist die Änderung.
Löschung und Neueintrag, damit es nach jedem Systemstart da ist.
magnum Linux (10.0 2006) Mark+Technik:
Alias-Definitionen müssen in Initialisierungsdateien hinterlegt werden,
z.B. die Dateien ~/.profile oder ~/.bash_profile, damit sie nach jedem
Sytemstart in der Shell bekann sind.
~/.profile - blicke ich nicht durch
# Sample .profile for SuSE Linux
# rewritten by Christian Steinruecken