Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/08/2012, 14:10
Avatar de mcun
mcun
 
Fecha de Ingreso: octubre-2010
Ubicación: tras la pantalla
Mensajes: 466
Antigüedad: 13 años, 6 meses
Puntos: 55
Respuesta: Cambiar el nombre a un comando

En que te basas para asegurar eso ???

Es perfectamente viable crear un alias para un comando, es mas todas las referencias a alias usan ejemplos de comandos para ilustrar su uso, y la propia descripción del man menciona comando y en el ejemplo muestra el uso con un comando

Cita:
DESCRIPTION
The alias utility shall create or redefine alias definitions or write
the values of existing alias definitions to standard output. An alias
definition provides a string value that shall replace a command name
when it is encountered; see Alias Substitution .

An alias definition shall affect the current shell execution environ-
ment and the execution environments of the subshells of the current
shell. When used as specified by this volume of IEEE Std 1003.1-2001,
the alias definition shall not affect the parent process of the current
shell nor any utility environment invoked by the shell; see Shell Exe-
cution Environment .
Los ejemplos

Cita:
EXAMPLES
1. Change ls to give a columnated, more annotated output:


alias ls="ls -CF"

2. Create a simple "redo" command to repeat previous entries in the
command history file:


alias r='fc -s'

3. Use 1K units for du:


alias du=du\ -k

4. Set up nohup so that it can deal with an argument that is itself an

alias nohup="nohup "

alias name: