COMMAND NAME
reboot - Restarts the system.
AIX SYNTAX
{ reboot | fastboot } [ -l ] [ -n ] [ -q ] [ -t mmddHHMM [ yy ] ]
LINUX SYNTAX
reboot [-n] [-w] [-d] [-f] [-i]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-d
Don't write the wtmp record.
-f
Force halt or reboot, don't call shutdown(8).
-i
Shut down all network interfaces just before halt or
reboot.
-p
When halting the system, do a poweroff. This is the default when halt
is
called as poweroff.
COMMAND NAME
red - Edits text by line.
AIX SYNTAX
red [-pString] [-s | -] [File]
LINUX SYNTAX
red [-] [-Gs] [-p string] [file]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-G
Forces backwards compatibility. Affects the commands `G', `V',
`f',
`l', `m', `t', and `!!'
COMMAND NAME
rsh - Executes the specified command at the remote host or logs into the remote host.
AIX SYNTAX
{ rsh | remsh } RemoteHost [ -n ] [ -l User ] [ -f | -F ] [ -k realm] [ Command]
LINUX SYNTAX
rsh [-Kdnx] [-k realm] [-l username] host [command]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-K
The -K option turns off all Kerberos authentication.
-d
The -d option turns on socket debugging (using setsockopt(2))
on the TCP
sockets used for communication with the remote host.
-k
The -k option causes rsh to obtain tickets for the remote host in
realm instead
of the remote host's realm as determined by krb_realmofhost(3).
-l
By default, the remote username is the same as the local username.The
-l
option allows the remote name to be specified. Kerberos
authentication is
used, and authorization is determined as in rlogin(1).
-n
The -n option redirects input from the special device /dev/null (see
the BUGS
section of this manual page).
-x
The -x option turns on DES encryption for all data exchange. This may
introduce
a significant delay in response time.
COMMAND NAME
sed - Provides a stream editor.
AIX SYNTAX
sed [ -n ] Script [ File ... ]
sed [ -n ] [ -e Script ] ... [ -f ScriptFile
] ... [ File ... ]
LINUX SYNTAX
sed [-n] [-V] [-quiet] [--silent]
[--version] [--help]
[-e script] [--expression=script]
[-f script-file] [--file=script-file]
[script-if-no-other-script]
[file. . .]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-V
--version
Print out the version of sed that is being run and a copyright
notice, then
exit.
-h
--help
Print a usage message briefly summarizing these command-line
options
and the bug-reporting
address, then exit. In AIX Interacive sed delays one line before
echoing
the output, but in linux it processes each line before accepting the
second
input with sed/s/.../../g option
COMMAND NAME
shutdown - Ends system operation.
AIX SYNTAX
shutdown [ -d ] [ -F ] [ -h ] [ -i
] [ -k ] [ -l ] [ -m ] [ -p ]
[ -r ] [ -t mmddHHMM
[ yy ] ] [ -u ] [ -v ] [ +Time [
Message ] ]
LINUX SYNTAX
shutdown [ -t sec] [-arkhncfF] time [warning-message]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-a
Use /etc/shutdown.allow.
-t sec
Tell init(8) to wait sec seconds between
sending processes the warning
and the kill signal, before changing to another
runlevel.
-n
[DEPRECATED] Don't call init(8) to do the
shutdown but do it ourself.
The use of this option is discouraged, and its results are not always
what
you'd expect.
-f
Skip fsck on reboot.
-c
Cancel an already running shutdown.
With this option it is of course not
possible to give the time argument, but you
can enter a explanatory message
on the command line that will be sent to all users.
COMMAND NAME
sleep - Suspends execution for an interval.
AIX SYNTAX
sleep Seconds
LINUX SYNTAX
sleep [OPTION]... NUMBER[SUFFIX]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
Display this help and exit
--version
Output version information and exit
COMMAND NAME
telinit - Initializes and controls processes.
AIX SYNTAX
{ telinit | init } { 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | a |
b | c | Q | q | S | s |
M | m | N }
LINUX SYNTAX
telinit [ -t sec ] [ 0123456sSQqabcUu ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
Q or q
Tell init to re-examine the /etc/inittab file.
U or u
Tell init to re-execute itself
(preserving the state). No re-examining
of /etc/inittab file hap&endash; pens. un level should be one of
Ss12345, otherwise
request would be silently ignored
COMMAND NAME
type - Writes a description of the command type.
AIX SYNTAX
type CommandName ...
LINUX SYNTAX
type [-all] [-type | -path] name [name ...]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-all name
If the -all flag is used, type prints
all of the places that contain an executable
named name.
-type name
If the -type flag is used, type prints a
phrase which is one of alias, keyword,
function, builtin, or file if name is an alias, shell reserved
word, function, builtin,
or disk file, respectively.If the name is not found,
then nothing is printed, and
an exit status of false is returned.
-path name
If the -path flag is used, type either returns the name
of the disk file that would
be executed if name were specified as a command name, or
nothing if -type would
not return file.
COMMAND NAME
ulimit - Sets or reports user resource limits.
AIX SYNTAX
ulimit [ -H ] [ -S ] [ -a ] [ -c ] [ -d ] [ -f ] [ -m ] [ -n ] [ -s ] [ -t ] [ Limit ]
LINUX SYNTAX
ulimit [-SHacdfmstpnuv [limit]]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX :
-p
the pipe size in 512-byte blocks (this may not be
set)
-u
the maximum number of processes available to a single user
-v
The maximum amount of virtual memory available to the shell
COMMAND NAME
vi - Edits files with a full-screen display.
AIX SYNTAX
{ vi | vedit } [ -l ] [ -R ] [ -tTag ]
[ -v ] [ -wNumber]
[ -yNumber ] [ -r [ File ] ] [{ + | -c }
{ Subcommand } ] [ File ... ]
LINUX SYNTAX
vim [options] [file . . . ]
vim [options] -
vim [options] -t tags
vim [options] -q [errorfile]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-b
Binary mode. A few options will be set that makes it possible to edit
a
binary or executable file.
-C
Compatible. Set the 'compatible' option. This will make Vim
behave
mostly like Vi, even though a .vimrc file exists.
-d {device}
Open {device} for use as a terminal. Only on the Amiga.
Example: "-d con:20/30/600/150".
-e
Start Vim in Ex mode, just like the executable was called "ex".
-f
Foreground. For the GUI version, Vim will not fork and detach
from the
shell it was started in. On the Amiga, Vim is not restarted to
open a new
window. This option should be used when Vim is executed by a
program
that will wait for the edit session to finish (e.g. mail). On the
Amiga the
":sh" and ":!" commands will not work.
-F
If Vim has been compiled with FKMAP support for editing
right-to-left
oriented files and Farsi keyboard mapping, this option starts Vim in
Farsi
mode, i.e. 'fkmap' and 'rightleft' are set. Otherwise an error
message is
given and Vim aborts.
-g
If Vim has been compiled with GUI support, this option enables
the GUI.
If no GUI support was compiled in, an error message is given
and Vim
aborts.
-h
Give a bit of help about the command line arguments and options.After
this
Vim exits.
-H
If Vim has been compiled with RIGHTLEFT support for editing
right-to-left
oriented files and Hebrew Keyboard mapping, this option starts Vim
in
Hebrew mode, i.e. 'hkmap' and 'rightleft' are set. Otherwise an
error message
is given and Vim aborts.
-i {viminfo}
When using the viminfo file is enabled, this option sets the filename
to use,
instead of the default "~/.viminfo". This can also be used to skip
the use
of the .viminfo file, by giving the name "NONE".
-m
Modifying files is disabled. Resets the 'write' option, so that
writing files
is not possible.
-N
No-compatible mode. Reset the 'compatible' option. This will
make Vim
behave a bit better, but less Vi compatible, even though a
.vimrc file does
-not exist.
-n
No swap file will be used. Recovery after a crash will be possible.
Handy
if you want to edit a file on a very slow medium (e.g. floppy). Can
also
be done with ":set uc=0". Can be undone with ":set uc=200".
-o[N]
Open N windows. When N is omitted, open one window for each
file.
-r
List swap files, with information about using them for recovery.
-s
Silent mode. Only when started as "Ex" or when the "-e" option
was given
before the "-s" option.
-s {scriptin}
The script file {scriptin} is read. The characters in the file are
interpreted as
if you had typed them. The same can be done with the command
":source!{scriptin}". If the end of the file is reached before the
editor exits,
further characters are read from the keyboard.
-T {terminal}
Tells Vim the name of the terminal you are using. Only required
when
the automatic way doesn't work. Should be a terminal known to Vim
(builtin) or defined in the termcap or terminfo file.
-u {vimrc}
Use the commands in the file {vimrc} for initializations. All the
other
initializations are kipped. Use this to edit a special kind of files.
It can
also be used to skip all initializations by giving the name
"NONE".
See ":help initialization" within vim for more details.
-U {gvimrc}
Use the commands in the file {gvimrc} for GUI initializations.
All the
other GUI initializations are skipped. It can also be used to skip
all GUI
initializations by giving the name "NONE".
-w {scriptout}
All the characters that you type are in the file {scriptout},
until
you exit Vim. This is useful if you wanrecorded t to create a script
file to be used
with "vim -s" or ":source!". If the {scriptout} file exists,
characters are
appended.
-W {scriptout}
Like -w, but an existing file is overwritten.
-x
Filter read and written files through crypt. Not implemented yet.
-Z
Restricted mode. Works like the executable starts with "r".
--
Denotes the end of the options. Arguments after this will be handled
as
a file name. This can be used to edit a filename that starts with a
'-'
COMMAND NAME
yacc - Generates a LALR(1) parsing program from input
consisting of a context-free
grammar specification.
AIX SYNTAX
yacc [ -b Prefix ] [ -C ] [ -d ] [ -l
] [ -NnNumber ] [ -NmNumber ]
[-NrNumber ][ -p Prefix ][ -s ] [ -t
] [ -v ] [ -y Path ] Grammar
LINUX SYNTAX
yacc [ -dlrtv ] [ -b file_prefix
] [ -p symbol_prefix ] filename
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX :
-r
The -r option causes yacc to produce separatte files for
code and tables.
The code file is named y.code.c, and the tables file is named
y.tab.c.
COMMAND NAME
ps - Shows current status of processes.
AIX SYNTAX
X/Open Standards
ps [ -A ] [ -N ] [ -a ] [ -d ] [
-e ] [ -f ] [ -k ] [ -l ] [ -F
format]
[ -o Format ] [ -c Clist ] [ -GGlist ] [
-g Glist ] [ -m ] [ -n NameList ]
[ -p Plist ] [ -t Tlist ] [ -U Ulist ] [
-u Ulist ]
Berkeley Standards
ps [ a ] [ c ] [ e ] [ ew ] [ eww
] [ g ] [ n ] [ U ] [ w ] [ x
] [ l | s | u | v ]
[ t Tty ] [ProcessNumber ]
LINUX SYNTAX
ps [options]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
In AIX
-c Clist
Displays only information about processes assigned to the
workload
management classes listed in the Clist variable. The Clist variable
is either a
comma separated list of class names or a list of class names enclosed
in
double quotation marks (" "), which is separated from one another by
a
comma or by os
s
Displays the size (SSIZ) of the kernel stack of each process (for use
by system
maintainers) in the basic output format. This value is always 0
(zero) for a
multi-threaded process.ne or more spaces, or both.
v
Displays the PGIN, SIZE, RSS, LIM, TSIZ, TRS, %CPU, %MEM fields
In Linux
-c
different scheduler info for -l option
s
Display signal format
v
Display virtual memory format
FEATURES IN LINUX ONLY BUT NOT IN AIX
T
Select all processes on this terminal
-r
restrict output to running processes
C
Select by command name
-s
Select processes belonging to the sessions given
--Group
select by real group name or ID
--User
select by real user name or ID
--group
select by effective group name or ID
--sid
select by session ID
-O
is preloaded "-o"
-j
jobs format
j
job control format
-y
do not show flags; show rss in place of addr
X
Old Linux i386 register format
-H
show process heirarchy (forest)
C
Use raw CPU time for %CPU instead of decaying average
O
Sorting order (overloaded)
S
include some dead child process data (as a sum with the parent)
f
ASCII-art process heirarchy (forest)
h
Do not print header lines (repeat header lines in BSD
personality)
--cols
set screen width
--columns
set screen width
--cumulative
include some dead child process data (as a sum with the parent)
--forest
ASCII art process tree
--html
HTML escaped output
--headers
repeat header lines
--no-headers
print no header line at all
--lines
set screen height
--nul
unjustified output with NULs
--null
unjustified output with NULs
--rows
set screen height
--sort
specify sorting order
--width
set screen width
--zero
unjustified output with NULs
-V
prints version
L
List all format specifiers
V
show version info
--help
print help message
--info
print debugging info
--version
prints version
A
Increases the argument space (DecUnix)
M
use alternate core (try -n or N instead)
W
get swap info from ... not /dev/drum (try -n or N instead)
k
use /vmcore as c-dumpfile (try -n or N instead)
COMMAND NAME
sa - Summarizes accounting records.
AIX SYNTAX
/usr/sbin/sa [ -a ] [ -b ] [ -c ] [ -C
][ -d ] [ -D ] [ -i ] [ -j ]
[ -k ] [ -K ]
[ -l ] [ -m] [ -n ] [ -r ][ -s
] [ -t ] [ -u ] [ -vNumber [ -f ]
]
[-S SaveFile ] [-UUserFile ] [ File ... ]
LINUX SYNTAX
sa [ -a | --list-all-names ] [ -b
| --sort-sys-user-div-calls ]
[ -c | --percentages ] [ -d | --sort-avio ]
[ -D | --sort-tio ] [ -f | --not-interactive ]
[ -i | --dont-read-summary-file ]
[ -j | --print-seconds ] [ -k | --sort-cpu-avmem
]
[ -K | --sort-ksec ] [ -l | --separate-times ]
[ -m | --user-summary ] [ -n | --sort-num-calls ]
[ -r | --reverse-sort ] [ -s | --merge ]
[ -t | --print-ratio ] [ -u |
--print-users ]
[ -v num | --threshold num ] [ --sort-real-time ]
[ --debug ] [ -V | --version ] [ -h | --help
]
[ --other-usracct-file filename ]
[ --other-savacct-file filename ]
[ [ --other-acct-file ] filename ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--separate-forks
It really doesn't make any sense to me that the
stock version of sa separates statistics for a
particular executable depending on whether or not
that command forked. Therefore, GNU sa lumps this
information together unless this option is
specified.
--debug
Print verbose internal information.
-V, --version
Print the version number of sa.
-h,--help
Prints the usage string to stderr.
--sort-real-time
Sort the output by the "real time" field.
--other-usracct-file filename
Write summaries by user ID to filename rather than
the default /var/log/usracct.
--other-savacct-file filename
Write summaries by command name to filename rather
than the default /var/log/savacct.
COMMAND NAME
time - Prints the time of the execution of a command.
AIX SYNTAX
time [ -p ] Command [ Argument ... ]
LINUX SYNTAX
#include <time.h>
time_t time(time_t *t);
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
Time is implemented as a system call in Linix.
COMMAND NAME
tty - Writes to standard output the full path name of your terminal.
AIX SYNTAX
/usr/bin/tty [ -s ]
LINUX SYNTAX
tty [OPTION]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
uname - Displays the name of the current operating system.
AIX SYNTAX
uname [ -a | -x | -SName ] | [ -l ] [ -m ]
[ -M ] [ -n ] [ -p ] [ -r
]
[ -s ] [ -TName ] [ -u ][ -v
]
LINUX SYNTAX
uname [OPTION]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
In AIX
-a
Displays all information specified with the -m, -n, -r, -s, and -v
flags. Cannot be
used with the -x or -SName flag. If the -x flag is specified with the
-a flag, the -x
flag overrides it.
In Linux
-a, --all
print all information
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
users - Displays a compact list of the users currently on the system.
AIX SYNTAX
users [ File ]
LINUX SYNTAX
users [OPTION]... [ FILE ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
vmstat - Reports virtual memory statistics.
AIX SYNTAX
vmstat [ -f ] [ -i ] [ -s ] [ -I ]
[ -t ] [ PhysicalVolume ... ]
[ Interval [ Count ] ]
LINUX SYNTAX
vmstat [-n] [delay [ count]]
vmstat[-V]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such option
FEATURES IN LINUX ONLY BUT NOT IN AIX
-n
causes the header to be displayed once rather than periodically.
-V
Displays version information
COMMAND NAME
w - Prints a summary of current system activity.
AIX SYNTAX
w [ -h ] [ -u ] [ -w ] [ -l | -s ] [ User ]
LINUX SYNTAX
w - [husfV] [user]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
In AIX
-u
Prints the time of day, amount of time since last system startup,
number of users logged
on, and number of processes running. This is the default. Specifying
the -u flag without
specifying the -w or -h flag is equivalent to the uptime command.
In Linux
-u
Ignores the username while figuring out the current
process and cpu times. To demonstrate this, do a "su"
and do a "w" and a "w -u"
FEATURES IN LINUX ONLY BUT NOT IN AIX
-f
Toggle printing the from (remote hostname) field. The
default as released is for the from field to not be printed,
although your system administrator or distribution
maintainer may have compiled a version in which the from
field is shown by default.
-V
display version information
COMMAND NAME
who - Identifies the users currently logged in.
AIX SYNTAX
who [ -a | -b -d -i -l -m -p -q -r -s -t -u -w -A -H -T ] [ File ]
LINUX SYNTAX
who [OPTION]... [ FILE | ARG1 ARG2 ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
In AIX
-l
Lists any login process.
In Linux
-l, --lookup
attempt to canonicalize hostnames via DNS
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit and user associated with
stdin
COMMAND NAME
whoami - Displays your login name.
AIX SYNTAX
whoami
LINUX SYNTAX
whoami [OPTION]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display the man pages for this command and exit
--version
output version information and exit
COMMAND NAME
cat - Concatenates or displays files.
AIX SYNTAX
cat [ -q ] [ -r ] [ -s ] [ -S ] [
-u ] [ -n [ -b ] ] [ -v [ -e ]
[ -t ] ] [ - | File ... ]
LINUX SYNTAX
cat [OPTION] [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
tail - Writes a file to standard output, beginning at a specified point.
AIX SYNTAX
Standard Syntax
tail [ -f ] [ -c Number | -n Number | -m Number | -b
Number |
-k Number ] [ File ]
To Display Lines in Reverse Order
tail [ -r ] [ -n Number ] [ File ]
LINUX SYNTAX :tail [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--retry
keep trying to open a file even if it is inaccessible when
tail starts or if it becomes
inaccessible later -- useful only with -f
--pid=PID
with -f, terminate after process ID, PID dies
-q, --quite, --silent
ever output headers giving file names
-s , --sleep-internal=S
with -f, sleep S seconds between iterations
-v, --verbose
always output headers giving file names
-help
display this help and exit
-version
output version information and exit
COMMAND NAME
strings - Finds the printable strings in an object or binary file.
AIX SYNTAX
strings [ -a ] [ - ] [ -o ] [ -t Format
] [ -n Number ]
[ -Number ] [ File ... ]
LINUX SYNTAX
strings[-a|-|--all] [-f|--print-file-name]
[-o] [--help] [-v|--version]
[-n min-len|-min-len|--bytes=min-len]
[-t{o,x,d}[--target=bfdname] |--radix={o,x,d}]
file
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
-f
--print-file-name
Print the name of the file before each string.
--help
Print a summary of the options to strings on
the standard output and exit.
-v, --version
Print the version number of strings on the standard output and
exit.
-bytes=min-len
Print sequences of characters that are at
least min-len characters long
instead of the default 4.
-target=bfdname
Specify an object code format other than your sys&endash;tem's
default format.
See objdump(11), for information on listing available
formats.
COMMAND NAME
tee - Displays the output of a program and copies it into a file.
AIX SYNTAX
tee [ -a ] [ -i ] [ File ... ]
LINUX SYNTAX
tee [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
touch - Updates the access and modification times of a file.
AIX SYNTAX
touch [ -a ] [ -c ] [ -m ] [ -f ]
[ -r RefFile ] [ Time | -t Time ]
{ File ... | Directory ... }
LINUX SYNTAX
touch [OPTION]... FILE...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag.
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display the man pages for this command and exit
--version
output version information and exit
COMMAND NAME
which - Locates a program file, including aliases and paths (the csh (C shell) command only).
AIX SYNTAX
which [ Name ... ]
LINUX SYNTAX
which [options] [--] programname [...]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
--all,-a
Print all matching executables in PATH, not just the first.
--read-alias, -i
Read aliases from stdin, reporting matching ones on stdout.
This is useful
in combination with using an alias for which itself.
--skip-alias
Ignore option --read-allias, if any. This is useful to
explicity search for
normal binaries, while using the --read-allias option in an alias for
which.
--skip-dot
Skip directories in PATH that start with a dot.
--skip-tilde
Skip directories in PATH that start with a tilde and executables
which reside
in the HOME directory.
--show-dot
If a directory in PATH starts with a dot and a matching executable
was found
for that path, then
print "./programname" rather than the full path.
--show-tilde
Output a tilde when a directory matches the HOME directory.
This option
is ignored when which is invoked as root.
--tty-only
Stop processing options on the right if not on tty.
--version,-v,-V
Print version information on standard output then exit
successfully
COMMAND NAME
rdist - Maintains identical copies of files on multiple hosts.
AIX SYNTAX
To Use a Distribution File
rdist [ -n ] [ -q ] [ -b ] [ -D ]
[ -R ] [ -h ] [ -i ] [ -v ] [ -w
]
[ -y ] [ -f FileName ] [ -d Argument=Value
] [ -m Host ] ...
[ Name ] ...
To Interpret Arguments as a Small Distribution File
rdist [ -n ] [ -q ] [ -b ] [ -D ]
[ -R ] [ -h ] [ -i ] [ -v ] [ -w
]
[ -y ] -c Name ...
[ Login@ ] Host [ :Destination ]
LINUX SYNTAX
rdist [ -DFn ] [ -A num ] [ -a num ] [ -d
var=value ] [ -l <local logopts> ]
-L <remote logopts> ] [ -f distfile ] [ -M
maxproc ] [ -m host ] [ -o distopts ]
[ -t timeout ] [ -p <rdistd-path> ] [ -P
<transport-path> ] [ name ... ]
rdist -DFn -c name ... [login@]host[:dest]
rdist -Server
rdist -V
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-A num
Set the minimum number of free files (inodes) on a
filesystem that must exist for rdist to update or
install a file.
-a num
Set the minimum amount of free space (in bytes) on a filesystem
that must exist for rdist to update or
install a file.
-l logopts
Set local logging options. See the section MESSAGE LOGGING for
details on the syntax for logopts.
-L logopts
Set remote logging options. logopts is the same as for
local logging except the values are passed to
the remote server (rdistd). See the section MESSAGE
LOGGING for details on the syntax for logopts
-M num
Set the maximum number of simultaneously running
child rdist processes to num. The default is 4.
-p <rdistd-path>
Set the path where the rdistd server is searched
for on the target host.
-P <transport-path>
Set the path to the transport command to be used.
The transport- path may be a
colon seperated
list of possible pathnames. In this case, the first
component of the path to exist is used.
i.e.
/usr/ucb/rsh:/usr/bin/remsh ,/usr/bsd/rsh.
-t timeout
Set the timeout period (in seconds) for waiting for
responses from the remote rdist
server. The
default is 900 seconds.
-V Print version information and exit.
-F Do not fork any child rdist processes. All clients are
updated sequentiall
-odistopts
Specify the dist options to enable. distopts is a
comma separated list of options which are
listed
below. The valid values for distopts are:
-verify
Verify that the files are up to date on all the
hosts. Any files that are out of date will be
displayed
but no files will be changed nor any mail
sent.
-whole
Whole mode. The whole file name is appended to the
destination directory name. Normally,
one last component of a name is used when renaming files.
This will preserve the directory
structure of the files being copied instead
of flattening the directory structure. For
example,
rdisting a list of files such as
/path/dir1/f1 and /path/dir2/f2 to /tmp/dir would create
files
/tmp/dir/path/dir1/f1 and /tmp/dir/path/dir2/f2 instead
of /tmp/dir/dir1/f1 and /tmp/dir/dir2/f2.
noexec Automatically exclude executable files that are in
a.out(5) format from being checked or
updated.
-younger
Younger mode. Files are normally updated if their mtime and
size (see stat(2)) disagree.
This option causes rdist not to update files that are younger than
the master copy. This
can be used to prevent newer copies on other hosts from
being replaced. A warning mes&endash;
sage is printed for files which are newer than the
master copy.
-compare
Binary comparison. Perform a binary comparison and update files if
they differ rather
than comparing dates and sizes. Follow symbolic
links. Copy the file that the link points to
rather than the link itself.
-ignlnks
Ignore unresolved links. Rdist will normally
try to maintain the link structure of files being
transferred and warn the user if all the links cannot be
found.
-chknfs
Do not check or update files on target host that reside
on NFS filesystems.
-chkreadonly
Enable check on target host to see if a file resides on a
read-only filesystem. If a
file does, then no checking or updating of the file is
attempted.
-chksym
If the target on the remote host is a symbolic
link, but is not on the master host,
the remote target will be left a symbolic
link. This behavior is generally considered
a bug in the original version of rdist, but is present to allow
compatibility with older
versions.
-quiet
Quiet mode. Files that are being modified are
normally printed on standard output.
This option suppresses this.
-remove
Remove extraneous files. If a directory is being
updated, any files that exist on the
remote host that do not exist in the master directory
are removed. This is useful for
maintaining truly identical copies of directories.
-nochkowner
Do not check user ownership of files that already
exist. The file ownership is only
set when the file is updated.
- nochkgroup
Do not check group ownership of files that already
exist. The file ownership is only
set when the file is updated.
- nochkmode
Do not check file and directory permission modes.
The permission mode is only set when
the file is updated.
- nodescend
Do not descend into a directory. Normally rdist
will recursively check directories.
If this option is enabled, then any files listed in
the file list in the distfile that
are directories are not recursively scanned. Only the existence,
ownership, and mode of
the directory are checked.
- numchkgroup
Use the numeric group id (gid) to check
group ownership instead of the group name.
- numchkowner
Use the numeric user id (uid) to check user ownership instead
of the user name.
-savetargets
Save files that are updated
instead of removing them. Any
target file that is
updates is first rename
from file to file.OLD.
-sparse
Enable checking for sparse (aka wholely)
files. One of the most common
types of
sparse files are those produced by ndbm(3). This
option adds some additional processing
overhead so it should only be enabled for
targets likely to contain sparse files.
COMMAND NAME
restore - Copies previously backed-up file systems or files, created by the backup command, from a local device.
AIX SYNTAX
To Restore Files Archived by File Name
restore -x [ d M v q ] [ -b Number ] [ -f Device
] [ -s SeekBackup ] [ -X VolumeNumber
] [ File ... ]
restore -x [ d M v q e ] [ -b Number ] [ -f
Device ] [ -s SeekBackup ] [ -X
VolumeNumber ] [ File ... ]
To List Files Archived by File Name
restore -T [ q v ] [ -b Number ] [ -f Device ] [ -s SeekBackup ]
To Restore Files Archived by File System
restore -r [ B q v y ] [ -b Number ] [ -f Device ] [ -s SeekBackup ]
To Restore Files Archived by File System
restore -R [ B v y ] [ -b Number ] [ -f Device ] [ -s SeekBackup ]
To Restore Files Archived by File System
restore -i [ h m q v y ] [ -b Number ] [ -f Device ] [ -s SeekBackup ]
To Restore Files Archived by File System
restore -x [ B h m q v y ] [ -b Number ] [ -f Device ] [ -s SeekBackup ] [ File ... ]
To List Files Archived by File System
restore -t | -T [ B h q v y ] [ -b Number ] [ -f Device ] [ -s SeekBackup ] [ File ... ]
LINUX SYNTAX
restore -C [-cvy] [-b blocksize] [-D
filesystem] [-f file] [-s fileno]
[-T directory]
restore -i [-chmNvy] [-b blocksize] [-f file]
[-s fileno] [-T directory]
restore -R [-cNvy] [-b blocksize] [-f file]
[-s fileno] [-T directory]
restore -r [-cNvy] [-b blocksize] [-f file]
[-s fileno] [-T directory]
restore -t [-chvy] [-b blocksize] [-f file]
[-s fileno] [-T directory]
[file ...]
restore -x [-chmNvy] [-b blocksize] [-f file]
[-s fileno] [-T directory]
[file ...]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
IN AIX
-b Number
For backups done by name, specifies the number of 512-byte blocks;
for backups done by i-node,
specifies the number of 1024-byte blocks to read in a single output
operation. When the restore
command reads from tape devices, the default is 100 for backups by
name and 32 for backups by
i-node.
The read size is the number of blocks multiplied by the block size.
The default read size for the restore
command reading from tape devices is 51200 (100 * 512) for backups by
name and 32768 (32 * 1024)
for backups by i-node. The read size must be an even multiple of the
tapes physical block size. If the
read size is not an even multiple of the tapes physical block size
and it is in fixed block mode (nonzero),
the restore command tries to determine a valid value for Number. If
successful, the restore command
changes Number to the new value,writes a message about the change to
standard output, and continues.
If unsuccessful in finding a valid value for Number, the restore
command writes an error message to
standard error and exits with a nonzero return code. Larger values
for the Number parameter result
in larger physical transfers from the tape device.
The value of the -b flag is always ignored when the restore command
reads from diskette. In this case,
the command always reads in clusters that occupy a complete
track.
-T
Displays information about the backup archive. If the archive is in
file-name format, the information
contained in the volume header and a list of files found on the
archive are written to standard output.
The File parameter is ignored for file-name archives. If the archive
is in file-system format, the behavior
is identical to the -t flag.
IN LINUX
-b blocksize
The number of kilobytes per dump record. If the -b option is
not specified, restore tries to determine the
block size dynamically.
-T directory
The -T flag allows the user to specify a directory to use for
the storage of temporary files. The default
value is /tmp. This flag is most useful when restoring files after
saving booted from a floppy.
There might be little or no space on the floppy filesystem, but
another source of space might exist
FEATURES IN LINUX ONLY BUT NOT IN AIX
-C
This mode allows comparison of files from a dump. Restore reads
the backup and compares its
contents with files present on the disk. It first changes
its working directory to the root of the
filesystem that was dumped and compares the tape with the files
in its new current directory.
-c
Normally, restore will try to determine dynamically whether the dump
was made from an old
(pre-4.4) or new format file sytem. The -c flag disables this check,
and only allows reading a dump
in the old format.
-D filesystem
The -D flag allows the user to specify the filesystem name when using
restore with the -C option
to check the backup.
-N
The -N flag causes restore to only print file names. Files are
not restore.
COMMAND NAME
rmt - Allows remote access to magnetic tape devices.
AIX SYNTAX
rmt
LINUX SYNTAX
rmt
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such option
FEATURES IN LINUX ONLY BUT NOT IN AIX
S
Return the status of the open device, as obtained with a
MTIOCGET ioctl call. If the operation was
successful, an ``ack'' is sent with the size of the status
buffer, then the status buffer is sent (in binary).
COMMAND NAME
Tar - Manipulates archives.
AIX SYNTAX
tar { -c | -r | -t | -u | -x } [ -b Blocks ] [ -B ]
[ -d ] [ -F ] [ -h ] [ -i ]
[ -L InputList ][ -l ] [-m ] [ -N Blocks
][ -o ] [ -p ] [ -s ] [ -v ]
[ -w ]
[ -Number ] [ -f Archive ][ -S Blocksb | -SFeet |
-S Feet@Density ] [ File |
Directory | -C Directory ] ...
LINUX SYNTAX
tar [ - ] A --catenate --concatenate | c --create | d --diff
--compare | r
--append | t --list | u --update | x -extract --get [
--atime-preserve ] [
-b, --block-size N ] [ -B, --read-full-blocks ] [ -C,
--directory DIR ] [
--checkpoint ]
[ -f, --file [HOSTNAME:]F ] [
--force-local ]
[ -F, --info-script F --new-volume-script F ] [ -G,
--incremental ] [
-g, --listed-incremental F ] [ -h, --dereference ] [
-i, --ignore-zeros
] [ --ignore-failed-read ] [ -k, --keep-old-files
] [ -K, --starting-file
F ] [ -l, --one-file-system ] [ -L, --tape-length N
] [ -m,
-modification-time ] [ -M, --multi-volume ] [ -N,
--after-date DATE,
--newer DATE ] [ -o, --old-archive, --portability ] [
-O, --to-stdout ] [
-p, --same-permissions, --preserve-permissions ] [ -P,
--absolute-paths ] [
--preserve ]
[ -R, --record-number ] [ --remove-files ] [ -s,
--same-order,
--preserve-order ] [ --same-owner ] [ -S, --sparse
] [ -T, --files-from
F ] [ --null ]
[ --totals
]
[ -v, --verbose ] [ -V, --label NAME ] [
--version ]
[ -w, --interactive, --confirmation ] [ -W,
--verify ]
[ --exclude FILE ] [ -X, --exclude-from FILE ] [
-Z, --compress,
--uncompress ] [ -z, --gzip, --ungzip
]
[ --use-compress-program PROG ] [ --block-compress ]
[
-[0-7][lmh] ]
filename1 [ filename2, ... filenameN ]
directory1 [ directory2, ...directoryN ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
IN AIX
-F
Checks the file type before archiving. Source Code Control
Systems
(SCCS), Revision Control Systems (RCS), files named core, errs,
a.out, and files ending in .o (dot o) are not archived.
-L InputList
Writes the files and directories listed in the InputList variable to
the
archive. Directories from the InputList variable are not treated
recursively. For directories contained in the InputList variable, the
tar
command writes only the directory to the archive, not the files
and
subdirectories rooted in the directory. If additional files and
directories
follow the InputList variable on the command line, the contents of
the
InputList variable are archived after these files and directories.
These
additional files or directories are archived with their default
behavior,
which is to treat them recursively.
-l
Writes an error message to standard output for each file with a link
count
greater than 1 whose corresponding links were not also archived.
For
example, if file1 and file2 are hard-linked together and only file1
is
placed on the archive, then the -l flag will issue an error message.
Error
messages are not displayed if the -l flag is not specified.
-N Blocks
Allows the tar command to use very large clusters of blocks when
it
deals with streaming tape archives. Note however, that on input, the
tar
command cannot automatically determine the block size of tapes
with
very long block sizes created with this flag. In the absence of a
-N
Blocks flag, the largest block size that the tar command can
automatically determine is 20 blocks.
-s
Tries to create a symbolic link If the tar command is unsuccessful in
its
attempt to link (regular link) two files with the -s flag.
-SBlocksb, -S
Feet, -S
Feet@Density
Specifies the number of 512KB blocks per volume (first format),
independent of the tape blocking factor. You can also specify the
size of
the tape in feet by using the second form, in which case the tar
command
assumes a default Density variable. The third form allows you to
specify
both tape length and density. Feet are assumed to be 11 inches long
to
be conservative. This flag lets you deal more easily with multivolume
tape
archives, where the tar command must be able to determine how
many
blocks fit on each volume.
IN LINUX
-F, --info-scriptF --new-volume-script F
run script at end of each tape (implies -M)
-l,--one-file-system
stay in local file system when creating an archive
-L,--tape-length N
change tapes after writing N*1024 bytes
-N, --after-date DATE, --newer DATE
only store files newer than DATE
-s, --same-order,--preserve-order
list of names to extract is sorted to match archive
-S, --sparse
handle sparse files efficiently
FEATURES IN LINUX ONLY BUT NOT IN AIX
-A, --catenate,--concatenate
append tar files to an archive.
-d, --diff,--compare
find differences between archive and file system
--delete
delete from the archive (not for use on mag tapes!)
--atime-preserve
don't change access times on dumped files.
--checkpoint
print directory names while reading the archive
--force-local
archive file is local even if has a colon
-G, --incremental
create/list/extract old GNU-format
incremental backup
-g, --listed-incremental F
create/list/extract new GNU-format incremental backup
--ignore-failed-read
don't exit with non-zero status on unreadable files.
-k, --keep-old-files
keep existing files; don't overwrite
them from archive
-K,--starting-file F
begin at file F in the archive
-M, --multi-volume
create/list/extract multi-volume archive
-O,--to-stdout
extract files to standard output
-P, --absolute-paths
don't strip leading `/'s from file names
-R,--record-number
show record number within archive with each message
--remove-files
remove files after adding them to the archive.
--same-owner
create extracted files with the same ownership.
-T, --files-from F
get names to extract or create from file F
-V, --label NAME
create archive with volume name NAME
--version
print tar program version number
-W, --verify
attempt to verify the archive after writing it
--exclude FILE
exclude file FILE
-X, --exclude-from FILE
exclude files listed in FILE
-Z, --compress,--uncompress
filter the archive through compress
-z, --gzip,--ungzip
filter the archive through gzip
--use-compress-program PROG
filter the archive through PROG (which must accept -d)
--block-compress
block the output of compression program for tapes
COMMAND NAME
remove - Deletes files from var/adm/acct subdirectories.
AIX SYNTAX
/usr/sbin/acct/remove
LINUX SYNTAX
#include <stdio.h>
int remove(const char *pathname);
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
Remove is a system call in Linux that deletes a name from file
space.It call unlink for files and rmdir for
directories. While in AIX it is a user command that can be used to
delete files from var/adm/acct/sum
and var/adm/acct/nite subdirectories.
COMMAND NAME
pr - Writes a file to standard output.
AIX SYNTAX
pr [ +Page ] [ -Column [ -a ] | -m ] [ -d
] [ -F ] [ -r ] [ -t ] [ -e [
Character ] [ Gap ] ]
[ -h Header ] [ -i [ Character ] [ Gap ]
] [ -l Lines ] [ -n [ Character ] [ Width
] ]
[ -o Offset ] [ -s [ Character ] ] [ -w
Width ] [-x [ Character ] [ Width ] ]
[ -f ] [ -p ]
[ File ... | -
LINUX SYNTAX
pr [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-c, --show-control-chars
use hat notation (^G) and octal backslash notation
-J, --join-lines
merge full lines, turns off -W line truncation, no
column alignment, -S[STRING] sets separators
-l PAGE_LENGTH, --length=PAGE_LENGTH
set the page length to PAGE_LENGTH (66) lines
(default number of lines of text 56, and with -F 63)
-N NUMBER, --first-line-number=NUMBER
start counting with NUMBER at 1st line of
first page printed
(see +FIRSTPAGE)
-S[STRING], --sep-string[=STRING]
separate columns by an optional STRING, don't use
-S "STRING",
-S only: No separator used (same as -S"), without -S: Default
separator
<TAB> with -J and <space> otherwise (same as -S"),
no effect on column
options.
-v, --show-nonprinting
use octal backslash notation
COMMAND NAME
rm - Removes (unlinks) files or directories.
AIX SYNTAX
{ rm | delete } [ -f ] [ -r ] [ -R ] [ -i ] [ -e ] File ...
LINUX SYNTAX
rm [OPTION]... FILE...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-d, --directory
unlink directory, even if non-empty (super-user only)
-r
fails when the directory path exceeds PATH_MAX in AIX. but linux
doesn't have this limitation
-v, --verbose
explain what is being done
COMMAND NAME
sdiff - Compares two files and displays the differences in a side-by-side format.
AIX SYNTAX
sdiff [ -l | -s ] [ -o OutFile ] [ -w Number ] File1 File2
LINUX SYNTAX
sdiff -o outfile [options] from-file to-file
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-a
Treat all files as text and compare them line-by-line,
even if they do not appear to be text.
-b
Ignore changes in amount of white space.
-B
Ignore changes that just insert or delete blank lines.
-d
Change the algorithm to perhaps find a smaller set of
changes. This makes sdiff slower (sometimes much
slower).
-H
Use heuristics to speed handling of large files that
have numerous scattered small changes.
--expand-tabs
Expand tabs to spaces in the output, to preserve the
alignment of tabs in the input files.
-i
Ignore changes in case; consider upper- and
lower-case to be the same.
-I regexp
Ignore changes that just insert or delete lines that
match regexp.
--ignore-all-space
Ignore white space when comparing lines.
--ignore-blank-lines
Ignore changes that just insert or delete blank lines.
--ignore-case
Ignore changes in case; consider upper- and
lower-case to be the same.
--ignore-matching-lines=regexp
Ignore changes that just insert or delete lines that
match regexp.
--ignore-space-change
Ignore changes in amount of white space.
--minimal
Change the algorithm to perhaps find a smaller set of
changes. This makes sdiff slower (sometimes much
slower).
-t
Expand tabs to spaces in the output, to preserve the
alignment of tabs in the input files.
--text
Treat all files as text and compare them line-by-line,
even if they do not appear to be text.
-v
--version
Output the version number of sdiff.
-W
Ignore horizontal white space when comparing lines.
COMMAND NAME
sort - Sorts files, merges files that are already sorted, and checks files to determine if they have been sorted.
AIX SYNTAX
sort [ -A ] [ -b ] [ -c ] [ -d ]
[ -f ] [ -i ] [ -m ] [ -n ] [ -r
] [ -u ]
[ -o OutFile ] [ -t Character ] [ -T Directory
] [ -y [ Kilobytes ] ]
[ -z RecordSize ] [ [ + [ FSkip ] [
.CSkip ] [ b ] [ d ] [ f ] [ i ]
[ n ]
[ r ] ] [ - [ FSkip ] [ .CSkip ]
[ b ] [ d ] [ f ] [ i ] [ n ]
[ r ] ] ]
[ -k KeyDefinition ] ... [ File ... ]
LINUX SYNTAX
sort [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-M
compare (unknown) < `JAN' < ... < `DEC', imply -b
-g
compare according to general numerical value,imply -b
-s
stabilize sort by disabling last resort comparison
COMMAND NAME
split - Splits a file into pieces.
AIX SYNTAX
To Split a File Into Multiple Files Containing a Specified Number of
Lines
split [ -l LineCount ] [ -a SuffixLength ] [ File
[ Prefix ] ]
To Split a File Into Multiple Files Containing a Specified Number of
Bytes
split -b Number [ k | m ] [ -a SuffixLength ] [
File [ Prefix ] ]
LINUX SYNTAX
split [OPTION] [INPUT [PREFIX]]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-C, --line-bytes=SIZE
put at most SIZE bytes of lines per output file
COMMAND NAME
sum - Displays the checksum and block count of a file.
AIX SYNTAX
sum [ -i ] [ -r ] [ -o ] [ File ... ]
LINUX SYNTAX
sum [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-s, --sysv
use System V sum algorithm, use 512 bytes blocks
COMMAND NAME
tr - Translates characters.
AIX SYNTAX
tr [ -c | -cds | -cs | -ds | -s ] [ -A ] String1
String2
tr { -cd | -cs | -d | -s } [ -A ] String1
LINUX SYNTAX
tr [OPTION]... SET1 [SET2]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-t
first truncate string1 to length of string2
COMMAND NAME
uncompress - Restores compressed files.
AIX SYNTAX
uncompress [ -c ] [ -F ] [ -f ] [ -n ] [ -q ] [ -V ] [ File ... ]
LINUX SYNTAX
uncompress [ -f ] [ -v ] [ -c ] [ -V ] [ name ... ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-r (recursive)
uncompresses all the files in the directory given as parameter.
-v(verbose)
output version information and exit
COMMAND NAME
uniq - Deletes repeated lines in a file.
AIX SYNTAX
uniq [ -c | -d | -u ] [ -f Fields ] [ -s
Characters ] [ -Fields ]
[ +Characters ] [ InFile [ OutFile ] ]
LINUX SYNTAX
uniq [OPTION]... [INPUT [OUTPUT]]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-D, --all-repeated
print all duplicate lines
-i, --ignore-case
ignore differences in case when comparing
-w, --check-chars=N
compare no more than N characters in lines
COMMAND NAME
wc - Counts the number of lines, words, and bytes in a file.
AIX SYNTAX
wc [ -c | -m ] [ -l ] [ -w ] [ File ...
]
wc -k [ -c ] [ -l ] [ -w ] [ File ...
]
LINUX SYNTAX
wc [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-L, --max-line-length
print the length of the longest line
COMMAND NAME
zcat - Expands a compressed file to standard output.
AIX SYNTAX
zcat [ -n ] [ -V ] [ File ... ]
LINUX SYNTAX
zcat [ -fhLV ] [ name ... ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-d --decompress --uncompress
Decompress.
-f --force
Force compression or decompression even if the file has
multiple links or the
corresponding file already exists, or if the compressed
data is read from or
written to a terminal. If the input data is not in a format
recognized by gzip,
and if the option --stdout is also given, copy the
input data without change to
the standard ouput: let zcat behave as
cat. If -f is not given, and when not
running in the background, gzip prompts to verify
whether an existing file
should be overwritten.
-h --help
Display a help screen and quit.
-l --list
For each compressed file, list
the following fields: compressed size: size of the
compressed file uncompressed size: size of the
uncompressed file ratio: compression
ratio (0.0% if unknown) uncompressed_name: name of
the uncompressed file
-L --license
Display the gzip license and quit.
-n --no-name
When compressing, do not save the original
file name and time stamp by default.
(The original name is always saved if the name had to be
truncated.)When
decompressing, do not restore the original
file name if present (remove only
the gzip suffix from the compressed file name) and do not
restore the original
time stamp if present (copy it from the compressed file). This
option is the
default when decompressing.
-N --name
When compressing, always save the original
file name and time stamp; this is
the default. When decompressing, restore the
original file name and time stamp
if present. This option is useful on systems
which have a limit on file name length
r when the time stamp has been lost after a
file transfer.
-q --quiet
Suppress all warnings.
-r --recursive
Travel the directory structure recursively. If any of the
file names specified on the
command line are directories, gzip will descend into the
directory and compress
all the files it finds there (or
decompress them in the case of gunzip ).
-S .suf --suffix .suf
Use suffix .suf instead of .gz. Any suffix can be given,
but suffixes other than .z
and .gz should be avoided to avoid confusion when files
are transferred to other systems.
-t --test
Test. Check the compressed file integrity.
-v --verbose
Verbose. Display the name and percentage reduction for
each file compressed
or decompressed.
-V --version
Version. Display the version number and compilation options
then quit.
-1 --fast compress
faster
-9 --best compress better
COMMAND
sh - Invokes the default shell
AIX SYNTAX
sh [ -i ] [ { + | - } { a e f h k m n t u v x } ]
[ -o Option ... ] [ -c String | -s | -r | File [
Parameter ] ]
Note: Preceding a flag with + (plus) rather than - (minus) turns off
the flag.
LINUX SYNTAX
sh [options] [file]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
sh also interprets a number of multi-character options. These options
must
appear on the command line before the single-character options to
be
recognized.
-norc
Do not read and execute the personal initialization file ~/.bashrc if
the
shell is interactive. This option is on by default if the shell is
invoked as
sh.
-noprofile
Do not read either the system-wide startup file /etc/profile or any
of the
personal initialization files ~/.bash_profile, ~/.bash_login, or
~/.profile.
By default, bash normally reads these files when it is invoked as a
login
shell (see INVOCATION below).
-rcfile file
Execute commands from file instead of the standard personal
initialization
file ~/.bashrc, if the shell is interactive (see INVOCATION
below).
-version
Show the version number of this instance of bash when starting.
-quiet
Do not be verbose when starting up (do not show the shell version
or
any other information). This is the default.
-login
Make bash act as if it had been invoked as a login shell.
-nobraceexpansion
Do not perform curly brace expansion (see Brace Expansion below).
-nolineediting
Do not use the GNU readline library to read command lines if
interactive.
-posix
Change the behavior of bash where the default operation differs from
the
Posix 1003.2 standard to match the standard
COMMAND
test - Evaluates conditional expressions
AIX SYNTAX
test Expression
LINUX SYNTAX
test EXPRESSION
test EXPRESSION ]
test OPTION
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
-G FILE
FILE exists and is owned by the effective group ID
-O FILE
FILE exists and is owned by the effective user ID
-S FILE
FILE exists and is a socket
COMMAND
xargs - Constructs parameter lists and runs commands
AIX SYNTAX
xargs [ -p ] [ -t ] [ -e [ EOFString ]
] [ -E EOFString ] [ -i [ ReplaceString ]
]
[ -I ReplaceString ] [ -l [ Number ] ] [
-L Number ] [ -n Number [ -x ] ]
[ -s Size ] [ Command [ Argument ... ] ]
Note: Do not put a blank space between the lowercase flags and the
parameter.
LINUX SYNTAX
xargs [-0prtx] [-e[eof-str]]
[-i[replace-str]] [-l[max-lines]]
[-n max-args] [-s max-chars]
[-P max-procs] [--null]
[--eof[=eof-str]]
[--replace[=replace-str]]
[--max-lines[=max-lines]]
[--interactive] [--max-chars=max-chars]
[--verbose] [--exit]
[--max-procs=max-procs]
[--max-args=max-args] [--no-run-if-empty]
[--version] [--help] [command
[initial-arguments]]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
--null, -0
Input filenames are terminated by a null character instead of by
whitespace, and the quotes and backslash are not special (every
character is taken literally). Disables the end of file string, which
is
treated like any other argument. Useful when arguments might
contain
white space, quote marks, or backslashes. The GNU find -print0
option produces input suitable for this mode.
--eof[=eof-str], -e[eof-str]
Set the end of file string to eof-str. If the end of file string
occurs as a
line of input, the rest of the input is ignored. If eof-str is
omitted, there
is no end of file string. If this option is not given, the end of
file string
defaults to "_".
--help
Print a summary of the options to xargs and exit.
--replace[=replace-str], -i[replace-str]
Replace occurences of replace-str in the initial arguments with
names
read from standard input. Also, unquoted blanks do not terminate
arguments. If replace-str is omitted, it defaults to "{}" (like for
`find
-exec'). Implies -x and -l 1.
--max-lines[=max-lines], -l[max-lines]
Use at most max-lines nonblank input lines per command line;
max-lines defaults to 1 if omitted. Trailing blanks cause an
input
line to be logically continued on the next input line. Implies
-x.
--max-args=max-args, -n max-args
Use at most max-args arguments per command line. Fewer than
max-args arguments will be used if the size (see the -s option)
is
exceeded, unless the -x option is given, in which case xargs will
exit.
--interactive, -p
Prompt the user about whether to run each command line and read
a line from the terminal. Only run the command line if the
response
starts with `y' or `Y'. Implies -t.
--no-run-if-empty, -r
If the standard input does not contain any nonblanks, do not run
the
command. Normally, the command is run once even if there is no
input.
--max-chars=max-chars, -s max-chars
Use at most max-chars characters per command line, including the
command and initial arguments and the terminating nulls at the
ends
of the argument strings. The default is as large as possible, up to
20k
characters.
--verbose, -t
Print the command line on the standard error output before executing
it.
--version
Print the version number of xargs and exit.
--exit, -x
Exit if the size (see the -s option) is exceeded.
--max-procs=max-procs, -P max-procs
Run up to max-procs processes at a time; the default is 1. If
max-procs
is 0, xargs will run as many processes as possible at a time. Use the
-n
option with -P; otherwise chances are that only one exec will be
done.
COMMAND NAME
whatis - Describes what function a command performs.
AIX SYNTAX
whatis [ -M PathName ] Command ...
LINUX SYNTAX
whatis keyword ...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags
FEATURES IN LINUX ONLY BUT NOT IN AIX
No such features.
COMMAND NAME
units - Converts units in one measure to equivalent units in another measure.
AIX SYNTAX
units [ - ] [ File ]
LINUX SYNTAX
units
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flag
FEATURES IN LINUX ONLY BUT NOT IN AIX
-c ,--check
Check that all units and prefixes defined in
the reduced.
--check-verbose
Like the `-check' option, this option prints a list of units that
cannot be
reduced. But to help find unit definitions
that cause endless loops, it
lists the units as they are checked. If
`units' hangs, then the last unit
to be printed has a bad definition.
-o format, --output-format format
Use the specified format for numeric output. Format
is the same as
that for the printf function in the ANSI C standard. For
example, if
you want more precision you might use `-o %.15g'.
-q, --quiet, --silent
Suppress prompting of the user for units and
the display of statistics
about the number of units loaded.
-s, --strict
Suppress conversion of units to their reciprocal
units.
-v, --verbose
Give slightly more verbose output when converting
units. When
combined with the `-c' option this gives the
same effect as
`--check-verbose'.
-V, --version
Print program version number, tell
whether the readline library
has been included, and give the location of the
default units data file.
COMMAND NAME
yes - Outputs an affirmative response repetitively.
AIX SYNTAX
yes [ Expletive ]
LINUX SYNTAX
yes [OPTION]... [STRING]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
patch - Applies changes to files.
AIX SYNTAX
patch [ -b [ -B Prefix ] ] [ -f ] [ -l
] [ -N ] [ -R ] [ -s ] [ -v ]
[ -c | -e | -n ]
[ -d Directory ] [ -D Define ] [ -F Number
] [ -i PatchFile ] [ -o OutFile ]
[ -p Number ] [ -r RejectFile ] [ -x Number ]
[ File ]
LINUX SYNTAX
patch [options] [originalfile [patchfile]]
but usually just
patch -pnum <patchfile>
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
--backup-if-mismatch
Back up a file if the patch does not match the file exactly and if
backups
are not otherwise requested. This is the default unless the
POSIXLY_CORRECT environment variable is set.
--no-backup-if-mismatch
Do not back up a file if the patch does not match the file exactly
and if
backups are not otherwise requested. This is the default if the
POSIXLY_CORRECT environment variable is set.
--binary
Read and write all files in binary mode, except for standard output
and
/dev/tty. This option has no effect on POSIX-compliant systems. On
systems
like DOS where this option makes a difference, the patch
should be generated by diff -a --binary.
--dry-run
Print the results of applying the patches without actually changing
any files.
-E or --remove-empty-files
Remove output files that are empty after the patches have been
applied. Normally
this option is unnecessary, since patch can examine the time stamps
on the header
to determine whether a file should exist after patching. However, if
the input is not
a context diff or if the POSIXLY_CORRECT environment variable is set,
patch
does not remove empty patched files unless this option is given. When
patch
removes a file, it also attempts to remove any empty ancestor
directories.
-g num or --get=num
This option controls patch's actions when a file is under RCS or SCCS
control,
and does not exist or is read-only and matches the default version.
If num is
positive, patch gets (or checks out) the file from the revision
control system; if
zero, patch ignores RCS and SCCS and does not get the file; and if
negative,
patch asks the user whether to get the file. The default value of
this option is
given by the value of the PATCH_GET environment variable if it is
set; if not,
the default value is zero if POSIXLY_CORRECT is set, negative
otherwise.
--help
Print a summary of options and exit.
-t or --batch
Suppress questions like -f, but make some different assumptions: skip
patches
whose headers do not contain file names (the same as -f); skip
patches for which
the file has the wrong version for the Prereq: line in the patch; and
assume that
patches are reversed if they look like they are.
-T or --set-time
Set the modification and access times of patched files from time
stamps given in
context diff headers, assuming that the context diff headers use
local time. This
option is not recommended, because patches using local time cannot
easily be
used by people in other time zones, and because local time stamps are
ambiguous
when local clocks move backwards during daylight-saving time
adjustments.
Instead of using this option, generate patches with UTC and use the
-Z or
--set-utc option instead.
-u or --unified
Interpret the patch file as a unified context diff.
-V method or --version-control=method
Use method to determine backup file names. The method can also be
given by the
PATCH_VERSION_CONTROL (or, if that's not set, the
VERSION_CONTROL)
environment variable, which is overridden by this option. The method
does not
affect whether backup files are
made; it affects only the names of any backup files that are made.
The value
of method is like the GNU Emacs `version-control' variable; patch
also recognizes
synonyms that are more descriptive. The valid values for method
are
(unique abbreviations are accepted):
existing or nil
Make numbered backups of files that already have them, otherwise
simple
backups. This is the default.
numbered or t
Make numbered backups. The numbered backup file name for F is
F.~N~
where N is the version number.
simple or never
Make simple backups. The -B or --prefix, -Y or --basename-prefix, and
-z
or --suffix options specify the simple backup file name.
If none of these
options are given,then a simple backup suffix is used; it is
the value of
the SIMPLE_BACKUP_SUFFIX environment variable if set, and is
.orig
otherwise.
With numbered or simple backups, if the backup file name is too long,
the
backup suffix ~ is used instead;if even appending ~ would make
the name
too long, then ~ replaces the last character of the file name.
--verbose
Output extra information about the work being done.
-Y pref or --basename-prefix=pref
Prefix pref to the basename of a file name when generating its simple
backup
file name. For example, with -Y .del/ the simple backup file name
for
src/patch/util.c is src/patch/.del/util.c.
-z suffix or --suffix=suffix
Use suffix as the simple backup suffix. For example, with -z - the
simple
backup file name for src/patch/util.c is src/patch/util.c-. The
backup suffix
may also be specified by the SIMPLE_BACKUP_SUFFIX environment
variable, which is overridden by this option.
-Z or --set-utc
Set the modification and access times of patched files from time
stamps given
in context diff headers,
assuming that the context diff headers use Coordinated Universal Time
(UTC,
often known as GMT). Also see the -T or --set-time option.
COMMAND NAME
pathchk - Check pathnames.
AIX SYNTAX
pathchk [ -p ] PathName ...
LINUX SYNTAX
pathchk [OPTION]... NAME...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND NAME
printf - Writes formatted output.
AIX SYNTAX
printf Format [ Argument ... ]
LINUX SYNTAX
printf FORMAT [ARGUMENT]...
printf OPTION
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found
FEATURES IN LINUX ONLY BUT NOT IN AIX
--help
display this help and exit
--version
output version information and exit
COMMAND
passwd - Changes a user's password.
AIX SYNTAX
passwd [ -R load_module ] [ -f | -s ] [ User ]
LINUX SYNTAX
passwd [-k] [-l] [-u [-f]] [-d] [-S] [username]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-k
The option, -k, is used to
indicate that the update should only be
for expired authentication tokens (passwords); the user wishes to
keep
their non-expired tokens as before.
-l
This option is used to lock the specified account and it
is available to
root only. The locking is performed by rendering the encrypted
password
into an invalid string (by prefixing the encrypted string
with an !).
-u
This is the reverse of the previous - it will unlock the account
password by
removing the ! prefix. This option is available to root only. By
default passwd
will refuse to create a passwordless account (it will not
unlock an account
that has only "!" as a password). The force option -f will override
this protection.
-d
This is a quick way to disable a password for an account.
It will set the
named account passwordless. Available to root only.
-S
This will output a short information about
the status of the password for a
given account. Available to root user only.
COMMAND
stty - Sets, resets, and reports workstation operating parameters.
AIX SYNTAX
stty [ -a ] [ -g ] [ Options ]
LINUX SYNTAX
stty [-F device] [--file=device]
[SETTING]...
stty [-F device] [--file=device]
[-a|--all]
stty [-F device] [--file=device]
[-g|--save]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-F, --file
open and use the specified device instead of stdin
--help
display this help and exit
--version
output version information and exit
COMMAND
sum - Displays the checksum and block count of a file.
AIX SYNTAX
sum [ -i ] [ -r ] [ -o ] [ File ... ]
LINUX SYNTAX
sum [OPTION]... [FILE]...
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
No such flags found.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-s, --sysv
use System V sum algorithm, use 512 bytes blocks
--help
display this help and exit
--version
output version information and exit
COMMAND
telnet - Connects the local host with a remote host, using the Telnet interface.
AIX SYNTAX
{ telnet | tn | tn3270 } [ -d ] [ -p ] [ -n
TraceFile ] [ -e TerminalType ]
[ -f | -F ] [ -k realm ] [ -l user ]
[Host [ Port ] ]
LINUX SYNTAX
telnet [-8 ] [-E ] [-F ] [-K ]
[-L ] [-S tos ] [-X authtype ] [-a ]
[-b hostalias ]
[-c ] [-d ] [-e escapechar ] [-f ]
[-k realm ] [-l user ] [-n tracefile ]
[-r ]
[-x ] [host [port ] ]
FEATURES IN BOTH (SAME FLAGS) BUT WITH DIFFERENT BEHAVIORS
In AIX
-e TerminalType
Overrides terminal-type negotiation. Possible values are vt100, 3270,
or none.
In LINUX
-e escapechar
Sets the initial telnet escape character to escapechar If escapechar
is omitted,
then there will be no escape character.
FEATURES IN LINUX ONLY BUT NOT IN AIX
-8
Specifies an 8-bit data path. This causes an attempt to negotiate the
TELNET
-E
Stops any character from being recognized as an escape character.
-K
Specifies no automatic login to the remote system.
-L
Specifies an 8-bit data path on output. This causes the BINARY option
to
be negotiated on output.
-S tos
Sets the IP type-of-service (TOS) option for the telnet connection to
the
value tos which can be a numeric TOS value or, on systems that
support it,
a symbolic TOS name found in the /etc/iptos file.
-X atype
Disables the atype type of authentication.
-a
Attempt automatic login. Currently, this sends the user name via the
USER
variable of the ENVIRON option if supported by the remote system. The
name
used is that of the current user as returned by getlogin(2) if it
agrees with the
current user ID, otherwise it is the name associated with the user
ID.
b hostalias
Uses bind(2) on the local socket to bind it to an aliased address
(see ifconfig(8)
and the ``alias'' specifier) or to the address of another interface
than the one
naturally chosen by connect(2). This can be useful when connecting to
services
which use IP addresses for authentication and reconfiguration of the
server is
undesirable (or impossible).
-c
Disables the reading of the user's .telnetrc file.
-r
Specifies a user interface similar to rlogin(1). In this mode, the
escape character
is set to the tilde (~) character, unless modified by the -e
option.
-x
Turns on encryption of the data stream if possible.
Subcommands
In LINUX
auth argument [... ]
The auth command manipulates the information sent through the
TELNET
AUTHENTICATE option. Valid arguments for the auth command are as
follows:
disable type
Disables the specified type of authentication. To obtain a list of
available
types, use the authdisable ? command.
enable type
Enables the specified type of authentication. To obtain a list of
available
types, use the authenable ? command.
status
Lists the current status of the various types of authentication.
encrypt argument [... ]
The encrypt command manipulates the information sent through the
TELNET
ENCRYPT option. Valid arguments for the encrypt command are as
follows:
disable type [input|output]
Disables the specified type of encryption. If you omit input and
output both
input and output are disabled. To obtain a list of available types,
use the
encrypt disable ? command.
enable type [input|output]
Enables the specified type of encryption. If you omit input and
output both
input and output are enabled. To obtain a list of available types,
use the
encrypt enable ? command.
input
This is the same as the encrypt start input command.
-input
This is the same as the encrypt stop input command.
output
This is the same as the encrypt start output command.
-output
This is the same as the encrypt stop output command.
start [input|output]
Attempts to start encryption. If you omit input and output, both
input and
output are enabled. To obtain a list of available types, use the
encrypt enable
? command.
status
Lists the current status of encryption.
stop [input|output]
Stops encryption. If you omit input and output encryption is on both
input
and output.
type type
Sets the default type of encryption to be used with later encrypt
start or
encrypt stop commands.
Corresponding command is not found in LINUX.
This command is quite similar to that of LINUX in all respects.