mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-30 08:51:06 +00:00
150 lines
3.5 KiB
Plaintext
150 lines
3.5 KiB
Plaintext
File: SHELLHELP
|
|
A2osX Shell, version 0.92
|
|
These shell commands are defined internally. Type help to see this list.
|
|
Type help NAME to find out more about the function NAME.
|
|
Use man shell to find out more about the shell in general.
|
|
|
|
job_spec [&]
|
|
[[ expression ]]
|
|
. filename [arguments]
|
|
cd [dir]
|
|
date
|
|
echo [-N] [arg ...]
|
|
exit [n]
|
|
if [-def file/dir]|[str =|!= str]|[int -eq|-ne|-lt|-le|-gt|-ge int] [else] fi
|
|
md dir
|
|
pause
|
|
popd
|
|
pushd
|
|
pwd
|
|
rd dir
|
|
read [-SP] var
|
|
ren vol vol
|
|
set [-X] [var = [ expression ]]
|
|
shift
|
|
sleep n
|
|
startproc driver
|
|
time
|
|
while [ expression ] loop
|
|
|
|
Other Shell Topics:
|
|
I/O Redirection
|
|
Variables
|
|
|
|
|
|
File: GETTY
|
|
|
|
File: IPCONFIG/IPCONFIG2
|
|
|
|
File: KCONFIG
|
|
|
|
File: LOGIN
|
|
|
|
File: TCPIPD
|
|
|
|
File: TELNETD
|
|
|
|
File: DHCPCLNT
|
|
|
|
File: HOSTS
|
|
The etc/hosts file is
|
|
|
|
File: HOSTNAME
|
|
|
|
File: TCPIP
|
|
Talk about etc tcpip.conf ipconfig network drivers etc.
|
|
|
|
File: INIT
|
|
The whole init system, commands and control files.
|
|
|
|
File: INSDRV
|
|
|
|
File: SHELL
|
|
|
|
Talk about the shell, programming, the program, refer to HELP command to get list of SHELL internals, and then HELP or MAN a shell command to get more.
|
|
|
|
File: HTTPD
|
|
|
|
File: CD
|
|
|
|
cd: cd [dir]
|
|
|
|
Change the shell working directory.
|
|
|
|
Change the current directory to DIR. The default DIR is the value of the
|
|
HOME shell variable.
|
|
|
|
cd is an internal A2osX shell command.
|
|
|
|
Exit Status:
|
|
Returns 0 if the directory is changed, and if $PWD is set successfully when;
|
|
non-zero otherwise.
|
|
|
|
File: HELP/REDIRECTION
|
|
|
|
File: HELP/VARIABLES
|
|
|
|
File: HELP/ECHO
|
|
|
|
echo: echo [-neE] [arg ...]
|
|
Write arguments to the standard output.
|
|
|
|
Display the ARGs, separated by a single space character and followed by a
|
|
newline, on the standard output.
|
|
|
|
Options:
|
|
-n do not append a newline
|
|
-e enable interpretation of the following backslash escapes
|
|
-E explicitly suppress interpretation of backslash escapes
|
|
|
|
`echo' interprets the following backslash-escaped characters:
|
|
\a alert (bell)
|
|
\b backspace
|
|
\c suppress further output
|
|
\e escape character
|
|
\E escape character
|
|
\f form feed
|
|
\n new line
|
|
\r carriage return
|
|
\t horizontal tab
|
|
\v vertical tab
|
|
\\ backslash
|
|
\0nnn the character whose ASCII code is NNN (octal). NNN can be
|
|
0 to 3 octal digits
|
|
\xHH the eight-bit character whose value is HH (hexadecimal). HH
|
|
can be one or two hex digits
|
|
|
|
Exit Status:
|
|
Returns success unless a write error occurs.
|
|
|
|
File: HELP/EXIT
|
|
|
|
exit: exit [n]
|
|
Exit the shell.
|
|
|
|
Exits the shell with a status of N. If N is omitted, the exit status
|
|
is that of the last command executed.
|
|
|
|
File: HELP/IF
|
|
|
|
if: if [ expression ] commands [ELSE] commands fi
|
|
Execute commands based on conditional expression.
|
|
|
|
File: MAN/MAN
|
|
|
|
man: man [command|topic]
|
|
|
|
Man formats and displays on-line manual pages for commands and topics of A2osX.
|
|
The man shell script looks for a manpage file for the argument (command or topic)
|
|
and if it finds a corresponding file uses more to display the contents. If no
|
|
argument is passed to man, then this page is displayed. If no file is found for
|
|
argument then an error is displayed. Man looks for its man pages in
|
|
${root}usr/share/man.
|
|
|
|
Available man files are:
|
|
|
|
<<<<Put LS of usr/share/man here>>>>>
|
|
|
|
File:
|
|
|