Zu blöde für "alias"?

15/05/2009 - 21:59 von Bernd Hohmann | Report spam
Hier: Ubuntu eigentlich schon seit 8.04, 8.10, 9.04

bernd@bernd-desktop:~$ cat ~/.profile
[...]
PATH=/usr/lib/ibm-java2-5.0-8a/bin:/usr/lib/ibm-java2-5.0-8a/jre/bin:$PATH

alias hexedit="ghex2"

sh remap start&


Die Anpassung von PATH geht, "sh remap start&" wird ausgeführt, das
Alias aber nicht:

bernd@bernd-desktop:~$ hexedit
Die Anwendung »hexedit« ist momentan nicht installiert. Um sie zu
installieren, können Sie Folgendes eingeben:
sudo apt-get install hexedit
bash: hexedit: command not found

(reboot, ja natürlich alles gemacht)

Bernd

Visit http://www.nixwill.de and http://www.spammichvoll.de
jean.oliver@nixwill.de & bernado.bernhardi@spammichvoll.de
 

Lesen sie die antworten

#1 Sebastian Waschik
15/05/2009 - 22:07 | Warnen spam
Hallo,

Bernd Hohmann writes:

Hier: Ubuntu eigentlich schon seit 8.04, 8.10, 9.04

:~$ cat ~/.profile
[...]
PATH=/usr/lib/ibm-java2-5.0-8a/bin:/usr/lib/ibm-java2-5.0-8a/jre/bin:$PATH

alias hexedit="ghex2"




,- man bash
| When bash is invoked as an interactive login shell, or as a non-
| interactive shell with the --login option, it first reads and exe-
| cutes commands from the file /etc/profile, if that file exists.
| After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
| and ~/.profile, in that order, and reads and executes commands from
| the first one that exists and is readable. The --noprofile option
| may be used when the shell is started to inhibit this behavior.
[...]
| When an interactive shell that is not a login shell is started, bash
| reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if
| these files exist. This may be inhibited by using the --norc option.
| The --rcfile file option will force bash to read and execute commands
| from file instead of /etc/bash.bashrc and ~/.bashrc.
`-

schreibe mal deinen alias in die ~/.bashrc .

Viele Grüße
Sebastian Waschik

Ähnliche fragen