Difference between revisions of "Help:Reading (Español)"
(recat) |
(update templates, see Help:Style) |
||
Line 21: | Line 21: | ||
En este ejemplo, el contexto del signo numeral comunica que no se debe entrar como comando; debería ser editado en un archivo. En este caso entonces, el signo numeral denota un ''comentario''. Un comentario puede ser texto explicativo que no pasa a ser interpretado por el programa asociado. La notación para comentarios en scripts de [[Bash (Español)|Bash]] de casualidad coincide con el root ''PS1''. | En este ejemplo, el contexto del signo numeral comunica que no se debe entrar como comando; debería ser editado en un archivo. En este caso entonces, el signo numeral denota un ''comentario''. Un comentario puede ser texto explicativo que no pasa a ser interpretado por el programa asociado. La notación para comentarios en scripts de [[Bash (Español)|Bash]] de casualidad coincide con el root ''PS1''. | ||
− | Después de examinar un poco mas, algunas señas ayudan a distingir. La letra mayúscula que sigue el signo '''#''' implica que no se debería entrar como comando. Los comandos de sistemas como-Unix no son escritos así y típicamente son abreviaciónes (ej. ''Copy'' se convierte en {{ | + | Después de examinar un poco mas, algunas señas ayudan a distingir. La letra mayúscula que sigue el signo '''#''' implica que no se debería entrar como comando. Los comandos de sistemas como-Unix no son escritos así y típicamente son abreviaciónes (ej. ''Copy'' se convierte en {{ic|cp}}). |
Sin embargo, muchos artículos lo hacen fácil por notificar al lector: | Sin embargo, muchos artículos lo hacen fácil por notificar al lector: | ||
− | ''Agregue'' a {{ | + | ''Agregue'' a {{ic|~/path/to/file}}: |
# Este alias hace que ls colorea la lista | # Este alias hace que ls colorea la lista | ||
alias ls='ls --color=auto | alias ls='ls --color=auto | ||
Line 43: | Line 43: | ||
==System-wide versus user-specific configuration== | ==System-wide versus user-specific configuration== | ||
− | It is important to remember that there are two different kinds of configurations on a GNU/Linux system. '''System-wide''' configuration affects all users. Since system-wide settings are generally located in the {{ | + | It is important to remember that there are two different kinds of configurations on a GNU/Linux system. '''System-wide''' configuration affects all users. Since system-wide settings are generally located in the {{ic|/etc}} directory, root privileges are required in order to alter them. E.g., to apply a Bash setting that affects all users, {{ic|/etc/bash.bashrc}} should be modified. |
− | '''User-specific''' configuration affects only a single user. ''Dotfiles'' are used for user-specific configuration. For example, the file {{ | + | '''User-specific''' configuration affects only a single user. ''Dotfiles'' are used for user-specific configuration. For example, the file {{ic|~/'''.'''bashrc}} is the user-specific configuration file. The idea is that each user can define their own settings, such as aliases, functions and other interactive features like the prompt, without affecting other users' preferences. |
− | {{Note| ~/ is a shortcut for the user's home directory, usually {{ | + | {{Note| ~/ is a shortcut for the user's home directory, usually {{ic|/home/''username''/}}.}} |
==Vocabulario== | ==Vocabulario== |
Revision as of 20:14, 12 February 2012
Como la mayoría de la ArchWiki contiene indicaciones que pueden necesitar aclaración para usuarios novatos a GNU/Linux, esta guía de los métodos básicos se escribió para evitar confusión y repetición del contenido.
Contents
Usuario regular o root
Algunas líneas se escriben así:
# pacman -S kernel26
Otras tienen prefijo distinto:
$ makepkg -s
El signo numeral (#) indica que la línea se debería entrar como root, mientras el signo de dólar ($) muesta que la línea debería ser entrada como usuario regular.
Una notable excepción:
# Este alias hace que ls colorea la lista alias ls='ls --color=auto'
En este ejemplo, el contexto del signo numeral comunica que no se debe entrar como comando; debería ser editado en un archivo. En este caso entonces, el signo numeral denota un comentario. Un comentario puede ser texto explicativo que no pasa a ser interpretado por el programa asociado. La notación para comentarios en scripts de Bash de casualidad coincide con el root PS1.
Después de examinar un poco mas, algunas señas ayudan a distingir. La letra mayúscula que sigue el signo # implica que no se debería entrar como comando. Los comandos de sistemas como-Unix no son escritos así y típicamente son abreviaciónes (ej. Copy se convierte en cp
).
Sin embargo, muchos artículos lo hacen fácil por notificar al lector:
Agregue a ~/path/to/file
:
# Este alias hace que ls colorea la lista alias ls='ls --color=auto
Append, create, edit and source
When prompted to append, add, create or edit, consider it an indication for using a text editor, such as nano, in order to make changes to configuration file(s):
# nano /etc/bash.bashrc
In programs, be it shells or otherwise, sourcing applies settings specified in a file. For Bash, sourcing can be done in a command prompt:
$ source /etc/bash.bashrc
and it can also happen in a file itself:
# This line includes settings from another file source /etc/bash.bashrc
As a result, sourcing a file after alteration is an implied omission in the case of shell files.
However, not all articles will specify the nature of the changes to be made, nor which file to alter in the first place. This wiki builds-up on previous knowledge, such as common locations for files that are prone to sporadic editing.
System-wide versus user-specific configuration
It is important to remember that there are two different kinds of configurations on a GNU/Linux system. System-wide configuration affects all users. Since system-wide settings are generally located in the /etc
directory, root privileges are required in order to alter them. E.g., to apply a Bash setting that affects all users, /etc/bash.bashrc
should be modified.
User-specific configuration affects only a single user. Dotfiles are used for user-specific configuration. For example, the file ~/.bashrc
is the user-specific configuration file. The idea is that each user can define their own settings, such as aliases, functions and other interactive features like the prompt, without affecting other users' preferences.
/home/username/
.Vocabulario
En inglés | Traducción preferida | Otras traducciones |
---|---|---|
daemon | daemon | |
rolling release | rolling release | |
script | script | archivo de órdenes, archivo de procesamiento por lotes |
shell, command shell | shell | intérprete de órdenes, intérprete de comandos |
kernel | kernel | núcleo |
swap | swap | espacio de intercambio |
dual-boot | dual-boot | Doble arranque o Arranque dual |
backend | backend | |
frontend | frontend | |
Window Manager | Window Manager | Gestor de ventanas |
root | root | raíz |
root (user) | root | superusuario |
library | biblioteca | |
Compositing | Composición | |
Desktop Environment | Entorno de Escritorio | |
driver | driver | controlador |
fan, cooler | fan cooler, cooler | ventilador |
host, hostname | host, hostname |
Closing notes
Recurring procedures include:
- working with pacman (Español);
- using the AUR (Español); and
- adding daemons.