System information
An Introduction to Shells in General
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 58
5.3.43 stty
Syntax: stty [-a|g] [-F device] [SETTING]...
Without arguments, prints baud rate, line discipline, and deviations from stty sane.
Options:
-F device open device instead of stdin
-a print all current settings in human-readable form
-g print in stty-readable form
[SETTING] see documentation
5.3.44 sync
Syntax: sync
Write all buffered filesystem blocks to disk.
5.3.45 tail
Syntax: Tail [OPTION]... [FILE]...
Print last 10 lines of each FILE to standard output. With more than one FILE, precede each with
a header giving the file name. With no FILE, or when FILE is -, read standard input.
Options:
-c N[kbm] output the last N bytes
-n N[kbm] print last N lines instead of last 10
-f output data as the file grows
-q never output headers giving file names
-s SEC wait SEC seconds between reads with -f
-v always output headers giving file names
If the first character of N (bytes or lines) is a '+', output begins with the Nth item from the start of
each file, otherwise, print the last N items in the file. N bytes may be suffixed by k (x1024), b
(x512), or m (1024^2).
Example:
$ tail -n 1 /etc/resolv.conf
nameserver 10.0.0.1
5.3.46 tee
Syntax: tee [OPTION]... [FILE]...
Copy standard input to each FILE, and also to standard output.
Options:
-a append to the given FILEs, do not overwrite
Example:
$ echo "Hello" | tee /tmp/foo
$ cat /tmp/foo
Hello