
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 <cstein@suse.de> # # This file is read each time a login shell is started. # All other interactive shells will only read .bashrc; this is particularly # important for language settings, see below. test -z "$PROFILEREAD" && . /etc/profile || true # Most applications support several languages for their output. # To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) # This overwrites the system default set in /etc/sysconfig/language # in the variable RC_LANG. # #export LANG=de_DE.UTF-8 # uncomment this line for German output #export LANG=fr_FR.UTF-8 # uncomment this line for French output #export LANG=es_ES.UTF-8 # uncomment this line for Spanish output # Some people don't like fortune. If you uncomment the following lines, # you will have a fortune each time you log in ;-) #if [ -x /usr/bin/fortune ] ; then # echo # /usr/bin/fortune # echo #fi ~/.bash_profile find ich nicht unter "alias*" findet man viele Dateien. /etc/bash.bashrc ist auch ein Buch mit 7 Siegeln alias.ash ist am einfachtesten zu verstehen. mfg Stefan - ------------ -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org