mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-14 19:39:16 +08:00
Clean up the alias command.
This commit is contained in:
parent
1d83077e49
commit
e1797c0eb0
@ -573,9 +573,8 @@ The RTEMS shell has the following general commands:
|
|||||||
Commands
|
Commands
|
||||||
========
|
========
|
||||||
|
|
||||||
This section details the General Commands available. A
|
This section details the General Commands available. A subsection is dedicated
|
||||||
subsection is dedicated to each of the commands and
|
to each of the commands and describes the behavior and configuration of that
|
||||||
describes the behavior and configuration of that
|
|
||||||
command as well as providing an example usage.
|
command as well as providing an example usage.
|
||||||
|
|
||||||
help - Print command help
|
help - Print command help
|
||||||
@ -590,8 +589,8 @@ help - Print command help
|
|||||||
|
|
||||||
**DESCRIPTION:**
|
**DESCRIPTION:**
|
||||||
|
|
||||||
This command prints the command help. Help without arguments prints a
|
This command prints the command help. Help without arguments prints a list of
|
||||||
list of topics and help with a topic prints the help for that topic.
|
topics and help with a topic prints the help for that topic.
|
||||||
|
|
||||||
**EXIT STATUS:**
|
**EXIT STATUS:**
|
||||||
|
|
||||||
@ -599,55 +598,56 @@ This command returns 0.
|
|||||||
|
|
||||||
**NOTES:**
|
**NOTES:**
|
||||||
|
|
||||||
The help print will break the output up based on the environment
|
The help print will break the output up based on the environment variable
|
||||||
variable SHELL_LINES. If this environment variable is not set the
|
SHELL_LINES. If this environment variable is not set the default is 16
|
||||||
default is 16 lines. If set the number of lines is set to that the
|
lines. If set the number of lines is set to that the value. If the shell lines
|
||||||
value. If the shell lines is set 0 there will be no break.
|
is set 0 there will be no break.
|
||||||
|
|
||||||
**EXAMPLES:**
|
**EXAMPLES:**
|
||||||
|
|
||||||
The following is an example of how to use ``alias``:
|
The following is an example of how to use ``alias``:
|
||||||
.. code:: c
|
|
||||||
|
|
||||||
SHLL \[/] $ help
|
.. code-block:: shell
|
||||||
|
|
||||||
|
SHLL [/] $ help
|
||||||
help: ('r' repeat last cmd - 'e' edit last cmd)
|
help: ('r' repeat last cmd - 'e' edit last cmd)
|
||||||
TOPIC? The topics are
|
TOPIC? The topics are
|
||||||
mem, misc, files, help, rtems, network, monitor
|
mem, misc, files, help, rtems, network, monitor
|
||||||
SHLL \[/] $ help misc
|
SHLL [/] $ help misc
|
||||||
help: list for the topic 'misc'
|
help: list for the topic 'misc'
|
||||||
alias - alias old new
|
alias - alias old new
|
||||||
time - time command \[arguments...]
|
time - time command [arguments...]
|
||||||
joel - joel \[args] SCRIPT
|
joel - joel [args] SCRIPT
|
||||||
date - date \[YYYY-MM-DD HH:MM:SS]
|
date - date [YYYY-MM-DD HH:MM:SS]
|
||||||
echo - echo \[args]
|
echo - echo [args]
|
||||||
sleep - sleep seconds \[nanoseconds]
|
sleep - sleep seconds [nanoseconds]
|
||||||
id - show uid, gid, euid, and egid
|
id - show uid, gid, euid, and egid
|
||||||
tty - show ttyname
|
tty - show ttyname
|
||||||
whoami - show current user
|
whoami - show current user
|
||||||
logoff - logoff from the system
|
logoff - logoff from the system
|
||||||
setenv - setenv \[var] \[string]
|
setenv - setenv [var] [string]
|
||||||
getenv - getenv \[var]
|
getenv - getenv [var]
|
||||||
unsetenv - unsetenv \[var]
|
unsetenv - unsetenv [var]
|
||||||
umask - umask \[new_umask]
|
umask - umask [new_umask]
|
||||||
Press any key to continue...
|
Press any key to continue...
|
||||||
rtc - real time clock read and set
|
rtc - real time clock read and set
|
||||||
SHLL \[/] $ setenv SHELL_ENV 0
|
SHLL [/] $ setenv SHELL_ENV 0
|
||||||
SHLL \[/] $ help misc
|
SHLL [/] $ help misc
|
||||||
help: list for the topic 'misc'
|
help: list for the topic 'misc'
|
||||||
alias - alias old new
|
alias - alias old new
|
||||||
time - time command \[arguments...]
|
time - time command [arguments...]
|
||||||
joel - joel \[args] SCRIPT
|
joel - joel [args] SCRIPT
|
||||||
date - date \[YYYY-MM-DD HH:MM:SS]
|
date - date [YYYY-MM-DD HH:MM:SS]
|
||||||
echo - echo \[args]
|
echo - echo [args]
|
||||||
sleep - sleep seconds \[nanoseconds]
|
sleep - sleep seconds [nanoseconds]
|
||||||
id - show uid, gid, euid, and egid
|
id - show uid, gid, euid, and egid
|
||||||
tty - show ttyname
|
tty - show ttyname
|
||||||
whoami - show current user
|
whoami - show current user
|
||||||
logoff - logoff from the system
|
logoff - logoff from the system
|
||||||
setenv - setenv \[var] \[string]
|
setenv - setenv [var] [string]
|
||||||
getenv - getenv \[var]
|
getenv - getenv [var]
|
||||||
unsetenv - unsetenv \[var]
|
unsetenv - unsetenv [var]
|
||||||
umask - umask \[new_umask]
|
umask - umask [new_umask]
|
||||||
rtc - real time clock read and set
|
rtc - real time clock read and set
|
||||||
|
|
||||||
**CONFIGURATION:**
|
**CONFIGURATION:**
|
||||||
@ -666,8 +666,7 @@ alias - add alias for an existing command
|
|||||||
|
|
||||||
**DESCRIPTION:**
|
**DESCRIPTION:**
|
||||||
|
|
||||||
This command adds an alternate name for an existing command to
|
This command adds an alternate name for an existing command to the command set.
|
||||||
the command set.
|
|
||||||
|
|
||||||
**EXIT STATUS:**
|
**EXIT STATUS:**
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user