[eside-ghost] Otra más...
aktor
eside-ghost@deusto.es
Thu, 12 Jun 2003 16:37:30 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aupa Josu!
El Thu, 12 Jun 2003 13:22:26 +0200
Josu Antolín Sáenz <josuantolin@yahoo.es> escribió:
> Buenas, he conseguido configurar las X a 1024x768, así como el idioma a español, gracias x vuestra ayuda. Ahora mi duda es....., como puedo añadir directorios al path?? Esque me lo dijeron una vez, pero no me lo apunté...
1. Vas a http//www.google.com (es uno de los mejores buscadores de contenido para internet).
Más información sobre lo que es google (o googol) en http://www.google.com/intl/es/profile.html
2. En mitad de la pantalla aparece un recuadro para insertar texto, escribes lo que quieres buscar y pulsas [enter]:
linux añadir directorios path
3. Te muestra los resultados obtenidos
Resultados 1 - 10 de aproximadamente 1,890. La búsqueda tardó 0.16 segundos
4. Eliges el resultado que más te guste y pruebas a ver si te da la respuesta. Cogemos el primero de ellos ;)
http://linuxcol.uniandes.edu.co/infolinux/docs/faq/cache/165.html
5. Buscas dentro de la página la información que te interesa:
*** Depende que shell este usando. Generalmente tiene que editar los archivos /etc/profile y /etc/bashrc /etc/csh.login y agregar la linea que quiera. Asi queda global para todos los usuarios.
Buscamos en nustro sistema si existen esos archivos que comenta y ... voilà
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
podemos buscar ahora en tu sistema o google información más precisa sobre /etc/profile y sobre el interprete bash.
6. Ayuda de Linux
$ man bash
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands 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 a login shell exits, bash reads and executes commands from the
file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc, if that file exists. 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
~/.bashrc.
RESUMIENDO
En Debian y para interprete bash:
/etc/profile -> para todos los usuarios
$HOME/.bashrc y $HOME/.bash_profile -> cada usuario
/root/.basrc y /root/.profile -> para root
1º se ejecuta el /etc/profile por lo que los demás archivos sobreescribirán a ese, Es decir:
x=5
x=8
¿Cuanto vale x ahora? 8 ;DDDD
pos eso
>
> Gracias,
dnd, dáselas a GOOGLE y a los autores de la documentación del bash (_creo que son estos_)
AUTHORS
Brian Fox, Free Software Foundation
bfox@gnu.org
Chet Ramey, Case Western Reserve University
chet@ins.CWRU.Edu
aktor
- --
No pensábamos en el negocio, sino en Internet como una forma de comunicación
global.
-- Jerry Yang. Uno de los creadores de Yahoo!.
This mail is copyleft-ed to aktor under the terms of the FDL License (GNU Free Documentation License).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+6JAqxAuTGucklT8RAlKXAKCA8lX81J2oFzFQ7AItXqeby2q9JwCgq49Z
0Zs6r1hDndU3kD6jxNLVHoE=
=mBQu
-----END PGP SIGNATURE-----