Linux Command
Linux Command
* Synopsis:
alias <name> {<value>}
* Arguments:
<name> the name of the alias. names must begin with a letter
and use only the characters "A"-"Z", "0"-"9" or "_".
<value> the value of the alias.
apropos
* Synopsis:
apropos <command>
* Arguments:
<command> command name.
browse
* Synopsis:
browse [-n] [<url>]
* Arguments:
<url> url of a website. protocol defaults to http.
* Options:
-n open in a new browser window. (with JS/UIX 0.3x default value!)
cal
* Synopsis:
cal [-w] [[<month_nr>] [<year>]]
* Arguments:
<month_nr> number of month (1..12), default current month.
<year> year (1900..9999), default current year.
* Options:
-w show week numbers.
cat
* Synopsis:
cat <filelist>
concatenate files
joins any specified files to a new stream.
any lines in STDIN will preceed the content of theese files.
* Arguments:
<filelist> any number of file-paths separated by spaces.
cd
* Synopsis:
cd [<dirname>]
path/name-conventions:
"/" = file-separator
"." = current directory
".." = parent directory.
chmod
* Synopsis:
chmod [-R] <mode> <filelist>
where <mode> is octal number or {u|g|o|a}(+|-){w|r|x|s} or {u|g|o|a}=(o|u|g)
* Arguments:
<filelist> file(s) to be set (you must be the file's owner).
<mode> either an octal number representing a bit-vector,
where position "x" stands for:
00x00 ... user (owner of the file)
000x0 ... group
0000x ... others
0x000 ... sticky-bit
* Options:
-R recursive (include nested files and directories).
clear
* Synopsis:
clear
cp
* Synopsis:
cp [-ipr] <sourcefile> {<sourcefile>} <target>
* Arguments:
<sourcefile> file(s) or directories to be copied
if called with multiple source-files the target must be
a directory
<target> the file name of the new file or the name of a directory.
* Options:
-i ignore error warnings
-p copy file permissions
-r recursive - include nested files
date
* Synopsis:
date [-l|u] [+format]
* Arguments:
<format> a string consisting of any of the following characters:
%a week-day abrv., Sun-Sat
%d day, 1-31
%D date as mm/dd/yy
%h month abrv., Jan-Dec
%H hours, 00-23
%j year-day, 001-366
%m month, 01-12
%M minutes, 00-59
%n new line
%r time in AM/PM
%S seconds, 00-59
%t tab (insert space)
%T time as hh:mm:ss
%w week-day, 0-6, Sun=0
%y last two digits of the year, 00-99
* Options:
-l local time (default)
-u UTC time
echo
* Synopsis:
echo [<args>]
* Arguments:
<args> any text separated by any amount of space.
exit
* Synopsis:
exit
features
* Synopsis:
features
fexport
* Synopsis:
fexport
fimport
* Synopsis:
fimport
hallo
* Synopsis:
hallo
halt
* Synopsis:
halt
hello
* Synopsis:
hello
help
* Synopsis:
help
info
* Synopsis:
info
invaders
* Synopsis:
invaders
starts the well kown arcade game: space invaders for JS/UIX.
please note that there is only one life and only one shot at a time.
usage: use cursor <LEFT> and cursor <RIGHT> to move, press <SPACE> to fire.
(alternatively you may use the vi-movements "h"=left and "l"=right.)
press "p" for pause, "q" or <ESC> to quit.
js
* Synopsis:
js -l[t]|t <varname>
* Arguments:
<varname> name of a variable, object or property
may be in form of "varname", "varname[index]",
"varname.prop[index]", "varname[index][index]" and so on.
<value> a numeric or string value for set (option -s)
<expression> expression to be evaled (option -e)
* Options:
-l[t] list an object or property
-s[n] set an object's value or object's property's value
"-sn" for numeric (plain) value (default: string)
-t report object's type or object's property's type
-e eval expression (use single quotes to hide specials from shell)
logname
* Synopsis:
logname
ls
* Synopsis:
ls <dirname>
lists a directory.
* Arguments:
<dirname> ralative or absolute file path.
if called with option "i" or "l" also the name of a plain file.
* Options:
-C force output to colums
-F show file type (appended to filename)
"/" ... directory
"*" ... executable
"@" ... link
<nothing> ... plain file
-L force output to one file by line
-a show hidden '.'-files.
-i show inode-id (file serial number)
-l long output, format:
"mode inodes user group bytes mdate [YYYY/MM/DD hh.mm:ss] name"
* Synopsis:
mail [<user@host>]
* Arguments:
<user@host> mail address.
man
* Synopsis:
man <command>
* Arguments:
<command> command name.
for an alias its value is displayed.
* Options:
-p opens a new browser window with the full list.
mkdir
* Synopsis:
mkdir <dirname> {<dirname>}
* Arguments:
<dirname> directory/ies to be inited
more
* Synopsis:
more <filename>
displays the specified file in a pager. if used in a pipe, any lines in STDIN
will preceed the content of any specified file. Any outgoing lines in STDOUT
will be stripped off of any type-styles.
mv
* Synopsis:
mv [-i] <filename> {<filename>} <target>
* Arguments:
<filename> file(s) or directories to be moved
if called with multiple files the target must be a directory
<target> the file name of the new file or the name of a directory.
* Options:
-i ignore error warnings
news
* Synopsis:
news
pager
* Synopsis:
pager <filename>
pg
* Synopsis:
pager <filename>
pr
* Synopsis:
pr <filelist>
* Arguments:
<filelist> list of files to be printed.
any content of a lefthand pipe will preceed the content of
these files.
ps
* Synopsis:
ps
pwd
* Synopsis:
pwd
reboot
* Synopsis:
reboot
rm
* Synopsis:
rm [-ir] <filename> {<filename>}
* Arguments:
<filename> file(s) to be removed
* Options:
-i ignore error warnings
-r recursive - discard directories and included files
rmdir
* Synopsis:
rmdir [-i] <dirname> {<dirname>}
* Arguments:
<dirname> directory/ies to be removed
* Options:
-i ignore error warnings
set
* Synopsis:
set [<varname> {<varname>} [= {<value>}]]
* Arguments:
<varname> the name of the variable. names must begin with a letter
and use only the characters "A"-"Z", "0"-"9" or "_".
<value> the value of the variable. use quotes and escapes ("\") for
complex expressions.
if no value is assigned, the variable holds an empty value.
sh
* Synopsis:
shell, commands, aliases, and variables.
Quoting levels:
double-quotes string with variable interpolation
single-quotes literal string without interpolation
backticks (`) will be expanded to the output processed by a subshell called
with this string as its arguments.
Order of Interpolation:
First all control-characters ("`", "|", ";", ">", ">>") will be traced, then
any terms in backticks will be evaluated in a new subshell and the return
values will be inserted and parsed as arguments.
Afterwards all variables of the current arguments will be expanded. If the
first argument is an alias, the alias will be expanded, its value parsed and
copied in front the first remaining argument.
In case a backslash ("\") is found at the end of a line, the line is
concatenated with the following one to a single line.
Order of Execution:
If the now first argument is a shell-command (set, unset, alias, unalias, cd)
it will be executed in the same shell.
Else, if an executable file with the name of the command is found in any
directory specified in the PATH-variable, this command will be executed in a
new sub-process spawned as child of the current shell. If the first argument
contains a slash it will be interpretated as relative path-name of a binary
or an executable shell-script to be processed in a new sub-shell.
Finally, if the first-argument is not a valid file-name, an error message will
be put to STDERR.
Permissions, Modes:
In order to be executable a script or command must either be set to execute
privileges for the effective user or group or - in the case of a script called
in the form "sh <filename>" - with sufficient read permissions.
Permissions can be set using "chmod".
(Since the shell is the only script-language present, the *magic cookie*
"#!/bin/sh" may be absent. Permissions take precedence.)
Variable Interpolation:
Variables will be expanded in any double-quoted or unquoted term.
Use $<varname> or ${<varname>} to retrieve the value of any defined variable.
variables can be hidden from the shell using single-quotes or escapes with
backslash ("\").
Positional Parameters:
In shell-scripts the term $<number> - where <number> is in the range 0-9 -
expands to positional paramters. $0 will expand to the command or script name
while the variable $1-$9 will give the value of the first argument and so on.
* Arguments:
<filename> a script to be opened in a subshell
<args> currently, if the first argument is not a valid filename,
the arguments will be interpreted as arguments to be executed
by a new subshell.
shell
* Synopsis:
JS/UIX-shell
see "sh" for more.
splitmode
* Synopsis:
splitmode <mode>
* Arguments:
<mode> "on" switch statusline on
"off" switch statusline off
stty
* Synopsis:
stty <option>
* Options:
-a list all options
-g list all options in formated output
[-]blink [no] cursor blinking
[-]block [no] block cursor
[-]smart [no] smart console (minimal scrolling)
[-]rows n [re]set max. terminal line to n
sane reset to sane values
su
* Synopsis:
su <username>
* Arguments:
<username> user, name must consist of the characters [A-Za-z0-9_]
only the first 8 characters are recognized (rest ignored).
time
* Synopsis:
time [-l|u]
* Options:
-l local time (default)
-u UTC time
touch
* Synopsis:
touch <filenamename> {<filenamename>}
* Arguments:
<filenamename> name of the file to be modified or created.
type
* Synopsis:
type [-ipru|-n <num>] [<args>]
writes the given arguments back to the terminal in specified type style.
* Arguments:
<args> any text separated by any amount of space.
* Options:
-n <num> number representing the type style as a bit vector;
for details see the other options identifying styles
by the following characters:
-p plain (0)
-r reverse (1)
-u underline (2)
-i italics (4)
-s stroke (8)
unalias
* Synopsis:
unalias <name>
* Arguments:
<name> the name of the alias. names must begin with a letter
and use only the characters "A"-"Z", "0"-"9" or "_".
uname
* Synopsis:
uname
unset
* Synopsis:
unset <varname>
* Arguments:
<varname> the name of the variable. names must begin with a letter
and use only the characters "A"-"Z", "0"-"9" or "_".
vi
* Synopsis:
vi [<filename>]
Cursor Movements:
Editing Comands:
* Arguments:
<filename> a file to be opened.
view
* Synopsis:
view [<filename>]
wc
* Synopsis:
wc [-clw]
word count.
counts the characters, words, and lines of a specified file or from STDIN.
* Options:
-c count characters
-l count lines
-w count words
web
* Synopsis:
web [-n] [<url>]
synonym for "browse".
which
* Synopsis:
which <command>
* Arguments:
<command> name of the command to be found.
write
* Synopsis:
write <args>
* Arguments:
<args> any arguments (treated as strings separated by spaces).
type styles can be specified as follows:
%+<typestyle> switch type style on
%-<typestyle> switch type style off
%n new line
%% escaped "%"
where <typestyle> is marked by one the following characters:
p plain (+p discards all active styles, -p is ineffective)
r reverse
u underline
i italics
s strike.
type styles may overlap.
-> example: write "Do not use %+rREVERSE%-r for 100%% of the text."