Académique Documents
Professionnel Documents
Culture Documents
The Single Unix Specification (SUS) specifies that who should list information
about accessible users. The XSI extension also specifies that the data of the
username, terminal, login time, process ID, and time since last activity occurred
on the terminal, furthermore, an alternate system database used for user
information can be specified as an optional argument to who.
ALIAS
An alias will last for the life of the shell session. Regularly used aliases can be set
from the shell's configuration file ( ~/.cshrc or the systemwide /etc/csh.cshrc for
csh, or ~/.bashrc or the systemwide /etc/bashrc or /etc/bash.bashrc for bash)
so that they will be available upon the start of the corresponding shell session.
The alias commands may either be written in the config file directly or SOURCE
from a separate file, typically named .alias (or .alias-bash, .alias-csh, etc., if
multiple shells may 1be used).
ALIAS copy='cp'
HISTORY
The various Unix shells maintain a record of the commands issued by the user
during the current session. The history command manipulates this history list. In
its simplest form, it prints the history list. Options allow for the recall and editing
of particular commands and for setting parameters such as the number of past
commands to retain in the list.
In early versions of Unix the history command was a separate program. However,
most shells have long included the history command as a shell built-in, so the
separate program is no longer in common use. Since most current history
commands are shell built-ins, details depend on the choice of Unix shell.
XCALC
xcalc - scientific calculator for X
xcalc is a scientific calculator desktop accessory that can emulate a
TI-30 or an HP-10C.
xcalc [-stipple] [-rpn] [-toolkitoption...]
Pointer Usage: Operations may be performed with pointer button 1, or in
some cases, with the keyboard. Many common calculator operations have
keyboard accelerators. To quit, press pointer button 3 on the AC key
of the TI calculator, or the ON key of the HP calculator.
Calculator Key Usage (TI mode): The numbered keys, the +/- key, and the
+, -, *, /, and = keys all do exactly what you would expect them to.
It should be noted that the operators obey the standard rules of prece-
dence. Thus, entering "3+4*5=" results in "23", not "35". The paren-
theses can be used to override this. For example, "(1+2+3)*(4+5+6)="
results in "6*15=90".
The action procedures associated with each function are given below.
These are useful if you are interested in defining a custom calculator.
The action used for all digit keys is digit(n), where n is the corre-
sponding digit, 0..9.
FORTUNE
Several common options exist that change the way command-line versions of fortune behave:
Option Action
-f Print out a list of all fortune files that would have been searched, but do not
print a fortune
Use only quotations longer than the length specified with -n , or 160
-l
characters if -n is not used
-m [patter
Print all fortunes matching the regular expression specified in [pattern]
n]
-n [length Override the length used by -l and -s to determine "long" and "short"
] messages (default 160 characters)
Use only quotations shorter than the length specified with -n , or 160
-s
characters if -n is not used
-w Wait for a period of time before terminating; useful for situations in which a
fortune needs to be read before the screen is cleared
DF
df (abbreviation for disk free) is a standard Unix command used to display the
amount of available disk space for file systems on which the invoking user has
appropriate read access. df is typically implemented using the statfs or statvfs
system calls.
-k
Use 1024-byte units, instead of the default 512-byte units, when writing
space figures.
-P
Use a standard, portable, output format
-t
If XSI compliant, show allocated space as well[dubious discuss]
-h
Display in KB, MB, or GB
DU
du (abbreviated from disk usage) is a standard Unix program used to estimate
file space usagespace used under a particular directory or files on a file
system.
By default, the Single UNIX Specification (SUS) specifies that du is to display the
file space allocated to each file and directory contained in the current directory.
Links will be displayed as the size of the link file, not what is being linked to; the
size of the content of directories is displayed, as expected.
As du reports allocation space and not absolute file space, the amount of space
on a file system shown by du may vary from that shown by df if files have been
deleted but their blocks not yet freed. Also the minfree setting that allocates
datablocks for the filesystem and the super user processes creates a discrepancy
between total blocks and the sum of used and available blocks. The minfree
setting is usually set to about 5% of the total filesystem size.
EXIT
TOP
The top program provides a dynamic real-time view of a running system. It can
display system summary information as well as a list of taskscurrently being
managed by the Linux kernel. The types of system summary information shown
and the types, order and size of information displayed for tasks are all user
configurable and that configuration can be made persistent across restarts.
Tr
tr - translate or delete characters
Tag Description
-d, --delete
-s, --squeeze-repeats
-t, --truncate-set1
--version
output version information and exit
\\ Backslash
\a audible BEL
\b Backspace
\f form feed
\n new line
\r Return
\t horizontal tab
\v vertical tab
CHAR1-CHAR2
[CHAR*]
[CHAR*REPEAT]
[:alnum:]
[:alpha:]
all letters
[:blank:]
[:cntrl:]
[:digit:]
all digits
[:graph:]
[:print:]
[:punct:]
[:space:]
[:upper:]
[:xdigit:]
[=CHAR=]
FOLD
fold - wrap each input line to fit in specified width.
Wrap input lines in each FILE (standard input by default), writing to standard
output.
Mandatory arguments to long options are mandatory for short options too.
Tag Description
-b, --bytes
-c, --characters
count characters rather than columns
-s, --spaces
break at spaces
-w, --width=WIDTH
--version
KILL
The default signal for kill is TERM (which will terminate or "kill" the process).
Use -l or -L to list available signals. Particularly useful signals include HUP, INT,
KILL, STOP, CONT, and 0. Alternate signals may be specified in three ways: -9, -
SIGKILL or -KILL. Negative PID (process ID) values may be used to choose
whole process groups; see the PGID column in the output of the ps command. A
PID of -1 is special; it indicates all processes except two: the kill process itself,
and init.
pid [...] Send a signal to every pid listed.
-signal, Specify the signal to be sent. The signal can be specified by using name or numbe
-s signal, signals, and their identifying names, are listed on our signals page.
--signal sig
nal
-l, --list List signal names. This option has optional argument, which will convert signal num
[signal] or other way around.
-L, --table List signal names in a nice table.
kill examples
kill -9 -1
Sends the default signal (TERM) to the processes with IDs 123, 543, 2341,
and 3453, terminating those processes.
TAR
The tar program is used to create, maintain, modify, and extract files that
are archived in the tar format.
tar was originally developed in the early days of Unix for the purpose of backing
up files to tape-based storage devices. It was later formalized as part of
the POSIX standard, and today is used to collect, distribute, and archive files,
while preserving file systemattributes such as user and group permissions,
access and modification dates, and directory structures.
This documentation covers the GNU version of tar, which is included with most
modern variants of the Linux operating system.
Operation
The first argument to tar should be a function specification: either one of the
letters A, c, d, r, t, u, or x, or one of the long function names. A function letter
does not need to be prefixed with a dash ("-"), and may be combined with other
single-letter options. A long function name must be prefixed with a double dash
("--"). Some options take a parameter; with the single-letter form these must be
given as separate arguments. With the long form, they may be given by
appending "=value" to the option.
SED
sed, short for "stream editor", allows you to filter and transform text.
If you do not specify INPUTFILE, or if INPUTFILE is "-", sed filters the contents of
the standard input. The script is actually the first non-option parameter,
which sed specially considers a script and not an input file if and only if none of
the other options specifies a script to be executed (that is, if neither of the -
e and -f options is specified).
-l N, --line-length=N Specify the desired line-wrap length, N, for the "l" command.
-s, --separate Consider files as separate rather than as a single continuous long
-u, --unbuffered Load minimal amounts of data from the input files and flush the o
often.
CRONTAB
SYNOPSIS
DESCRIPTION
Crontab is the program used to install, deinstall or list the tables used to drive
the cron daemon in Vixie Cron. Each user can have their own crontab, and
though these are files in /var, they are not intended to be edited directly. If the
-u option is given, it specifies the name of the user whose crontab is to be
tweaked. If this option is not given, crontab examines "your" crontab, i.e., the
crontab of the person executing the command. Note that su can confuse
crontab and that if you are running inside of su you should always use the -u
option for safety's sake. cron file is used to install a new crontab from some
named file or standard input if the pseudo-filename '-' is given.
The comma (,) operator specifies a list of values, for example: "1,3,4,7,8".
The dash (-) operator specifies a range of values, for example: "1-6",
which is equivalent to "1,2,3,4,5,6".
The slash (/) operator, can be used to skip a given number of values. For
example, "*/3" in the hour time field is equivalent to
"0,3,6,9,12,15,18,21"; "*" specifies 'every hour' but the "/3" means that
only the first, fourth, seventh...and such values given by "*" are used.
Cron will email to the user all output of the commands it runs, to silence this,
redirect the output to a log file or to /dev/null.
MOUNT
mount [-lhV]
All files accessible in Unix, or a Unix-style system such as Linux, are arranged in
one big tree: the file hierarchy, rooted at /. These files can be spread out over
several devices. The mount command attaches a filesystem, located on some
device or other, to the file tree. Conversely, the umount command will detach it
again.
This tells the kernel to attach the filesystem found on device (which is of
type type) at the directory dir. The previous contents (if any), owner,
and mode of dir become invisible, and as long as this filesystem remains
mounted, the pathname dir refers to the root of the filesystem on device.
mount /dir