OpenBSD Commands
OpenBSD Commands
For cross-references to other operating systems, please see Chapter 1, the “Quick Command Index.”
/etc/inetd.conf—/etc/rc.conf
/etc/inetd.conf
UNIX Shell—N/A
Function—The Internet server database ASCII file that contains a list of available servers. Is invoked by inetd when it gets
an Internet request via a socket.
Syntax—inetd.conf
The database file must follow the following format separated by Space or Tab:
The fields are as follows: service endpoint protocol status uid program arguments
service Specifies the name of a service that is found in the services file.
endpoint Specifies the endpoint type, which can be only one of the following:
stream Specifies a stream socket.
dgram Specifies a datagram socket.
raw Specifies a raw socket.
seqpacket Specifies a sequenced packet socket.
tli Specifies all tli endpoints.
protocol Specifies a valid protocol that is found in the /etc/inet/protocols file.
status Activates nowait mode for all datagram servers except those that are single-threaded.
uid Specifies the user ID that the servers should run under.
program Specifies the server program to be started by inetd. Specify pathname.
arguments Invokes a server from the command line using a list of no more than five arguments.
Directory: /etc/
ftp stream TCP nowait root /usr/libexec/ftpd ftpd -US This is the line for the FTP service.
/etc/mygate
UNIX Shell—N/A
Syntax—None
Directory: /etc/
/etc/myname
Page 2 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
UNIX Shell—N/A
Syntax—None
Directory: /etc/
/etc/printcap
UNIX Shell—N/A
Function—Describes printers and allows dynamic addition and deletion of printers by the spooling system.
Syntax—printcap
Directory: /etc/
/etc/rc.conf
UNIX Shell—N/A
Function—A configuration file used to configure the system daemons. It has three sections, the first turns features on or
off, the second turns daemons on or off, and the third sets parameters for the daemons in use.
Syntax—daemon=flags
Directory: /etc/
sendmail_flags="-bd" Example for the first section, if set to NO sendmail would not start.
sshd=YES Example for the second section, only ON or OFF are allowed.
ipfilter_rules=/etc/ipf.rules Example for the third section, only parameters to daemons started in the first two sections are allowed.
ab
Page 3 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-k Enables multiple requests in one HTTP session. This is called HTTP KeepAlive.
-n requests Specifies the number of requests to run in the benchmark.
-t timelimit Specifies the time in seconds to use benchmarking. This sets -n to 50000.
-c concurrency Specifies the amount of requests to perform simultaneously. (Default is 1.)
-p postfile Specifies a file to send in any HTTP POST requests to the Apache server.
-A user:password Provides the server with username and password entered with a: between. (This will be sent whether the server needs
-P user:password Runs the same procedure as the -A switch, but is used with proxy servers.
-C name=value Adds a cookie to the request. The option is repeatable.
-T content-type Specifies the content-type header for usage with POST data.
Specifies verbosity level. (2+ warnings and info, 3+ response codes, 4+ shows header info.)
-v verbosity
Shows results in HTML tables (default is two columns wide, white background).
-w output HTML
Appends more headers to the request. The argument is usually in value:value form.
-H string Specifies the attributes for table.
-X string Specifies the attributes for tr.
-y string Specifies the attributes for td or th.
-z string Shows version information.
-V Shows help information.
-h Defines the URL to use when benchmarking. Http and port aren’t required.
[http://]hostname:{port}/path
File Name: ab
Directory: /usr/sbin/
Type: External
ac
Function —Counts how long a user or users have been using their accounts.
-d Shows a list of the time for each day the user has been logged in.
-p Shows the total login time for each individual user.
-t tty Specifies the ttys only to show time on. Can be used multiple times. (To exclude a tty, put a ! before typing it. Wildcards can also be used.)
-w file Reads the time account from specified file, instead of default /var/log/wtmp.
users... Specifies the users to show login time on. If none are specified, all users will be used.
File Name: ac
Directory: /usr/sbin/
Type: External
accton
Function—Outputs process accounting to the specified file. Without file, process accounting will be turned off.
Syntax—accton {file}
file Specifies an existing file where the kernel stores process accounting records.
Directory: /usr/sbin/
Page 4 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
addftinfo
Function—Reads troff font file and adds font metric information that is used by the groff system.
-x-height height Specifies the height of lowercase letters without ascenders, such as x.
-fig-height height Specifies the height of figures.
-asc-height height Specifies the height of characters with ascenders for b, d, or l.
-body-height height Specifies the height of characters such as parentheses.
-cap-height height Specifies the height of uppercase letters such as A.
-comma-depth height Specifies the depth of a comma.
-desc-depth height Specifies the depth of characters with descenders for p, q, or y.
Specifies the depth of characters such as parentheses.
-body-depth height
Same as the corresponding parameters in the DESC file.
res
Same as the corresponding parameters in the DESC file.
uniwidth
Specifies the name of a file describing the font.
font
Directory: /usr/bin/
Type: External
adduser
Function—Adds a user to the system. Asks for required additional data that has not been specified on the command line.
Syntax—adduser [options...]
-batch user {groups...} {name} {passwd} Specifies multiple users on the command line in a compact format. (Separate multiple groups with comma
-check_only Checks the consistency in password, group, and shell databases.
-config_create Creates or edits default configuration information and message file.
-dotdir directory Copies the contents in the specified directory to the new user’s home directory.
-e method Specifies the encryption method to use on the password.
-group login_group Specifies the default login group.
-h Shows help information.
-home device Specifies the partition where all user’s home directories are located.
-message file Sends a welcome message, specified in file, to new users.
-noconfig Doesn’t read the default configuration file.
-shell shell Specifies the default shell for the new users.
-s Silent mode. Shows less information.
-uid value Specifies the lowest UID to generate when creating UIDs for the new users.
-uid_start value Specifies the lowest UID to generate when creating UIDs for the new users.
Specifies the highest UID to generate when creating UIDs for the new users.
-uid_end value
Verbose mode. Shows more information.
-v
Doesn’t encrypt the password for the new user.
-unencrypted
Directory: /usr/sbin/
Type: External
Page 5 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
afslog
Directory: /usr/bin/
Type: External
amd
Directory: /usr/sbin/
Type: External
amq
Page 6 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
apm
Function—Shows the current power status or puts the system in standby or suspend mode.
Syntax—apm [options...]
Directory: /usr/sbin/
Type: External
apmd
Function—Monitors the APM pseudo-device and executes the actions requested by the apm command.
Syntax—apmd [options...]
Directory: /usr/sbin/
Page 7 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
apply
Function—Runs the specified command once for every argument specified. A magic character followed by a number will
be replaced by the remaining argument matching the number index.
-acharacter Specifies the character to use as the magic character (default is %).
-value Specifies the number of arguments to be passed to the command each time.
command Specifies the command.
arguments... Specifies the arguments for the command.
Directory: /usr/bin/
Type: External
appres
Function—Is used to show how many resources will be used by a specific application.
Directory: /usr/X11R6/bin/
Type: External
arch
Syntax—arch [option]
You can only use one of the following options and they can’t be combined:
-k Shows the kernel architecture—for example, sun4m and sun4c.
-s Shows the architecture without the system prefix.
Page 8 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
arithmetic
Function—A simple math game that keeps track of progress and shows results after every 20 questions.
Syntax—arithmetic [options...]
Directory: /usr/games/
Type: External
asa, fpr
Function—Converts Fortran carriage control output to a printable format and sends it to STDOUT.
Directory: /usr/bin/
Type: External
atactl
ACTION The following actions may be used on IDE and ATA devices:
identify Shows information about the device.
idle Sets the device to idle mode.
standby Sets the device to standby mode.
sleep Sets the device to sleep mode. Must then be reset to resume operation.
setidle value Sets the device to idle mode and sets the standby timer, specified in seconds.
setstandby value Sets the device to standby mode and sets the standby timer, specified in seconds.
checkpower Shows which mode the device is in—active, idle, or standby.
Page 9 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
atrun
Syntax—atrun [options...]
-l load_avg Specifies a limiting load factor (default is 0.8 for single processor).
-d Shows debug information.
Directory: /usr/libexec/
Type: External
audioctl
Directory: /usr/bin/
Type: External
bad144
Function—Shows or writes hard disk bad sector information in standard DEC 144 format.
-a Adds new bad sectors to an existing list. The sectors have to be in order.
Page 10 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
badsect
Function—Creates files over the bad sectors so that no other files can use the bad sectors.
Directory: /sbin/
Type: External
bdes
Function—Encrypts or decrypts from STDIN to STDOUT. It uses the Data Encryption Standard (DES).
Syntax—bdes [options...]
Directory: /usr/bin/
Type: External
cat file1| bdes > file2 Encrypts file1 and results in file2. It will prompt for a key.
cat file2 | bdes -d > file3 Decrypts input file file2 and encrypts into the file3.
biff
Page 11 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Function—Enables or disables mail notification. If no arguments are used, it will show the current status.
Syntax—biff [option]
Directory: /usr/bin/
Type: External
boot
Function—Loads the system kernel, sets console baud rate, and runs various machine-dependent commands.
Syntax—boot
Directory: /usr/mdec/, /
Type: External
bootpd
Page 12 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
bootpef
Directory: /usr/sbin/
Type: External
bootpgw
Function—Acts as a gateway between subnets and forwards BOOTP requests and replies.
Directory: /usr/sbin/
Type: External
bootpgw sun Starts the bootpgw service and listens for BOOTP requests to forward to the server sun.
Page 13 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
bootptest
Directory: /usr/sbin/
Type: External
bootptest sun Sends BOOT requests and tests the server sun.
brconfig
Directory: /sbin/
Type: External
brconfig bridge0 flushall Removes all addresses in cache for the bridge bridge0.
Page 14 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
brconfig bridge0 up -learn le0 Starts the bridge bridge0 and sets the interface le0 to not add addresses to cache.
c++
Directory: /usr/bin/
Type: External
c++filt
Page 15 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
symbols... Specifies the arguments to organize. Other vice arguments are read from STDIN.
Directory: /user/bin/
Type: External
c2ph, pstruct
Directory: /usr/bin/
Type: Script
caesar
Function—Is used to decipher caesar crypto by reading from STDIN and showing the results to STDOUT.
Syntax—caesar {rotation}
Directory: /usr/games/
Type: External
calendar
Function—Reads from the default calendar file or from a specified one and shows any scheduled events.
Syntax—calendar [options...]
-a Processes every user’s calendar file and mails the results to them.
-A days Shows information from today and the specified number of days in the future.
-B days Shows information from today and the specified number of days in the past.
-t date Uses the specified date as today’s date. Date format is: [cc][yy][mm][dd].
-f file Uses the specified file as the default calendar file.
Page 16 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
Tip Specifies the local national code table of your country in the calendar file by inserting LANG=locale_name.
cap_mkdb
Function—Creates a hashed capability database out of the termcap or terminfo logical databases.
Directory: /usr/bin
Type: External
cc
Function—The C and C++ compiler for BSD. See gcc or g++ for complete information.
Syntax—cc
File Name: cc
Directory: /usr/bin/
Type: External
cccp
Function—A macro processor used to transform a program before compilation. Mainly used by the C compiler.
Page 17 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
ccdconfig
Page 18 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /sbin
Type: External
cdio
Directory: /usr/bin
Type: External
cdio -s play 1 5 Starts cdio in silent mode any play from track 1 to 5.
cdio pause Pauses the CD.
certpatch
Function—Adds subjectAltname to a PEM certificate. Signs the certificate with the signing key after the addition.
Page 19 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-t type Specifies the type of the given identity. Can be ip, fqdn, or ufqdn.
-i identity Specifies the identity for the subjectAltname to insert into the certificate.
-k key Specifies the CA signing key to use when signing the certificate.
infile Specifies the certificate to use.
outfile Specifies where to write the new certificate.
Directory: /usr/sbin/
Type: External
chat
Function—An automated chat program doing conversational exchange between the computer and the modem.
Directory: /usr/sbin/
Type: External
checknr
Function—Checks nroff or troff files for errors such as missing delimiters and unknown commands.
Directory: /usr/bin/
Type: External
Page 20 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
chflags
Directory: /usr/bin/
Type: External
chio
-f device Specifies the device changer, rather than the default /dev/ch0.
ACTION Select one of the following actions:
move fromET fromEU toET toEU [inv] Moves the media unit from and to the specified ET/EU.
inv Inverts the media before moving it.
exchange sETsEU d1ETd1EU {d2ET d2EU} Exchanges a media unit.
Page 21 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
{i1 i2}
sET, sEU Specifies the source ET/EU.
d1ET,d1EU Specifies the destination ET/EU.
d2ET, d2EU Specifies the second destination ET/EU to store the old destination ET/EU.
i1 Inverts the exchange from source to destination.
Inverts the exchange from destination to destination2.
i2
Sets the picker in front of the element specified.
position toET toEU[inv]
Inverts before insertion.
inv
Shows information on the changer, like slots, drivers, pickers, and portals.
params
Shows which picker is set to be used by the changer.
getpicker
Specifies the picker to be used by the changer.
setpicker unit
Shows the status of all elements in the changer.
status {type} Specifies the element type to show information on. Can be one of the following:
type Specifies all elements containing a media unit.
FULL Specifies all elements deposited by an outside human operator.
IMPEXP Specifies all elements that are in an abnormal state.
EXCEPT Specifies all elements accessible by a picker.
ACCESS Specifies all elements that support exporting to an outside human operator.
EXENAB Specifies all elements that support importing from an outside human operator.
INENAB
Directory: /bin/
Type: External
-a list Adds a new user entry in the database as a colon-separated list of all user fields. (Available only to the superuser and isn’t supported in
-l Alters local information instead of the information in the YP.
-s newshell Changes, if possible, the user’s shell to the new shell specified.
-y Alters information in the YP instead of the local information.
username Specifies which user’s information to edit (default is the current user).
Directory: /usr/bin/
Type: External
ci
Function—Creates and stores revisions in the specified revision control system files.
This is the same command as the one found in Linux. Please see ci in the Linux chapter for all the options.
File Name: ci
Directory: /usr/bin/
Type: External
Page 22 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
clri
Directory: /sbin/
Type: External
co
Function—Checks out a revision from a RCS file and stores it in the corresponding working file.
This is the same command as the one found in Linux. Please see co in the Linux chapter for all the options.
File Name: co
Directory: /usr/bin/
Type: External
colcrt
Function—Removes underlines or shows them on new lines filtering the nroff file for a CRT preview.
Directory: /usr/bin/
Type: External
colcrt - nroff.file > nounderline.txt Removes underlines from the nroff file
colcrt -2 nroff.file > ownunderlines.txt Shows output with separate underline lines.
colrm
Page 23 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
colrm 3 Deletes all columns starting with column 3 from all lines in the file.
colrm 3 7 Deletes all columns starting with column 3 up to and including column 7 from all lines in the file.
column
-c count Formats the output for a screen with the specified number of columns.
-s characters... Uses the specified set of characters as a column delimiter for the -t option.
-t Creates a table from a determined number of columns or by use of the -s option.
-x Fills the columns before the rows are filled.
files... Specifies file to act on.
Directory: /usr/bin/
Type: External
compile_et
Function—Compiles error tables, converting them to a C source file usable with the com_err library.
Syntax—compile_et file
file Specifies the file containing the error table to compile. Must have the suffix .et.
Directory: /usr/bin/
Type: External
comsat
Function—The daemon that listens to the datagram port for any reports of incoming mail and notifies users.
Syntax—comsat
Page 24 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/libexec/
Type: External
config
The following options can be used only if you specify a config file:
-b builddir Creates the specified build directory rather than the default /compile/configfile.
-p Configures the kernel for usage with a system including profiling code.
-s srcdir Specifies the top-level kernel source directory to use instead of the default. (Default is four directories above the build director
The following options can be used only if you specify a kernel:
-e Enables editing the configuration of the kernel s devices.
-u Checks for boot-time kernel configuration changes, compares with kernel specified. (If boot kernel is the same as specified k
Choose between the two following options:
-f Causes config to overwrite the kernel specified with the altered kernel.
-o outfile Specifies the kernel outfile.
configfile Specifies the kernel configuration file to create the kernel build directory from.
kernel Specifies the kernel to configure.
The following are internal commands:
add device Adds a device by copying the device specified.
base count Changes the base of numbers entered and shown to 8, 10, or 16.
change Configures one or several devices. The following arguments are valid:
number Specifies the device number of the device to configure.
Specifies the device to configure.
device
Disables one or several devices. The following arguments are valid:
disable
Specifies a common attribute and disables all port devices.
attribute value
Specifies the device number of the device to disable.
number
Specifies the device to disable.
device Enables one or several devices. The following arguments are valid:
enable Specifies a common attribute and enables all port devices.
attribute value Specifies the device number of the device to enable.
number Specifies the device to enable.
device Exits without saving changes.
exit Finds one or several devices. The following arguments are valid:
find Specifies the device number of the device to find.
number Specifies the device to find.
device Shows help information.
help Shows all the devices that are known, one screen at a time.
list Specifies the number of rows per page.
lines count Exits and saves changes.
quit Shows all devices with the attribute and attribute value specified.
show attribute value
Directory: /usr/sbin/
Type: External
csh
Function—The C-shell command interpreter that uses a syntax similar to the C language.
Page 25 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
- When used as the first argument, a complete login to the shell is done.
-b Lets the rest of the options pass directly to the scripts.
-c Runs the first argument from the list and passes the other arguments to csh.
-e Exits on nonzero exit status or other abnormal terminations.
-f Does a fast start. Doesn t run .cshrc and .login.
-i Forces the command prompt on any type of terminal for interactive use.
-n Interprets but doesn’t run the commands, used for debugging scripts.
-m Reads .cshrc, regardless of its own and group’s. Dangerous, should only be used as root.
-s Takes command input from the STDIN.
-t Runs a single command line.
-v Verbose mode. Shows more information. Sets verbose after reading .cshrc.
-V Verbose mode. Shows more information. Sets verbose before reading .cshrc.
-x Echoes each command before it is run. Sets echo after reading .cshrc.
-X Echoes each command before it is run. Sets echo before reading .cshrc.
The -l option can only be used alone:
-l Runs the complete login to the shell.
arguments... Specifies one or more argument to the command.
Directory: /bin/
Type: External
ctm
Directory: /usr/sbin/
Type: External
ctm_dequeue
Page 26 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
ctm_rmail
Function—Decodes and reassembles delta files from mail files. Is used to send and receive ctm deltas via mail.
Directory: /usr/sbin/
Type: External
ctm_smail
Function—Splits the specified delta file into multiple mail files. Is used to send and receive ctm deltas via mail.
Page 27 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
ctm_smail -m 1000 delta deltamail Sets the split files to be smaller than 1,000 bytes.
cu
File Name: cu
Directory: /usr/bin/
Type: External
Page 28 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
cursor
Syntax—cursor [options....]
-d device Sets the shape on the cursor for the specified device.
-n screen Specifies what screen number to set the parameters on.
-s line Sets the starting scan line to use for the cursor.
-e line Sets the last scan line to use for the cursor.
Directory: /usr/sbin/
Type: External
cvs
Function—A version control and logging system for files or directory tree structures including any versionable files.
This is the same command as the one found in Linux. Please see cvs in the Linux chapter for all of the options.
Directory: /usr/bin/
Type: External
cvsbug
Function—Sends a CVS problem report to a central support site that runs GNATS.
Directory: /usr/bin/
Type: Script
cvsbug -f report -t [email protected] Reports the problem found in file report to the specified e-mail address.
Page 29 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
dbmmanage
Function—Manages DBM files with usernames and passwords to authenticate HTTP users.
Directory: /usr/bin/
Type: Script
dbmmanage datafile add userl F4Az\4z Adds the user userl F4Az\4z to datafile.
deroff
Function—Removes macro calls, requests, table descriptions, and backslashes from nroff, troff, tbl, eqn, or text files.
Directory: /usr/bin/
Type: External
deroff -w /etc/passwd Shows one word per line of the /etc/passwd file.
dev_mkdb
Syntax—dev_mkdb
Directory: /usr/sbin/
Type: External
Page 30 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
dga
Function—Tests video modes for X-window by filling the screen with different colors each time a key is pressed.
Syntax—dga
Directory: /usr/X11R6/bin/
Type: External
dga Starts the program. After that, press the b key to start the benchmark if wanted.
dhclient
Directory: /sbin/
Type: External
dhcpd
Function—It is a DHCP server that serves hosts with IP addresses on the network.
Page 31 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
dhcrelay
Function—Forwards BOOTP/DHCP requests from a subnet without a DHCP server to a subnet that has a DHCP server.
-p port Specifies the network port to listen for requests (default is 67).
-d Runs in foreground only (default is a daemon in the background).
-q Minimizes information shown at startup.
-i interface Specifies a network interface to forward BOOTP and DHCP requests (default is all).
servers... Specifies one or more DHCP servers to forward requests to.
Directory: /usr/sbin/
Type: External
dhcrelay -q sun Forwards requests to sun and minimizes the information at startup.
dhcrelay -i ep0 sun Forwards requests to sun from interface ep0.
dig
Page 32 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
disklabel
Function—Shows, installs, or modifies a hard disk label. Information in the disk label is used by the operating system.
Page 33 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
? {command} Shows help information for all commands or for one specified.
M Shows a manual page.
u Reverses changes. First time, change is removed; next time, it is restored.
p Shows the existing label.
{unit} Specifies output format as unit, b, c, k, m, or g for bytes, cylinders, KB, MB, and GB.
e Sets parameters for the disk.
b Specifies where to permit changes on the disk.
r Recalculates the hard disk free space.
a {partition} Specifies a partition to add. System will ask if no partition is specified.
c {partition} Resizes a partition. System will ask if no partition is specified.
d {partition} Deletes a partition. System will ask if no partition is specified.
Specifies which configuration for disk geometry to use.
g
Choices for configuration are d for disk, b for BIOS, and u for user.
{configuration}
Alters the parameters for a partition. System will ask if no partition is specified.
m {partition}
Specifies partition mount point. System will ask if no partition is specified.
n {partition} Stores the label to a file. System will ask if no file with directory is specified.
s {file} Sets the changes to the on-disk label permanent.
w Exits the editor and the system asks to save changes.
q Exits the editor and the system will not save changes.
x Toggles export mode, allows the use of some settings available only in this mode.
X Select one of the following actions:
ACTION Specifies the hard disk to use.
disk Specifies the disk type. Is required with -w and optional with -B and -R foptions.
disktype Specifies the protofile. Is required with -R foption.
protofile Specifies the pack ID. Is optionally used with -w foption.
packid
Directory: /sbin/
Type: External
dmesg
Function—A tool for viewing the contents of the system message buffer.
Syntax—dmesg [options...]
-M core Extracts values from the name list from the specified core (default is /dev/kmem).
-N system Extracts the name list from the specified system (default is /bsd).
Directory: /sbin/
Type: External
dnsquery
Page 34 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
This is the same command as the one found in Linux. Please see dnsquery in the Linux chapter for all the
options.
Directory: /usr/sbin/
Type: External
dump, rdump
Function—A backup program that examines your ext2 file system and determines which files to be backed up.
Directory: /sbin/
Type: External
dump -0 -u -f homedump /home/* Conducts a full backup, sends it to homedump and then updates the file /etc/dumpdates.
dump -S -0 / Outputs how many bytes a full dump on / will be.
dumpfs
Page 35 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /sbin/
Type: External
eject
Syntax—eject [-f]
-f tapename Specifies the tape to eject. Can either be a device or address to a remote computer.
Directory: /bin/
Type: External
elf2olf
Funcion—Converts the specified ELF version module into the default OLF object module format.
Directory: /usr/bin/
Page 36 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
encrypt
Directory: /usr/bin/
Type: External
error
-n Does not modify any files, but shows all error messages.
-q Asks if the error should be inserted into the file—respond with a y or n.
-s Shows statistics regarding the error categorization.
-v Runs the vi program on all touched files to edit the errors.
-t suffixlist Specifies a suffix list for the files to modify.
-l ignorefile Specifies names of functions to ignore, instead of .errors from the home directory.
file Specifies a file to use error messages from instead of STDIN.
Directory: /usr/sbin/
Type: External
ext_srvtab
Function—Reads service key files from Kerberos key distribution center database.
-n Specifies to read the master key from the master key cache file.
-r realm Specifies the realm fields in the extracted file match the specified realm.
host... Creates service kev file for the specified host.
Directory: /usr/sbin/
Page 37 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
fdisk
Directory: /sbin/
Type: External
file2c
Directory: /usr/bin/
Type: External
flex, flex++
Function—Is used to create a scanner program that recognizes lexical patterns in a text.
Page 38 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
This is the same command as the one found in Linux. Please see flex in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
fortune
Function—Shows an interesting or funny phrase from various files randomly each time you execute it.
Directory: /usr/games/
Type: External
fortune 50% humorists 50% linuxcookie Grabs a fortune from either the humorists or linuxcookie files.
fortune -l drugs Grabs a long fortune from the drugs file.
fpr, asa
Syntax—fpr {files...}
Directory: /usr/bin/
Type: External
ucgprog | fpr | lpr Converts the output from the Fortran program and sends it to the printer.
from
Page 39 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
from Shows all users that have sent mail to the user.
from -s ucg Shows a header for all mail sent by ucg.
fsck_ext2fs
Function—Makes an interactive file system consistency check and repairs the specified file systems.
-b number Specifies the number of the superblock for the file system.
-d Shows debug information.
-f Forces checking of file systems.
-m octal Specifies the permissions bits, in octal, when creating the lost+found directory.
-p Specifies to be in preen mode. Limited inconsistent correction.
-y Specifies to do a yes response to all questions asked.
-n Specifies to do a no response to all questions asked, except for CONTINUE.
filesystems... Specifies the file system to repair.
Directory: /sbin/
Type: External
fsck_ext2fs /dev/wd0e Performs file system check on Linux file system /dev/wd0e.
fsck_ext2fs -f /dev/wd0e Forces check, ignores the “clean” flag.
fsck_ext2fs -y /dev/wd0e Performs file system check, and assumes that you would answer yes on all questions.
fsck_ffs
Function—Makes a fast file system consistency check and interactive repair for the specified file system.
Page 40 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /sbin/
Type: External
fsck_ffs /dev/wd0a Performs file system check on BSD file system /dev/wd0a.
fsck_ffs -f/dev/wd0a Forces check, ignores the “clean” flag.
fsck_ffs -y /dev/wd0a Performs file system check, and assumes that you would answer yes on all questions.
fsck_msdos
Function—Makes a DOS/Windows (FAT) file system consistency check and repairs the specified file systems.
Directory: /sbin/
Type: External
fsck_msdos /dev/fd0 Performs a file system check on MS-DOS file system /dev/f d0.
fsck_msdos -y /dev/fd0 Performs file system check, and assumes that you would answer yes on all questions.
fsdb
Function—A tool for debugging and editing file system inode data.
Directory: /sbin/
Type: External
fsinfo
Function—Shows information, including the capabilities about X font servers on the network.
-server hostname Is used to specify the server and optionally the port, to show information about.
Page 41 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
fsirand
Function—Creates random inode generation numbers on all inodes on the specified device. It also creates a file system ID
in the superblock.
-b Defaults to the 512KB block size instead of what’s gathered from the disklabel.
-f Forces command to run even on unclean file systems.
-p Shows the generation numbers for all inodes.
device Specifies the special device that holds the inodes.
Directory: /sbin/
Type: External
fslsfonts
Function—Shows the fonts on the font server that match the pattern specified. Wildcards * can be used.
Syntax—fsltonts [options...]
Type: External
fsplit
Function—Reads Fortran source code from a file or STDIN and splits the input into separated routine files.
Page 42 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-e subprograms... Specifies the subprogram units that only will be split into separated files.
file Specifies the Fortran file to split.
Directory: /usr/bin/
Type: External
fsplit -e readit -e doit prog.f Splits readit and doit into separated files.
fstat
Directory: /usr/bin/
Type: External
fstobdf
Function—Creates BDF fonts from an X font server. It is used to debug fonts and re-create BDF files.
Directory: /usr/X11R6/bin/
Type: External
fstobdf -fn terminal Creates a BDF font from the terminal font from the default font server.
fstobdf -fn terminal -server localhost:7100 Creates a BDF font from the terminal font from localhost:7100 font server.
Page 43 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
fvwm
Function—A window manager for X11. Is used to minimize memory consumption, provide a 3-D look to window frames.
Syntax—fvwm [options...]
-f configfile Reads the specified config file as its initialization file (default is .fvwm2rc).
-cmd initcmd Specifies the initialization command to use instead of read .fvwm2rc.
-debug Shows debug information. Slows things down, but guarantees the error messages are right.
-d ddisplay Specifies to use display instead of the name from the environment variable $DISPLAY.
-s Runs only on the screen named in $DISPLAY or the display specified in the -d option.
--version Prints the version to STDERR.
Directory: usr/X11R6/bin/
Type: External
Tip The -f and -cmd options can be used 10 times and they will be executed in the order specified.
g++
Syntax—g++ [option...]
This is the same command as the one found in Linux. Please see g++ in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
g++ hello.cpp -o hello Compiles and links hello.cpp; produces binary file hello as output.
g77, f77
Function—The GNU Fortran compiler. This can also be started using f77.
Page 44 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
gcc, cc
This is the same command as the one found in Linux. Please see gcc in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
gdb
Function—A debugger that can manage debugging of C, C++, and Modula-2 code. A.K.A. GNU Debugger.
This is the same command as the one found in Linux. Please see gdb in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
gdb -nw -command=gdb.command Runs the gdb script gdb.command and prints to STDOUT.
gencat
Function—Formats text from a message file and merges the information into the formatted message database called a cat
file.
Page 45 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
getNAME
Function—Captures NAME sections from manual sources, and can be used to create manual introduction sections or a
TOC.
-i Reports information from the manual that is useful for manual section introduction.
-t Reports information from the manual that is useful for table of contents creation.
-w Determines if traditional, new, or unknown formats exist.
files... Specifies the manual source that the NAME section will be extracted from.
Directory: /usr/libexec/
Type: External
getNAME /usr/man/man1/* Shows the name section of the man files in /usr/man/manl/*.
getty
Function—Is used to manage ports and terminal lines. Is not usually used on the command line.
Syntax—getty option
Directory: /usr/libexec/
Type: External
gnubc
Function—Is used to calculate arbitrary precision numbers. Statements will be read from a file specified or from STDIN.
Page 46 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
grodvi
Function—A groff driver that creates TeX dvi files that can then be printed out.
-d Allows horizontal and vertical line implementation, but ignores all other draw commands.
-v Shows version information.
-w value Sets the line thickness to the specified value in thousandths of an em.
-F directory Searches the specified directory for device and font description files.
files... Specifies the dvi file or files to create.
Directory: /usr/bin/
Type: External
groff
This is the same command as the one found in Linux. Please see groff in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
grog
Function—Guesses which groff option is required for printing a specific file and sends this answer to STDOUT.
This is the same command as the one found in Linux. Please see grog in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
grolj4
Page 47 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Function—A groff driver that is used for creating output that can be printed onto an HP LaserJet 4-type printer.
Directory: /usr/bin/
Type: External
grolj4 -c4 -pa4 diploma.ps Prints four copies of diploma.ps and uses the a4 format.
grops
Function—Translates GNU troff output into PostScript. Usually started by groff -Tps.
-b level Works around spoolers and previewers that can’t manage DSC 3.0 conventions.
The following manage levels determine what will be done to the output:
0 Does not activate any workarounds (is default).
1 Blocks %%BeginDocumentSetup and %%EndDocumentSetup comments.
2 Blocks lines in files that have %!. This is used for Sun’s Pageview previewer.
4 Blocks %%Page, %%Trailer, and End-Prolog comments.
8 Forces output’s first line to be %!PS-Adobe-2.0, not %!PS-Adobe-3.0.
-c amount Specifies the number of copies to create of each page.
-g Generates documents that can be printed on letter and a4 by guessing the page length.
-l Prints out the document in the landscape format.
-m Turns on the manual feed.
-w thickness Specifies line thickness in thousandths of an em.
-F directory/devname Specifies the directory and file to search for device and font description files.
-v Shows version information.
files... Specifies the PostScript output file or files to create.
Directory: /usr/bin/
Type: External
grops -g ugcontract.ps Prints the document ucgcontract.ps on either a4 or letter paper format.
grops -g -I ucgcontract.ps Prints the document ucgcontract.ps on either a4 or letter but using the landscape format.
grotty
Function—Translates GNU troff output into a simple printer format. Usually started from groff.
Page 48 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-F directory/devname Specifies the directory and file to search for device and font description files.
-h Puts horizontal tabs every eight columns in the output.
-f Puts form feeds in the output if the page has no output on the last line.
-b Suppresses the use of overstriking all bold characters.
-u Suppresses the use of underlining all italic characters.
-B Allows only overstrike on bold-italic characters.
-U Allows only underline on bold-italic characters.
-o Suppresses overstrike on other than bold or underlined characters.
-d Ignores all \D commands.
-v Shows version information.
files... Specifies the file or files for output.
Directory: /usr/bin/
Type: External
groupadd
Directory: /usr/sbin/
Type: External
gunzip
-a Is ASCII text mode, converts end-of-lines. Supported only for some non-UNIX systems.
-c Doesn’t change the file and write to STDOUT.
-f Forces decompression.
-h Shows help information.
-l Shows information about compressed file.
-L Shows information about license and then quits.
-n Doesn’t restore filenames if present (is default).
-N Restores filename if it exists.
-r Decompresses recursive.
-S .ext Specifies suffix of the output file.
-q Uses quiet mode.
Page 49 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
gzcat
Function—Uncompresses a list of files from the command line or STDIN and writes the uncompressed data to STDOUT.
Type: External
Note Is sometimes used instead of zcat to preserve the original link to compress.
gzexe
Directory: /usr/bin/
Type: External
Note Performance will suffer from use of this command— recommended only on small disks.
gzexe ls Compresses the command Is. It will expand on the fly when used.
gzexe -d Is Decompress Is to original size.
Page 50 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
gzip
-a Is ASCII text mode, converts end-of-lines. Supported only for some non-UNIX systems.
-c Doesn’t change file, only writes to STDOUT.
-d Decompresses the file. This is the same as using the gunzip command.
-f Forces compression.
-h Shows help information.
-l Shows information about compressed file.
-L Shows information about license and quits.
-n Doesn’t save name and timestamp.
-N Saves name and timestamp.
-q Suppresses all warnings.
-r Compresses all files in subdirectories, recursively.
-S .ext Specifies the suffix.
-t Tests integrity of the file.
-v Verbose mode. Shows more information.
-V Shows version information.
-number Specifies the compression rate 1 is fast but least compressed, and 9 is slow but most compressed.
--fast Specifies to use the fast but least compression rate. The same as -1.
--best Specifies to use the slow but most compression rate. The same as -9.
files... Specifies one or more files to compress.
Directory: /usr/bin/
Type: External
h2ph
Function—Converts the specified C header files into Perl header file format.
Directory: /usr/bin/
Page 51 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: Script
h2xs
-A Skips all autoloaded values and disables the autoloader in the .pm file.
-C Doesn’t create the changes file, and adds a HISTORY section to POD template.
-F Specifies flags for C preprocessor to find function parameters in header. (You need to use the -x option with -F.)
-M expression Specifies macros or functions to process.
-O Overwrites directories if they already exist.
-P Skips the stub POD section.
-X Skips the XS portion. Used to create templates for non-XS-based modules.
-a Creates accessory method for each method of struts and unions.
-c Skips constants in the .as file and matching autoloads in the .pm file.
-d Shows debug information.
-f Creates an extension for a header.
-h Shows help information.
-k Skips the const attribute in the XS code.
-m Creates a perl variable for each corresponding variable in the header file.
-n module Specifies name to use for extension.
-o expression Specifies opaque data. (When you use -o you have to use the -x option.)
-p prefix Specifies prefix to remove from the Perl function names.
-s sub 1,sub2 Creates subroutines for the specified macros.
-v version Specifies the version number for this extension.
-x Creates XSUBs from function declarations in the header file.
files... Specifies header file or files.
Specifies the extra directories that have C header files.
directories...
Directory: /usr/bin/
Type: Script
help
Syntax—help {command}
Directory: /usr/bin/
Type: External
hexdump
Page 52 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
host
Syntax—host [options...] name {server} {zone}, host [options...] option names..., host [options...] option zone
Page 53 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
hpftodit
Function—Uses an HP tagged font metric file and creates a font file for use with groff -Tlj4.
Directory: /usr/bin/
Type: External
htdigest
Page 54 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
htdigest -c pass Home Scarloc Creates pass and adds the user Scarloc to the realm Home.
htpasswd
Directory: /usr/bin/
Type: External
httpd
Syntax—httpd [options...]
Page 55 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
iceauth
Directory: /usr/X11R6/bin/
Type: External
ident
Page 56 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
Note The strings are normally inserted from the RCS command co, but can also be inserted manually.
identd
Function—Searches TCP/IP connections and shows the usernames that own the connections.
Syntax—identd [options...]
Directory: /usr/libexec
Type: External
imake
Function—Creates Makefiles from a template, a set of cpp macro functions, and a per-directory file that is called Imakefile.
Syntax—imake [options...]
Page 57 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/X11R6/bin/
Type: External
indent
Function—Inserts or erases whitespace in C code to make it easier to read. Converts from one C style to another.
Page 58 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
inetd
Directory: /usr/sbin/
Type: External
inetd Starts looking for connections on the services specified in the default configuration file.
inetd-R 10 Starts and limits the number of times a service can be accessed during one minute to the specified number of times.
info
Function—Shows hypertext info nodes. Info nodes fill the same function as man pages
Directory: /usr/bin/
Type: External
Page 59 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
info emacs Shows the emacs node from the top level.
info emacs buffers Shows the node buffers in the emacs manual.
info -f ./foo.info Shows the file /foo.info.
infotocap
Function—Reads the specified file and converts found terminfo descriptions to termcap descriptions.
-v level Verbose mode. Shows more information. Level specifies the verbose level to use.
-V Shows version information.
-1 Does one field per line.
-w width Changes the output to specified width of characters.
files... Specifies the terminfo file to convert.
Directory: /usr/bin/
Type: External
Note This is actually a symbolic link to tic. Please see tic for more available options.
installboot
Function—Installs a first stage boot program to the boot area of an ffs disk partition.
Directory: /usr/mdec
Type: External
install-info
Page 60 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
--dir-file=file Specifies the name of the info directory file. Same as the argument directory.
--entry=text Adds the specified text as an info file.
--help Shows help information.
--info-file=file Specifies the name of the info file. Same as the argument file.
--info-dir=file Same as --dir-file.
--item=text Same as --entry.
--quiet Suppresses all warnings.
--remove Same as --delete.
--section=section Puts the info file in the specified section of the info files.
--version Shows version information.
file Specifies the info file to install or erase.
directory Specifies the info directory file in which the entries are to be installed or erased.
Directory: /usr/bin/
Type: External
ipf
Directory: /sbin
Type: External
Note Makes sure ipfilter is enabled in /etc/rc.conf, IP forwarding is enabled in /etc/sysct1.conf, and uses a correct
kernel.
ipf -l -Fa -f /ucg_examples/ipf.rules Flushes rules and installs the ones found in the specified rules file.
ipf -s Changes the inactive rules with the active rules.
ipfstat
Page 61 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Syntax—ipfstat [options...]
-a Shows the accounting filter list and bytes counted against each rule. Used with -i, -h.
-A Shows packet authentication statistics.
-d device Specifies to use device instead of /dev/ipl for interfacing with the kernel.
-f Shows fragment and held state information.
-h Shows the number of times there is a hit for each rule. Used with -i, -o.
-i Shows the filter list of rules used for the input side of the kernel IP processing.
-o Shows the filter list of rules used for the output side of the kernel IP processing.
-l Switches between retrieving inactive and active filter list details. Used with -h.
-n Specifies to show the rule number for each rule.
-M device Specifies the device to use for extraction of values associated with the name list.
-s Shows packet/flow and held state information.
-v Verbose mode. Shows more information.
Directory: /sbin
Type: External
ipftest
Function—Sends test packets through an ipf filter rule set found in a specified ruleset file.
-v Verbose mode. Shows more information about packets that pass and those that fail.
-d Shows debug information.
-b Shows the result of each packet. Results can be pass, block, or no match.
-l interface Specifies the interface name to bind a packet to. Used with -P, -S, and -E.
-P Reads the input file as a binary file created by libpcap.
-S Reads the input file as a snoop file.
-T Reads the input file as a tcpdump output file.
-H Reads the input file as hex digits.
-X Reads the input file as text descriptions of packets.
-E Reads the input file as an etherfind output file.
-i file Reads the input from the specified file (default is STDIN).
-r file Uses the filter rules found in the specified file.
Directory: /usr/sbin/
Type: External
Tip Use this to test your filter rules instead of trying them on real packets.
ipftest -v -H -i packets - Reads the specified hex digits contained in the file specified and matches them against /etc /ipf.rules
r /etc/ipf.rules and shows what happens to the packets.
ipmon
Function—Shows the logged packets going through the IP packet log device.
Page 62 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
inpnat
Function—Is used to configure IP network address translation rules. NAT is used to hide private networks
Syntax—ipnat [options...]
Directory: /sbin/
Type: External
Tip Use network address translation to let computers on the LAN access the internet.
Page 63 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
ipresend
Syntax—ipresend [options...]
Directory: /usr/sbin/
Type: External
ipsecadm
Page 64 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
rmd160 Works with both the newer ah and the newer esp.
-key key Specifies the secret key for encryption. Hexadecimal digits only.
-auth key Specifies the secret key material for the newer esp mode if needed.
-iv Has been stripped down to be similar to the -halfiv option.
-halfiv Permits use of a 4-byte IV, which means that it may only be used with old esp.
-proto Specifies the security protocol needed by flow, delspi, group, or bind.
50 Specifies the IPPROTO_ESP security protocol.
51 Specifies the IPPROTO_AH security protocol.
4 Specifies the IPPROTO_IP security protocol.
symbolicname Specifies the esp, ah, or ip4 security protocols.
-chain Deletes the entire SPI chain or the specified SPI.
-dst2 Specifies the second IP destination used by group.
-spi2 Specifies the second SPI used by group.
-proto2 Specifies the second security protocol that is used by group.
50 Specifies the IPPROTO_ESP security protocol.
4 Specifies the IPPROTO_IP security protocol.
symbolicname Specifies the esp, ah, or ip4 security protocols.
-addr Specifies source address, network mask, and destination addresses for security packets.
-transport Specifies the protocol number that is used for packet security matching.
-sport Specifies the source port that must match the packets. Use a number or service name.
-dport Creates a flow that matches local packets. Same as 0.0.0.0/255.255.255.255.
-delete Deletes an existing flow instead of creating one.
-ah Supports only flush SAs of the type ah.
-esp Supports only flush SAs of the type esp.
-oldah Supports only flush SAs of the type oldah.
-oldesp Supports only flush SAs of the type oldesp.
-ip4 Supports only flush SAs of the type ip4.
Directory: /sbin/
Type: External
ipsecadm flush -esp Removes esp SAs with its routes and flows.
ipsecadm new ah -forcetunnel Forces IP-inside-IP encapsulation before ESP or AH processing is done on out packets.
ipsecadm ip4 -spi Sets the security parameter index for IP-in-IP encapsulation protocol.
ipsend
Page 65 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
iptest
Function—Tests the IP’s functions by generating packets and sending them to specified destinations.
-1 Tests IP headers. Point tests that can be set with the -p option are as follows:
1 ip_hl < ip_len.
2 ip_hl > ip_len.
3 ip_v < 4.
4 ip_v > 4.
5 ip_len < packetsize, long packets,
6 ip_len > packetsize, short packets.
7 Zero-length fragments.
8 Packet > 64K after reassembly.
9 IP offset with MSB set.
10 TTL variations.
-2 Tests IP options. Point tests are as follows:
1 Option length > packet length.
2 Option length = 0.
-3 Tests the ICMP. Point tests are as follows:
1 ICMP types 0-31 and 255.
2 Type 3 and codes 0-31.
3 Type 4 and codes 0, 127, 128, 255.
4 Type 5 and codes 0, 127, 128, 255.
5 Types 8-10, 13-18 with codes 0, 127, 128, and 255.
6 Type 12 and codes 0, 127, 128, 129, 255.
7 Type 3 and codes 9, 10, 13, 14; and 17, 18— shortened packets.
-4 Tests the UDP. Point tests are as follows:
1 UDP length > packetsize.
2 UDP length < packetsize.
3 Sport = 0, 1, 32767, 32768, 65535.
4 Dport = 0, 1, 32767, 32768, 65535.
5 sizeof(struct ip) <= MTU <= sizeof(struct udphdr) + sizeof(struct ip).
-5 Tests the TCP. Point tests are as follows:
1 TCP flags variations, all combinations.
2 Seq = 0, 0×7fffffff, 0×8000000, 0×a0000000, 0×ffffffff.
3 Ack = 0, 0×7fffffff, 0×8000000, 0×a0000000, 0×ffffffff.
4 SYN packet with window of 0, 32768, 65535.
5 Sets urgent pointer to 1, 0×7fff, 0×8000, 0×ffff.
6 Data offset.
7 Sport = 0, 1, 32767, 32768, 65535.
8 Dport = 0, 1, 32767, 32768, 65535.
-6 Tests overlapping fragments by trying to exhaust the network holding packets buffers.
-7 Tests the IP with random packets.
-d device Specifies the interface device (default is lan0). (Lan0 doesn t normally exist in OpenBSD, and so it should be specified.)
-g gateway Specifies the gateway to route packets through.
-m mtu Specifies MTU to use allowing network interfaces with a small MTU to be simulated.
-p pointtest Specifies the point test to run on specified group.
-s src Specifies the IP packets source address.
destination Specifies where to send packets.
Directory: /usr/sbin/
Page 66 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
isakmpd
Function—The IKE key management daemon that establishes security associations for authenticated/encrypted network
traffic.
Syntax—isakmpd [options...]
Directory: /sbin/
Type: External
ispcvt
Function—Verifies whether the current video driver installed in the kernel is a PCVT driver.
Syntax—ispcvt [options...]
-c Shows all options for the PCVT driver used when the kernel was compiled.
-d device Specifies the device to check.
-v Verbose mode. Shows more information.
Directory: /usr/sbin/
Type: External
jot
Function—Creates a sequence of numbers, characters or words, according to the operands specified in the parameters.
Page 67 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-s string Specifies the string to insert between the values (default is new line).
-p decimals Sets the number of decimals to show the values on (default is 0).
repetitions Specifies how many values to generate.
start Specifies the starting value or character.
end Specifies the end value or character.
Specifies the change of each value. Can be decimal and negative.
step
Directory: /usr/bin/
Type: External
kadmin
Syntax—kadmin [options..]
-u user Specifies the user to act as when using the program (default is current user).
-p principal Specifies the default principal.
-T timeout Sets timeout, -m equals -T 0.
-x Uses existing tickets.
-r realm Specifies the default realm for transactions (default is the local realm).
-m Doesn’t allow any other users to be logged in as the administrator while on it.
Directory: /usr/sbin/
Type: External
Note This command can be used over the network, but the master database computer must then have kadmind
running.
kadmind
Syntax—kadmind [options...]
-n Takes the master key from the master key cache file, instead of asking for it.
-h Shows status on the permissible control arguments.
-i address Listens only on that address.
-m Prompts the user to enter master key.
-r realm Pretends that the specified realm is the local realm, instead of the real realm.
-f file Specifies the file to use on log information.
-d name Specifies the database name to use.
-a acldirectory Searches for access control lists in the specified directory.
Page 68 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/libexec/
Type: External
kauth
Directory: /usr/bin/
Type: External
kauthd
Syntax—kauthd [-i]
Directory: /usr/libexec/
Type: External
kbd
Directory: /sbin/
Page 69 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
kcon
Syntax—kcon [options...]
-d delay The delay to start to repeat strokes. The delay is 250 + delay * 250 milliseconds.
-m map Specifies the keyboard mapping to use, if found in the keycap database.
-l Shows the keyboard map currently used by the driver.
The following three options can only be use with the -l option:
-o Shows the keyboard map in octal.
-x Shows the keyboard map in hexadecimal (is default).
-p Doesn t show associated names on certain characters, only the values.
-r rate Specifies the rate of strokes per seconds is between 0 to 31.
-R Resets the keyboard.
-s Shows delay and rate values on repeating keystrokes.
-t mode Enables or disables repetition on keystrokes (+=enables, −=disables).
Directory: /usr/bsbin/
Type: External
kdb_destroy
Function—Deletes a Kerberos key distribution center database. Prompts the user for verification before actually doing it.
Syntax—kdb_destroy
Directory: /usr/sbin/
Type: External
kdb_edit
Function—Creates or changes principals stored in the Kerberos key distribution center database.
Syntax—kdb_edit [-n]
-n Gets the master key from the master key cache file, instead of asking for it.
Directory: /usr/sbin/
Page 70 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
kdb_init
Function—Initializes a Kerberos key distribution center database and creates the necessary principals.
Syntax—kdb_init {realm}
realm Specifies the realm to create. Asks for the realm if not specified.
Directory: /usr/sbin/
Type: External
kdb_util
Directory: /usr/sbin/
Type: External
kdestroy
Function—Writes zeros to the files containing the user s Kerberos authorization tickets, to destroy them.
Syntax—kdestroy [options...]
Directory: /usr/bin/
Type: External
Page 71 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
kdump
Function—Converts kernel trace files produced with ktrace to readable format. Shows it on STDOUT.
Syntax—kdump [options...]
Directory: /usr/bin/
Type: External
keynote
Syntax—keynote keygen algorithm size public private {offset}{length}, keynote sign -v algorithm assertion private,
keynote sigver {assertion}, keynote verify [options...] {files...}
Directory: /usr/bin/
Type: External
Page 72 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
kgmon
Syntax—kgmon [options...]
Directory: /usr/sbin/
Type: External
kinit
Directory: /usr/bin/
Type: External
klist
Function—Shows you information listed in the ticket file about current Kerberos tickets held.
Syntax—klist [options...]
-s Doesn t show ticket filename, owner name, or information on issue and expire times.
-t Exits with status 0 if there are any valid tickets and 1 if there are not.
-file file Specifies the file to use as the ticket file.
-srvtab Uses the ticket file as a service key file and shows all of the keys it contains. (If no ticket file is specified -srvtab uses /etc/srvtab by default.)
Directory: /usr/bin/
Page 73 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
kprop
Directory: /usr/sbin/
Type: External
kpropd
Function—Receives the Kerberos database propagated from a kprop process on a Kerberos master.
Directory: /usr/libexec/
Type: External
ksh,rksh
Syntax—ksh [options...] {arguments...}, ksh -c [options...] command {arguments...}, rksh [options...] {arguments...}, rksh -c
[options...] command {arguments...}
Page 74 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /bin/
Type: External
ksrvutil
Directory: /usr/sbin/
Page 75 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
kstash
Function—Saves the Kerberos key distribution center database master key in the master key file.
Syntax—kstash
Directory: /usr/sbin/
Type: External
ktrace
Directory: /usr/bin/
Type: External
kvm_mkdb
Directory: /usr/sbin/
Type: External
Page 76 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
kx
Function—Forwards X connections from a remote client to a local screen through an authenticated and encrypted stream.
File Name: kx
Directory: /usr/X11R6/bin/
Type: External
kxd
Syntax—kxd [options...]
Directory: /usr/X11R6/bin/
Type: External
lam
-f min.max Shows fragments of line specified by the format string of the width.
-p min.max Like -f, but pads the specific file when end of file is reached.
-s sepstring Shows specified string before showing line fragments from next file.
-tc Specifies the input terminator instead of a new-line.
files... Specifies which file to copy.
Directory: /usr/bin/
Type: External
Page 77 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
lastcomm
Directory: /usr/bin/
Type: External
ldconfig
Function—Scans built-in and specified system directories and stores any information about shared libraries in /var/run/ld.
Syntax—ldconfig [options...]
Directory: /sbin/
Type: External
ldd
Function—Shows all shared objects that are required to run the specified program.
-f format Specifies a format string that is passed to rtld, which customizes Idd’s output. (This option is repeatable up to two times.)
-v Verbose mode. Shows more information.
program Specifies the program to show requirements for.
Directory: /usr/bin/
Type: External
leave
Page 78 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Function—Reminds you of a time to leave. Reminds you 5 minutes and 1 minute before the specified time.
Syntax—leave [options...]
HHMM Specifies the time in hours and minutes. Assumes to be in the next 12 hours.
+HHMM Specifies the time in hours and minutes for the alarm to go off. It is like a timer.
Directory: /usr/bin/
Type: External
less, page
Function—A text pager for UNIX system, used to show ASCII files.
Page 79 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-Dxcolor Sets the text’s type and color. Color is a value.value pair (MS-DOS only). (The text type x is n= normal, s=standout, d=bold, u=
-e Quits the second time less reaches an EOF instead of just giving a warning.
-E Quits directly when the EOF is reached.
-f Opens all files not only those who are regular.
-F Shows the file, and if it’s only one page, quits.
-g Specifies that only the last search string found will be highlighted.
-G Doesn’t highlight strings found by the search commands.
-hlines Specifies the number of lines that can be shown by scrolling back.
-i Isn’t case-sensitive when matching patterns.
-I The same as -i, but won’t be case-sensitive even when pattern contains uppercase.
-jline Marks a screen line as the line on the screen where the search begins.
-J Shows a status column on the screen. Is used only with the -w or -W option.
-kfilename Specifies a filename to open as a lesskey file. Is repeatable.
-m Makes verbose prompts with percentages of the file instead of colons.
-M Makes prompts look even more verbose than with -m.
-n Doesn’t use line numbers.
-N Shows line numbers at the beginning of the lines.
-ofilename Specifies a file where to put the input from STDIN when showing it on the screen.
-Ofilename Does the same thing as -o, except that it will overwrite the specified file.
Shows the specified file from the first line containing the specified pattern.
-ppattern
Specifies another prompt to use instead of the default.
-Pprompt
Sets quiet mode. Won’t ring the bell when the EOF has been reached.
-q
Sets very quiet mode. Never rings the bell.
-Q
Shows control characters that could create screen problems.
-r
Does the same as -r, except that it tries to keep the correct screen appearance.
-R
Combines multiple blank lines into one blank line.
-s
Chops lines longer than the screen width.
-S
Shows the file containing tag. For this to work, ctags must have been run.
-ttag Is used with the -t option. Specifies another tags file to use instead of the default.
-T tagsfile Shows backspaces and new line characters as usual characters.
-u Handles Tabs, backspaces, and new lines as control characters.
-U Shows version information.
-V Highlights the first new line when a full page movement has been done.
-w The same as -w, but highlights when more than one line of movement is performed.
-W Uses the NR to specify where to set the Tab stops (default is 8).
-xNR Disables sending termcap initialization and deinitialization strings to the screen.
-X Uses the NR to specify the maximum number of lines to scroll forward.
-yNR Uses NR to specify default scrolling window lines (default is one full screen).
-[z]NR Specifies the start and end quote characters to use instead of using quotes.
-~ Enables lines after EOF to be shown as blank lines.
-"charchar Specifies the horizontal scrolling length for the left and right arrow command.
-NR Specifies the end of options. After this, everything is taken as filenames.
-- Commands invoked from within less:
Marks position with specified lowercase letter.
mletter Goes to the earlier marked letter, or with ^ or $ it goes to beginning or end of file.
'letter Scrolls down one full screen. You can also use Ctrl+V, Ctrl+F, or f.
Space The same as Space. NR also sets the size of the screen.
{NR}z The same as Space, but scrolls down one full screen even if you reach the EOF.
Esc+Space Scrolls down one line or number of lines. You can also use Ctrl+J, Ctrl+E, f, or j.
{NR}Return Scrolls down half a screen or the specified number of lines. You can also use Ctrl+D.
{NR}d Scrolls up one screen or the specified number of lines. You can also use Ctrl+B or b.
{NR}Esc+v The same as Esc+V. Number also sets the default size of the screen.
{NR}w Scrolls up the number of lines. You can also use Ctrl+Y, Ctrl+P, Ctrl+K, or k.
{NR}y Scrolls down half a screen or the specified number of lines. You can also use Ctrl+U.
{NR}u Scrolls right the number of characters (default is 8). You can also use right arrow.
{NR}Esc+) Scrolls left the number of characters (default is 8). You can also use left arrow.
{NR}Esc+( Repaints the screen. You can also use Ctrl+R or Ctrl+L.
r The same as r, but discards buffered input.
R Scrolls forward, even if the EOF is reached.
F Goes to line number in the file (default is 1). You can also use < or Esc+<.
Goes to line number in the file (default last line). You can also use > or Esc+>.
{NR}g
Specifies in percent where to start reading in the file. You can also use %.
{NR}G
Number specifies which one to use, if there is more than one on the top line:
NRp
Goes to the matching} if a {is shown in the top line.
Page 80 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
less -N /etc/passwd Shows /etc/passwd with a line number at the beginning of each line.
less -h 10 /etc/passwd Shows /etc/passwd; when Space is pressed displays the next 10 lines instead of the next full screen.
less -p ucgbook ~/books.txt Scrolls down to the first ucgbook match.
lesskey
Page 81 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
lint
Function—Is used to check a specified C program file for errors that leave it nonportable, wasteful, or buggy.
Directory: /usr/bin/
Type: External
Routines that don’t give any return, like exit, will not be understood by lint, which may cause incorrect reporting.
lint -l ucg Specifies that ucg will be added to the list of searchable directories.
listres
Page 82 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Syntax—listres [options...]
Directory: /usr/X11R6/bin/
Type: External
lkbib
Function—Searches for references in bibliographic databases that contains the specified keyword. Shows result on
STDOUT.
Directory: /usr/bin/
Type: External
lndir
Function—Creates a shadow of the current or specified directory containing only symbolic links to the parent directory.
-e file Adds the specified file to a list of files to be excluded from the shadow directory.
-s Suppresses all normal error messages in operation.
-i Creates symbolic links to the parent directories’ symbolic links (not recommended).
directory1 Specifies the parent directory.
directory2 Specifies the shadow directory to create.
Directory: /usr/bin/
Type: External
Page 83 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
locate
Function—Finds files in a database. The script /usr/libexec/locate.updatedb, usually run by cron daily, lists all files on the
system and builds /var/db/locate.database.
Directory: /usr/bin/
Type: External
Tip Note that you won’t find files that were created or renamed after /usr/libexec/locate updatedb was last run.
locate.updatedb
Function—Updates the locate database. This is usually updated using the /etc/weekly script.
Syntax—locate.updatedb [options...]
Directory: /usr/libexec/
Type: External
lock
Function—Locks a terminal to a user with password. It stays locked until it’s released by a user or timed out.
Page 84 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Syntax—lock [options...]
Directory: /usr/bin/
Type: External
lock Locks the terminal until 15 minutes has passed or the password is entered.
lock -p -t 60 Locks the terminal for 60 minutes, doesn’t ask for password when invoked; instead, login password is used.
lock -n Asks for a password twice, then locks the terminal until that password is entered again.
lockspool
Syntax—lockspool {user}
Directory: /usr/libexec/
Type: External
logresolve
Function—Resolves IP-addresses in Apache’s access log files. This is to reduce the impact for the name server.
Directory: /usr/sbin/
Type: External
lorder
Function—Finds ordering relation for an object or library archive and shows a list of the pairs.
Syntax—lorder filenames...
filenames... Can use one or more object or library archive filenames as the input.
Page 85 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: Script
lpc
Function—Is used by the system administrator to control the operation of the line printer system.
Syntax—lpc {ACTION}
Directory: /usr/sbin/
Type: External
lpd
Syntax—lpd {-l}
Directory: /usr/sbin/
Type: External
lpf
Page 86 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/libexec/lpr/
Type: External
lptest
Function—Creates a ripple test pattern to STDOUT and shows all 96 printable ASCII characters useful for testing.
length -+number Specifies the length of the output line in characters and the number of lines.
Directory: /usr/sbin/
Type: External
lynx
This is the same command as the one found in Linux. Please see lynx in the Linux chapter for all the options.
Directory: /usr/bin/
Page 87 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Type: External
lynx -cookies http://www.ucgbook.com/ Starts lynx and goes to the URL http://www.ucgbook.com.
Iynx -color http://www.ucgbook.com Starts Iynx with colors and does to the URL http://www.ucgbook.com.
machine
Syntax—machine [-a]
Directory: /usr/bin/
Type: External
mail.local
Function—Reads from STDIN and appends the information to the specified user’s mail file
Directory: /usr/libexec/
Type: External
Warning When running disk quotas on /var/mail, you must unset the m mail option for the local mailer.
mailwrapper
Function—Starts appropriate MTA software based on configuration information in /etc/mailer.conf.It is designed to replace
usr/sbin/sendmail.
Syntax—mailwrapper
Directory: /usr/sbin/
Type: External
Page 88 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
MAKEDEV
Function—Create system and device special files. This script is run at installation, but can be run later.
Syntax—MAKEDEV names...
Directory: /dev/
Type: Script
makeg
Function—Is used to make an executable file that can be used for debug operations.
Directory: /usr/X11R6/bin/
Type: Script
makeg program If a target program is specified in the makefile, a debuggable executable program is made.
makeinfo
Function—Converts TeX info files to plain text, HTML or info files for online reading.
This is the same command as the one found in Linux. Please see makeinfo in the Linux chapter for all the
options.
Directory: /usr/bin/
Type: External
makekey
Function—Creates an encryption key using ASCII characters for programs that run encryption
Page 89 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Syntax—makekey options...
Directory: /usr/libexec/
Type: External
makemap
Function—Uses the keyed map lookups in sendmail to create the specified type of database map. Reads from STDIN and
writes to the specified new map name.
-N Adds the null byte that will terminate the strings in the specified map.
-d Allows the use of duplicate keys in the specified map. Works with B-tree format maps.
-f Disables uppercase letters from being forced into lowercase (default is uppercase).
-o Appends to a previously existing file.
-r Allows for repeating existing keys. Default gives an error if repeated keys exist.
-s Disables the safety check on the map being created.
-v Verbose mode. Shows more information.
name Specifies the map name of the map database being created.
type Specifies the specific database map format. Only one of the following may be used:
dbm Specifies the map will follow DMB format rules.
btree Specifies the map will follow B-Tree format rules.
hash Specifies the map will follow hash format rules.
Directory: /usr/sbin/
Type: External
makemap -d btree newmap Allows the use of duplicate keys in the B-tree formatted map.
map-mbone
Function—Shows all multicast routers that are available from the specified multicast router startingrouter.
Page 90 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
md5
Function—An algorithm used for digital signature applications to create a 128-bit message-digest fingerprint.
Directory: /bin/
Type: External
merge
Function—Merges three files together. It merges the changes between input files two and three into input file number one.
Directory: /usr/bin/
Type: External
midiplay
-d number Specifies the device number to use for MIDI output (default is 0).
-f device Specifies the sequencers device.
-l Shows the possible MIDI output devices without playing anything.
-m Shows MIDI file meta events.
Page 91 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/bin/
Type: External
mkalias
Directory: /usr/sbin/
Type: External
mk-amd-map
Directory: /usr/sbin/
Type: External
mkdep
Page 92 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
-a Allows multiple mkdeps to run from a single Makefile by appending to the output file.
-p Makes mkdep to produce dependencies from the form: program: program.c
-f file Specifies a file to write the include file dependencies to.
flags List of flags for the C compiler.
files... Specify input file(s).
Directory: /usr/bin/
Type: Script
mkdep input.c Creates dependency lines for the specified source file.
mkisofs
Function—Creates an ISO9660 file system. Uses the specified directory tree to create a ISO9660 file system copy.
Directory: /usr/sbin/
Type: External
mkisofs -o rom -m '*.x' -m ucg -m rules Excludes all files ending with . x and that are called ucg or rules to be copied to CD-ROM.
mkisofs -o cd -x /local/ucgbook Does not write files from the directory /local/ucgbook to the CD-ROM.
mkstr
Page 93 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Function—Creates specific files containing error messages that are extruded from a list of other files.
[-] Places any error messages at the end of the message file.
messagefile Specifies the message file to be captured.
prefix Specifies the file prefix to use for the created file.
files... Specifies the files where the error messages will be extracted from. Use wildcards.
Directory: /usr/bin/
Type: External
Note mkstr was intended for the limited architecture of the PDP 1 1 family, so very few programs actually use it. The
Pascal interpreter, pi(1), and the editor, ex(1), are two programs that are similar.
mkstr pistrings processed Places the error messages from C source files into the file pistrings and places them in files with a prefix
*.c of processed.
mktemp
Directory: /usr/bin/
Type: External
modload
Function—Loads a loadable kernel module into a running system where the input file in the syntax is an object file (.o file).
Page 94 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /sbin/
Type: External
modstat
Function—Shows the status of any loadable kernel modules present in the kernel.
Syntax—modstat [options...]
Directory: /usr/bin/
Type: External
modunload
Syntax—modunload [options...]
Directory: /sbin/
Type: External
Note The modunload command was designed to be similar in fuctionality to the corresponding command in SunOS
4.1.3.
mopchk
Directory: /usr/sbin/
Type: External
Page 95 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Bug: In some implementations, the same interface can occur more than once.
mopd
Function—A MOP loader daemon that services MOP load requests on the Ethernet connected to one or all interfaces.
Directory: /usr/sbin/
Type: External
Note Supports two kinds of files. The file is first checked to see if it is in a.out format. If not, a few of Digital’s formats
are checked. Anomalies and errors are reported via syslog.
mopprobe
Function—Shows Ethernet address and node name for DEC servers 100/200/250/300 connected to one or all interfaces,
Directory: /usr/sbin/
Type: External
moptrace
Function—Shows the contents of MOP packages on the Ethernet connected to one or all interfaces.
Page 96 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /usr/sbin/
Type: External
mount_ados
Directory: /sbin/
Type: External
mount_ados /dev/wd1a /mnt Mounts the Amiga DOS file system from /dev/wd1a in /mnt.
mount_ados -u 0 -m Same as above, but makes root owner of all files and sets full permissions for root and none
700 /dev/wd1a /mnt for all others.
mount_cd9660
Function—Mounts an ISO-9660 file system found on the specified device to the specified mount point path.
Directory: /sbin/
Type: External
mount_ext2fs
Function—Mounts an extended2 file system found on the specified device and attaches that to the specified destination
Page 97 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
directory.
-o options... Specifies options to use when mounting. Multiple options are separated with a comma.
device Specifies a special device to use as the source when mounting.
directory Specifies a directory to use as the destination when mounting.
Directory: /sbin/
Type: External
mount_fdesc
Function—Mounts an instance of the per-process file descriptor namespace to the file system.
Directory: /sbin/
Type: External
mount_ffs
Function—Mounts a Berkeley Fast File System on the specified device and node.
Directory: /sbin/
Type: External
mount_kernfs
Page 98 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Function—Mounts an instance of the kernel parameter namespace to the global file system.
Directory: /sbin/
Type: External
mount_mfs
Function—Creates a file system in the virtual memory and then mounts it on the specified node.
Directory: /sbin/
Type: External
mount_msdos
Function—Mounts an MS-DOS file system to the specified special device at the specified node.
Page 99 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Directory: /sbin/
Type: External
Warning The -9 flag could result in damaged file systems. Default handling for -s and -l will result in empty file systems
to be populated with short filenames only.
mount_nfs
Function—Mounts the NFS directory located on the computer specified to the mount point.
Directory: /sbin/
Type: External
Tip NFS is perfect if you have several computers and want to share the same home file system.
mount_nfs ucgbook.com:/home/nfs /ucg Mounts the remote directory /home/nfs to the local directory /mnt.
mount_null
Function—Duplicates a subtree of the file system namespace and creates a null file system layer.
Directory: /sbin/
Type: External
Tip Two good reasons for a null layer: A good demo to use when teaching "how to build a layer" and a good prototype
layer, because it has all the necessary layer framework that you need.
mount_portal
Function—Mounts an instance of the portal daemon to the global file system namespace.
Directory: /sbin/
Type: External
mount_procfs
Function—Mounts an instance of the process namespace to the global file system namespace.
Directory: /sbin/
Type: External
mount_ufs
Function—Mounts a Berkeley Fast File System on the specified device to the specified mount point.
Directory: /sbin/
Type: External
mount_umap
Function—Mounts a subtree of a file system with a different set of UIDs and GIDs than the local system.
Directory: /sbin/
Type: External
Note The layer created by this command is meant to serve as an example of file system layering, so this is a good
template or a training tool.
mount_union
Function—Mounts a directory above uniondir and makes the contents of both directories visible.
Directory: /sbin/
Type: External
mount_xfs
Directory: /sbin/
Type: External
mrinfo
Function—Shows the configuration information from a multicast router. Must be run as root.
Directory: /usr/sbin/
Type: External
mrouted
Syntax—mrouted [options...]
Directory: /usr/sbin/
Type: External
Tip The tunneling mechanism allows mrouted to establish a virtual Internet, for the purpose of multicasting only which is
independent of the physical Internet and which may span multiple autonomous systems.
mset
Function—Retrieves mapping information for the ASCII keyboard to an IBM 3270 terminal.
Directory: /usr/bin/
Type: External
msgs
Directory: /usr/bin/
Type: External
msgs -h 1 Shows the beginning of all of the messages available in the .msgsrc, starting from the first one.
msgs -20 Shows all of the messages available in the .msgsrc, starting from the 20th one and going backward to the first one.
msgs -f Disables the No new messages message.
mtrace
-g name Sends the trace unicast directly to the specified multicast router.
-e number Tries to trace past a non-responding router the specified number of times.
Directory: /usr/sbin/
Type: External
Warning Ver. 3.3 and 3.5 will crash if a trace query is received via a unicast packet without a route for the source
address.
mtree
Syntax—mtree [options...]
Directory: /usr/sbin/
Type: External
named.reload
Function—Initiates the name server to synchronize its database. It sends a SIGHUP to the running name server.
Syntax—named.reload
Directory: /usr/sbin/
Type: External
named.restart
Function—Stops the running name server by sending a SIGKILL signal and starts a new name server.
Syntax—named.restart
Directory: /usr/sbin/
Type: External
Warning Does not wait after killing the old server before starting a new one. Does not check whether the name server
is actually running.
named-xfer
Directory: /var/named/
Type: External
nawk, awk
Function—Scans each input file for lines that match any of a set of patterns specified as a string.
Directory: /usr/bin/
Type: External
nc
Syntax—nc [options...]
File Name: nc
Directory: /usr/bin/
Type: External
nc -p 31337 example.host Opens a TCP connection to port 42 of example. host, and uses port 31337 as the source port.
42
nc -w 5 example.host 42 Opens a TCP connection to port 42 of example.host, and times out after five seconds while attempting
to connect.
nc -u example.host 53 Sends any data from STDIN to UDP port 53 of example.host, and shows any data returned.
ncheck_ffs, ncheck
Function—Creates a list of filenames and inode numbers for the given file system.
Directory: /sbin/
Type: External
ndc
Function— Allows the administrator of the name server to send commands to the name server.
Syntax—ndc {ACTIONS...}
Directory: /usr/sbin/
Type: Script
Tip Query logging consumes a lot of file space and any arguments that are sent to the name server are not saved by
restart.
netgroup_mkdb
Function—Creates netgroup databases (/etc/netgroup.db) from the /etc/netgroup file and saves it in /etc/netgroup.db.
Directory: /usr/sbin/
Type: External
newfs
Function—Creates a new file system using defaults based on the disk label created by disklabel.
Syntax—newfs [options...]
Directory: /sbin/
Type: External
newfs_msdos
-s kilobytes Specifies the size in kilobytes (can be 360, 720, 1200, or 1440).
-L label Specifies the label of the disk (default is 4.4-BSD).
device Specifies the device to use.
Directory: /sbin/
Type: External
newsyslog
Function—Archives system log files at intervals or when log file exceeds a specified size.
Syntax—newsyslog [options...]
Directory: /usr/bin/
Type: External
newsyslog -v -f mypersonalsyslog.conf Runs newsyslog in verbose mode and uses the specified config file.
nfsiod
Function—Improves performance for NFS asynchronous I/O requests for its server.
-n number Specifies the number of servers that are started (max 20).
Directory: /sbin/
Type: External
nologin
Function—A shell used only to deny a user to login. Shows the user the contents of /etc/nologin.txt.
Syntax—nologin
Directory: /sbin/
Type: External
Tip I use this when I want to reject an abusive user from the system for a short time instead of removing the user.
objdump
Function—Shows information about object files. Information shown is controlled by given options.
Directory: /usr/bin/
Type: External
objdump -f hello.o Shows overall header summary information for object hello.o.
oldrdist
Function—A file distribution program that remotely maintains copies of files over multiple hosts.
Syntax—oldrdist [options...] [-f file] [-d var=value] [-m host] {names...}, rdist [options...] -c names... {user@] host
[:destination}
Directory: /usr/bin/
Type: External
olf2elf
Directory: /usr/bin/
Type: External
openssl
Function—Performs various cryptographic functions from the shell and can create certificates.
Syntax—openssl command [command options...] {command arguments...}, openssl [list-command], openssl no-command
This is the same command as the one found in Linux. Please see openssl in the Linux chapter for all the
options.
Directory: /usr/sbin/
Type: External
openssl list-standard-commands Shows the complete list of standard commands that are available.
otp-md4
Function—Creates one-time passwords to authenticate access to a computer system with the MD4 hash algorithm.
Directory: /usr/bin/
Type: External
otp-md5
Function—Creates one-time passwords to authenticate access to a computer system with the MD5 hash algorithm.
Directory: /usr/bin/
Type: External
otp-rmd160
Function—Creates one-time passwords to authenticate access to a computer system with the rmd160 hash algorithm.
Directory: /usr/bin/
Type: External
otp-sha1
Function—Creates one-time passwords to authenticate access to a computer system with the sha1 hash algorithm.
Directory: /usr/bin/
Type: External
pac
Directory: /usr/sbin/
Type: External
pagesize
Syntax—pagesize
Directory: /usr/bin/
Type: External
pax
Syntax—pax -r [options...] {patterns...}, pax-w [options...] {files...}, pax -r -w [options...] {files...} directory, pax [options...]
{patterns...}
-c The following options are only available in a mode if the first letter appears:
-n L = list, R = read, W = write, C = copy:
-z (LR) Doesn’t use archive or file members that match patterns or filenames.
(LRC) Uses the first archive member for every specified pattern.
-f file
(LRW) Compresses or decompresses the file. Cannot be used with -a option.
-i
(LRW) Specifies the file of the input or output archive, instead of STDIN or STDOUT.
-k
(RWC) Prompts when renaming archive members or files matching the specified pattern.
-u
(RC) Doesn’t overwrite files that already exist.
-D
(RWC) Skips files that are older than preexisting files or archive members.
-Y
(RC) Is like -u, but will check the inode change time, instead of modification time.
-Z
(RC) Is like -D, but will check the pathname created after file modifications are done.
-o options
(RC) Is like -u, but will check the pathname created after file modifications are done.
options (RW) Specifies how to modify the algorithm for extracting or writing archive files.
-p priv Modifies the algorithm with the format name = value.
a (RC) Specifies the privileges that the extracted file will keep.
m Doesn’t save file access times.
o Doesn’t keep the file modification times.
p Keeps the user and group IDs.
e Keeps the file mode bits.
-E limit Keeps the user and group IDs, file mode bits, and the access and modification times.
-t (R) Specifies how many read faults to accept before stopping the operation.
-H (WC) Resets the archived files’ access times to what they had before being read.
-L (WC) Follows command-line symbolic links while doing a physical FS traversal.
-P (WC) Follows all symbolic links to perform a logical file system traversal.
-X (WC) Doesn’t follow symbolic links.
-b blocksize (WC) Doesn’t include subdirectories if they don’t match parent device ID.
-a Specifies the number of bytes per write to the archive file. Must be a multiple of 512.
-x (W) Appends the specified files to the end of the archive. (Can only be used with the -f option.)
cpio (W) Specifies the archive format to use. Can be one of the following:
bcpio Specifies the extended cpio interchange format.
sv4cpio Specifies the old binary cpio format.
sv4crc Specifies the system V release 4 cpio.
tar Specifies the system V release 4 cpio with file crc checksums.
ustar Specifies the old BSD tar format.
-B bytes Specifies the extended tar interchange format.
-l (W) Limits the number of bytes that can be written to a single archive volume. (Can have a suffix for multiple. m=1,04
patterns... (C) Makes hard links between src and dst file hierarchies whenever possible.
Specifies files of archive members.
Directory: /bin/
Type: External
pctr
Function—Shows the current values of TSC and can access the pctr pseudo device on i386-compatible computers.
Directory: /usr/bin/
Type: External
perlbug
-a address Specifies the address to send the bug report to. Default is [email protected].
-s subject Specifies a subject for the bug report.
-b body Specifies a body for the bug report.
-f infile Specifies a file with the body report already written.
-F outfile Specifies an output file instead of sending the bug report by e-mail.
-r returnaddress Specifies the return address.
-e editor Specifies the editor that is used.
-c adminaddress Specifies an address where to send a copy of the bug report.
-C Sends any copies of the bug report to the administrator.
Sends the bug report without waiting for confirmation.
-S
-t Runs the command in test mode.
-d Shows your configuration data.
-h Shows help information.
-v Verbose mode. Shows more information.
The following actions can’t be combined:
ACTION
-ok Reports successful builds on the system.
-okay Reports successful builds on older systems.
-nok Reports unsuccessful builds on the system.
-nokay Reports unsuccessful builds for older systems.
Directory: /usr/bin/
Type: External
perldoc
Function—Is used to find and show Perl documentation from inside installation’s trees or scripts.
Directory: /usr/bin/
Type: Script
pfbtops
Syntax—pfbtops {pfbfile}
Directory: /usr/bin/
Type: External
photurisd
Syntax—photurisd [options...]
Directory: /sbin/
Type: External
pkg_add
Directory: /user/sbin/
Type: External
pkg_create
-f packlist Uses pack list as the packing list for the package.
-c file Specifies a file that contains a one-line description for the package.
-c -description Specifies a description of the package.
-d file Specifies a file that contains a long description for the package.
-d -description Specifies a long description of the package.
-Y Uses yes as the answer for all questions.
-N Uses no as the answer for all questions.
-O Uses packing list only mode.
-v Verbose mode. Shows more information.
-h Makes tar follow symbolic links.
-i script Specifies an installation script.
-P pkgs... Specifies a list of dependency packages.
-C pkgs... Specifies a list of conflicts packages.
Specifies the directory to start to build the package from.
-p directory
Specifies a deinstallation script.
-k script
Specifies a script to check for requirements.
-r script Specifies the template for mktemp (default is /tmp/instmp.XXXXXX).
-t template
Specifies a list of files to exclude in the package.
-X excludefile Specifies a file to be shown with more after the installation.
-D file Runs mtree with mtreefile before the package is installed.
-m mtreefile Specifies the name of the package to create.
pkgname
Directory: /usr/sbin/
Type: External
pkg_delete
Function—It is used to remove previously installed software packages from the system.
Directory: /usr/sbin/
Type: External
pkg_info
Function—Is used to show information about software packages, both installed and not installed.
Directory: /usr/sbin/
Type: External
pl2pm
Syntax—pl2pm files...
Directory: /usr/bin/
Type: Script
pom
Syntax—pom datetime
datetime Specifies the date and time using the following format: ccyymmddHH.
Directory: usr/games/pom
Type: External
portmap
Syntax—portmap [-d]
Directory: /usr/sbin/
Type: External
portmap -d Runs a debug and shows the result without starting the daemon.
ppp
Directory: /usr/sbin/
Type: External
pppctl
socket Specifies the socket to connect to. It can be one of the following syntaxes:
{host:}port Specifies a local port to use, or a port on host.
localsocket Specifies a localsocket to use.
commands... Specifies commands to send to the PPP daemon.
Directory: /usr/sbin/
Type: External
pppd
active-filter expression Specifies a packet filter to be applied to data packets to detect link activity.
asyncmap map Specifies an async character map.
auth Specifies the peer must authenticate itself.
bsdcomp number, total Specifies the compression level for the peer to send using BSD compression.
call script Specifies a file in /etc/ppp/peers/name to read options from.
chap-interval number Specifies rechallenge of the peer every number of seconds.
chap-max-challenge number Specifies maximum number of CHAP challenge transmission to number (default is 10).
chap-restart number Specifies the CHAP retransmission timeout for challenges to number seconds.
Specifies a script to set up the serial line.
connect script
crtscts Specifies that hardware flow control should be used on the serial port.
Specifies that connection debugging should be done.
debug
Specifies that asyncmap negotiation should be disabled.
default-asyncmap
default-mru Specifies that MRU negotiation should be disabled.
Specifies that a default route should be added to the system routing tables.
defaultroute
Specifies the compression level for the peer to send using a deflate scheme.
deflate number:total
Specifies the link only should be initiated when data traffic is present.
demand
Specifies a script to run when the link is terminated.
disconnect script
Specifies that domain should be added to the local hostname for authentication.
domain domain
Specifies that certain characters should be escaped on transmission.
escape characters Specifies a file to read option from.
file file Specifies the number of seconds before reinitiating the link after it terminates.
holdoff number Specifies the link should be closed if the link is idle for number of seconds.
idle number Specifies the peer’s idea of our local IP address is accepted.
ipcp-accept-local Specifies the peer’s idea of our remote IP address is accepted.
ipcp-accept-remote Specifies maximum number of IPCP configure requests to be sent (default is 10).
ipcp-max-configure number Specifies the maximum number of IPCP NAKs returned before sending rejects.
ipcp-max-failure number Specifies maximum number of IPCP terminate requests (default is 3).
ipcp-max-terminate number Specifies IPCP restart interval to number seconds (default is 3).
ipcp-restart number Specifies an extra parameter to the ip-up and ip-down scripts.
ipparam string Specifies the IPXCP and IPX protocols should be enabled.
ipx Specifies the IPX network number in the IPXCP configure request frame.
ipx-network number Specifies the IPX local node number and the peer’s node number.
netmask address Specifies the peer doesn’t need to authenticate itself. This option is privileged.
noaccomp Specifies that BSD compression should be disabled.
noauth Specifies that compression control protocol should be disabled.
nobsdcomp Specifies that hardware flow control should be disabled.
noccp Specifies the defaultroute option should be disabled.
nocrtscts Specifies that deflate scheme should be disabled.
nodefaultroute Specifies that detaching from the controlling terminal should be disabled.
nodeflate Specifies that IPCP negotiation and IP communication should be disabled.
nodetach Specifies the default behavior when no local IP address is specified.
noip Specifies the IPXCP and IPX protocol should be disabled.
noipdefault Disables detections of looped back lines by disabling magic number negotiations.
noipx Specifies the field compression negotiation protocol should be disabled.
nomagic Specifies that once a connection has been made, it should be terminated.
nopcomp Specifies that Predictor-1 compression should be disabled.
nopersist Specifies that proxyarp option should be disabled.
nopredictor1 Specifies that Van Jacobson-style TCP/IP header compression should be disabled.
noproxyarp Specifies that Van Jacobson connection-ID compression should be disabled.
novj Indicates that all secrets in the /etc/ppp/pap-secrets file are be encrypted.
novjccomp Specifies maximum number of PAP authenticate-request transmissions (default is 10).
papcrypt Specifies the PAP retransmission timeout to number of seconds (default is 3).
pap-max-authreq number Specifies the maximum time to wait for the peer to authenticate itself with PAP.
pap- restart number Specifies that it should be passive until it gets a valid LCP packet, and not to exit.
pap-timeout number Specifies a packet filter to apply to data packets being sent or received.
passive Specifies that a terminated connection should be reopened.
pass-filter expression Specifies that Predictor-1 compression should be used.
persist Specifies that an entry to this system’s ARP should be added.
predictor1 Specifies the remote system name for authentication purposes.
proxyarp Specifies that CHAP authentication is disabled.
remotename name Specifies that PAP authentication is disabled.
Specifies that CHAP authentication is required.
refuse-chap
Specifies that PAP authentication is required.
refuse-pap
Specifies that LCP packets should not be sent to initiate a connection.
require-chap
Specifies enforcing of the hostname.
require-pap
silent Specifies the name used for authenticating the local system to the peer.
Specifies the number of slots to be used by the Van Jacobson TCP/IP header compression.
usehostname
Specifies a script to execute before initiating PPP negotiation.
username
Specifies that software flow control should be used.
vj-max-slots number
Specifies the local and/or remote interface IP addresses.
welcome script
Specifies the device to communicate over.
xonxoff
Specifies the baud rate to use.
local:remote
tty
speed
Directory: /usr/sbin/
Type: External
pppstats
Function—Shows PPP-related statistics for a PPP interface. The statistics are shown since the last report.
-a Shows absolute values instead of deltas. Shown since the link was initiated.
-c count Specifies the number of times the statistics will be shown.
-d Shows values in terms of data rate (KB/s) rather than in bytes.
-r Shows statistics about compression ratio of the packet compression algorithm in use.
-v Shows statistics related to the Van Jacobson TCP header compression algorithm.
-w time Specifies the time between updates of the screen.
-z Show statistics indicating the performance of the packet compression algorithm in use.
Directory: /usr/sbin/
Type: External
praliases
-f file Reads specified alias file instead of the default sendmail system alias file.
Directory: /usr/sbin/
Type: External
primes
start The value must be at least 0 and can’t be greater than stop.
stop The value cannot be greater than 4,294,967,295.
Directory: usr/games/primes
Type: External
psbb
Syntax—psbb file
Directory: /usr/bin/
Type: External
pstat
Function—Shows open file entries, swap space utilization, terminal state, and vnode data structure information.
Syntax—pstat [options...]
-T Shows the number of used and free slots for open files, used vnodes, and swap space.
-f Shows the open file table with various headings.
-k Specifies that 1KB blocks should be used.
-n Shows devices by major and minor number rather than by name.
-s Shows information about swap space usage on areas compiled into the kernel.
-t Shows table for terminals with various headings.
-v Shows the active vnodes.
-M core Specifies a core to search in.
-N system Specifies a namelist to search in (default is /bsd).
Directory: /usr/sbin/
Type: External
pts
Syntax—pts [options...]
Directory: /usr/sbin/
Type: External
pwd_mkdb
Function—Creates a secured or unsecured database for the specified file and installs it into /etc/master.passwd.
Directory: /usr/sbin/
Type: External
quiz
Function—Runs a quiz that tests knowledge in the specified subject. Shows a list of subjects if run without arguments.
Directory: /usr/games/
Type: External
quiz Asian capital Tests your knowledge on Asian capitals by naming an Asian country, and expects a city name as answer. quot
quot
Function—Shows the number of blocks in the file system that each user currently owns and summarizes the information.
Directory: /usr/sbin/
Type: External
raidctl
Syntax—raidctl [options...]
-a component device Makes the specified component to a spare for the specified device.
-B device Starts a copyback of reconstructed data to the original disk from a spare disk.
-c file device Uses the specified config file to configure the specified RAID device.
-C file device Works as -c, but forces the configuration, disregarding any error messages.
-f component device Marks the component specified as failed.
-F component device Works as -f, but also begins a reconstruction onto a hot spare.
-g component device Shows the label of the specified component.
Rewrites the parity on the specified device.
-i device
Sets the component labels on each component of the device.
-l serialnumber device
Checks the status of the parity on the RAID set.
-p device
Same as -p, but rewrites the parity if the parity isn’t up-to-date.
-P device Removes the specified spare disk from the set of spare components.
-r component device Marks the specified component as failed and begins a reconstruction.
-R component device Shows the status of the RAID frame device for each component and spares.
-s device Checks component reconstruction status.
-S device Unconfigures the specified RAID frame device.
-u device Verbose mode. Shows more information.
-v
Directory: /sbin/
Type: External
random
Function—Copies lines it reads from the STDINT to the STDOUT with a probability of 1/value.
-e Causes random to return a randomized exit code between 0 and value -1.
-r Causes all random output to be unbuffered.
value Specifies a value (default is 2).
Directory: /usr/games/
Type: External
random -e 7 Randomizes a value between 0 and 6, shows it on standard output and exits.
rarpd
-a Listens to all interfaces on the system. If not given, interface must be specified.
-d Shows debug information on STDERR.
-f Runs rarpd in the foreground.
-l Logs all requests to syslog.
interface Specifies the interface to listen on.
Directory: /usr/sbin/
Type: External
rbootd
-a Ignores the configuration file and responds to boot requests from any system.
-d Starts the debug mode and shows packet information.
-i interface Specifies the interface to use for boot requests.
file Specifies a configuration file to use if not the default.
Directory: /usr/sbin/
Type: External
rc
Syntax—rc
File Name: rc
Directory: /etc/rc
Type: Script
rcs
This is the same command as the one found in Linux. Please see rcs in the Linux chapter for all the options.
Directory: /usr/bin/
Type: External
rcsclean
-n{revision} Shows what the program, at the set revision level, would have done.
-q{revision} Activates quiet mode. Shows less information for the set revision level.
-r{revision} Specifies the revision to use for comparison.
-T Saves the modification time of the RCS file even if the file changes. Use carefully.
-u{revision} Unlocks the specified revision if there is no revision difference found.
-V Shows version information.
-kkey word Specifies the keyword to use when the comparison for revision is captured.
-V{version} Emulates the specified RCS version.
-xsuffix Characterizes the files with the specified suffixes.
-ztimezone Specifies the date output format to use for the keyword option.
Specifies the files to use.
files...
Directory: /usr/bin/
Type: External
rcsdiff
Directory: /usr/bin/
Type: External
rcsfreeze
Function—Assigns a unique revision number (freeze) to all RCS files that are checked in.
Syntax—rcsfreeze name
Directory: /usr/bin/
Type: Script
rcsmerge
Function—Merges two RCS files by first comparing the differences between them, and then creates a new file.
-A Merges changes from file1 to file2 and stores it in file3. Outputs diff3 type conflicts.
-E Shows conflicts in less verbose mode than -A (is default).
-e Same as -E, but disables warnings about conflicts totally.
-kkeyword Uses the specified keyword substitution when “compare and merge” takes place.
You must specify at least one, at the most two, of these rev options:
-p{revision} Sends results to STDIN instead of overwriting the working file of the set revision.
-q{revision} Runs quietly. Doesn’t show any diagnostics at all about the specified revision.
-r{revision} Merges with respect to the specified revision—if none, then the latest revision.
-T Is for compatibility with other RCS commands only. Doesn’t do a thing otherwise.
-V Shows version information.
-Vversion Emulates the specified RCS version.
-xsuffix Specifies the suffix to be used to explain RCS files.
-ztimezone Specifies the date output format to use for the keyword substitution.
Specifies the file to use.
file
Directory: /usr/bin/
Type: External
rcsmerge -p -r2.8 -r3.4 Compares and merges the different versions of ucg_rules.txt and overwrites the file with the new
ucg_rules.txt information.
rdate
Function—Gets the time from a specified remote system and sets or shows it on the local system.
Directory: /usr/sbin/
Type: External
rdconfig
Directory: /usr/sbin/
Type: External
rdistd
Function—Is used by the rdist command as a remote file distribution server program.
Syntax—rdistd [options...]
-V Shows version information. With this option, you don’t need the -S option.
-D Shows debug information. Messages are logged in syslog.
Directory: /usr/bin/
Type: External
readlink
Name: readlink
Directory: /usr/bin/
Type: External
readlink ucg If ucg is a link, it returns the target. If not, nothing is returned.
readlink -f ucg Shows full path of target to ucg.
reconfig
Function—Converts the older Xconfig file format to the XF86config file format.
Directory: /usr/X11R6/bin/
Type: External
reset
-n Specifies the new tty driver modes should be initialized. For BSD 4.3 tty driver.
-Q Suppresses printing of the erase, interrupt, and line kill characters.
-q Shows the terminal type on STDOUT, but doesn’t initialize it.
-r Prints the terminal type on STDERR.
-S Shows the terminal type and the termcap entry on STDOUT.
-s Prints the sequence of csh commands that initialize the TERM environment variable.
-m port-id {baudrate} Maps the terminal on the specified port.
type Specifies a terminal type configure or to map with the -m option. (In addition to the regular tset function, the following is done):
Turns on cooked and echo modes.
Turns off cbreak and raw modes.
Turns on newline translation.
Restores all special characters.
Directory: /usr/bin/
Type: External
restore, rrestore
Directory: /sbin/
Type: External
rev
Syntax—rev {file}
Directory: /usr/bin/
Type: External
rlog
Directory: /usr/bin/
Type: External
rmail
Function—Administer received mail from remote hosts through basic networking utilities (BNU).
Syntax—rmail users...
Directory: /bin/
Type: External
rmd160
Directory: /bin/
Type: External
rmgroup
Syntax—rmgroup group
Directory: /usr/sbin/
Type: Script
rmuser
Function—A perl script that will erase the specified user from the system.
Syntax—rmuser {user}
Directory: /usr/sbin/
Type: Script
rotatelogs
Function—Starts a new log file and saves the old. Only for Apache Web server.
Directory: /usr/sbin/
Type: External
rotatelogs accesslog 86400 Rotates the log named accesslog every 24 hours.
routed
Function—Manages and provides network routing tables for hosts on the network.
Syntax—routed [options...]
Directory: /sbin/
Type: External
rpc.bootparamd
Syntax—rpc.bootparamd [options...]
Directory: /usr/sbin/
Type: External
rpc.bootparamd -r 192.168.1.1 Starts the daemon and uses the specified router.
rpc.bootparamd -d -s Shows debugging information to syslog.
rpc.bootparamd -f /boot/param/bootparam Uses the specified bootparam files.
rpc.lockd
Function—Starts the NFS lock manager (NLM). Useful for kernels who do this automatically.
-d level Specifies level of debugging. The higher the level, the more debug information (default is 1).
Directory: /usr/libexec/
Type: External
rpc.pcnfsd
Syntax—rpc.pcnfsd
Directory: /usr/sbin/
Type: External
rpc.rquotad
Function—An RPC server that manages users of a local file system mounted over the NFS by reporting quotas.
Syntax—rpc.rquotad
Directory: /usr/libexec/
Type: External
rpc.sprayd
Syntax—rpc.sprayd
Directory: /usr/libexec/
Type: External
rs
-ccharacter Uses the specified character (or ^|) as the delimiter of the input columns.
-scount Uses the specified number of strings as delimiter of the input.
-Ccharacter Uses the specified character (or ^|) as the delimiter of the output columns.
-Scount Uses the specified number of padded strings as delimiter of the output.
-t Uses the columns from the input to fill the rows in the output.
-T Shows the pure transpose of the input.
-kcount Specifies the number of rows to ignore from the beginning of the input.
-Kcount Works like -k, but shows the ignored lines from the input.
-gcount Specifies the gutter width.
Adds the specified percent of maximum column width to the gutter.
-Gcount
Handles each line of input as an array entry.
-e
-n Uses null entries to pad out lines if they are shorter than the first line.
-y Pads the output by recycling the input from the beginning instead of blanks.
-h Shows only the shape of the input array and does nothing else.
Works like -h, but also shows the line length.
-H
-j Adjusts columns to the right side.
Specifies the width of the screen.
-wcount
Does not erase excess delimiters from the ends of the output array.
-m
Adjusts the column width to the largest string.
-z
Specifies the number of rows.
rows...
Specifies the number of columns.
columns...
File Name: rs
Directory: /usr/bin/
Type: External
rstart
Function—A simple example of the remote start client. This script relies upon rsh.
Directory: /usr/X11R6/bin/
Type: Script
rstartd
Function—A script that helps the use of working with a remote shell.
Syntax—rstartd
Directory: /usr/X11R6/bin/
Type: Script
rtquery
Function—Shows information about the routing tables of the daemons routed or gated.
Directory: /sbin/
Type: External
rwall
host Sends a message to the users logged into the specified host.
file Specifies the file to read from instead of STDIN.
Directory: /usr/bin/
Type: External
rwall 192.168.1.1 hello Sends the message “hello” to all users logged on to 192.168.1.1
rxtelnet
Type: Script
rxterm
Directory: /usr/X11R6/bin/
Type: Script
s2p
Function—Converts a sed script to a perl script. The converted script will be shown on STDOUT.
Directory: /usr/bin/
Type: Script
Tip One of the perl-to-other tools. See also a2p, which converts perl scripts from awk scripts, and perlcc, which
compiles C-binaries from perl source code.
s2p sedscript Converts sedscript to a perl script and shows result on STDOUT.
s2p sedscript > perlscript Writes the created perl script to file perlscript.
sa
Function—Administers accounting files. Cleans up and shows information in the /var/account/acct file.
File Name: sa
Directory: /usr/sbin/
Type: External
savecore
Function—Saves a crash dump of the operating system kernel (if one is created) after a system crash.
Directory: /sbin/
Type: External
scan_ffs
Directory: /sbin/
Type: External
scanpci
Syntax—scanpci [options...]
Directory: /usr/X11R6/bin/
Type: External
scon
Syntax—scon [options...]
Directory: /usr/sbin/
Type: External
scp
Function—Copies files in a secure way with all network traffic encrypted by SSH.
Directory: /usr/bin/
Type: External
scp /etc/passwd ucg@pluto:/tmp Copies the local file /etc/passwd to the host pluto as user ucg into /tmp.
scp /etc/passwd pluto: Copies the local file /etc/passwd as current user to the home directory on the host pluto.
scp ucg@pluto:/etc/passwd. Copies the remote file /etc/passwd from the host pluto as user ucg to current directory.
scsi
Syntax—scsi -f device [options...] [option], scsi -f device [-v] [-s seconds] -c format {arguments...} -o size format
{arguments...} -i size format
Directory: /sbin/
Type: External
sendbug
Function—A script that sends problem reports to a central support site, using the vi editor.
Syntax—sendbug [options...]
-P Shows the form specified by the PR_FORM environment variable. Sends no mail.
-L Shows a list of available categories. Sends no mail.
-V Shows version information. Sends no mail.
Directory: /usr/bin/
Type: Script
setxkbmap
Syntax—setxkbmap [options...]
Directory: /usr/X11R6/bin/
Type: External
sh
File Name: sh
Directory: /bin/
Type: External
shar
Syntax—shar files...
Directory: /usr/bin/
Type: External
showfont
Syntax—showfont [options...]
Directory: /usr/X11R6/bin/
Type: External
showrgb
Function—Converts a compiled RGB color name database back to the original form.
Syntax—showrgb {database}
Directory: /usr/X11R6/bin/
Type: External
skey
Directory: /usr/bin/
Type: External
skey -md4 -n 10 -p sitbobosit 44 Shows generated string sequences from 34-44 with the password sitbobosit and the key
gooddog gooddog.
skey 100 abcdef Asks for the password and uses abcdef as the key. Only shows the 100th generated word.
skey-x-p hello 10 abcdef Shows the generated string in hexadecimal format.
skeyaudit
Syntax—skeyaudit [options...]
Directory: /usr/bin/
Type: External
skeyinfo
Function—Shows the specified user’s next S/key challenge. Current user will be used if no user is specified.
Directory: /usr/bin/
Type: External
skeyinit
Directory: /usr/bin/
Type: External
skeyprune
Syntax—skeyprune {days}
Directory: /usr/bin/
Type: Script
slattach
Directory: /sbin/
Type: External
slipiogin
Function—Turns the terminal line on STDIN into a serial line IP (SLIP) link to a remote host.
Syntax—slipiogin {user}
Directory: /usr/sbin/
Type: External
slipiogin ucg Reads /etc/sliphome/slip.hosts for the user ucg and then connects to the remote host specified in the configuration file.
slstats
Syntax—slstats [options...] NR
Directory: /usr/sbin/
Type: External
smproxy
Syntax—smproxy [options...]
-clientId clientID Specifies the session ID that was used in the previous session.
-restore file Specifies the file that was used to save the state in from the previous session.
Directory: /usr/X11R6/bin/
Type: External
smrsh
Directory: /usr/sbin/
Type: External
smptd
Function—Is used to receive mails from other SMTP servers, will put messages in the spool directory.
Syntax—smtpd [options...]
Directory: /usr/libexec/
Type: External
smtpfwdd
Syntax—smtpfwdd [options...]
-d directory Specifies a spool directory and should be the same directory as for smtpd.
-g group Specifies a group that is run.
-M children Specifies the maximum number of children to create during delivery (default is 10).
-P time Specifies the polling interval for the spool directory, in seconds (default is 10 sec).
-q Starts quiet mode. Shows only one log message line per message exchange.
-s program Specifies the mail program to use instead of the default /usr/sbin/sendmail.
-u user Specifies which user to run smtpfwdd as. Does not have to be root.
Directory: /usr/libexec/
Type: External
spray
Function—Sends a stream of packets to a host. Reports how many were received and the transfer rate.
Directory: /usr/sbin/
Type: External
ssh, slogin
This is the same command as the one found in Linux. Please see ssh, slogin in the Linux chapter for all the
options.
Directory: /usr/bin/
Type: External
ssh-add
Directory: /usr/bin/
Type: External
ssh-agent
Syntax—ssh-agent command
Directory: /usr/bin/
Type: External
sshd
Syntax—sshd [options...]
Directory: /usr/sbin/
Type: External
ssh-keygen
Syntax—ssh-keygen [options...]
Directory: /usr/bin/
Type: External
Tip Tired of entering a password every time? Add an empty pass phrase. This is a security risk.
startkey
Directory: /sbin/
Type: External
startx
Function—Starts a session of the X-window system. A front end to xinit. Usually run without arguments.
-- Is used only when specifying color depth for a specified program server.
client Specifies the hostname or IP address of the client to use.
options... Specifies the options to use for the specified client.
server Specifies the hostname or IP address of the server to use.
options... Specifies the options to use for the specified server.
Directory: /usr/X11R6/bin/
Type: Script
stdethers
Syntax—stdethers {file}
Directory: /usr/sbin/
Type: External
stdhosts
Syntax—stdhosts {file}
Directory: /usr/sbin/
Type: External
stdhosts > ucghost Filters what you type into a clean host filenamed ucghost.
stdhosts ucghosts1 > ucghosts2 Filters ucghostsl and outputs the result to ucghosts2.
sudo
Directory: /usr/bin/
Type: External
suexec
Function—Switches user when executing an external application through programs that is used internally by Apache.
Syntax—suexec
Directory: /usr/sbin/
Type: External
sup
Function—Upgrades files or programs by acting like a client and then talks to a file server process.
These options affect all specified collections and may not be combined:
-t Shows the time that each collection was upgraded. Doesn’t start an upgrade.
-N Traces any network messages sent and received by the sup network protocol.
-P Uses nonprivileged network ports otherwise reserved for debugging.
These options affect all collections unless over-ridden by another option:
-a Copies all the files in the collection from the repository no matter what the status.
-b Saves the contents of the local files before overwriting them.
-B Overrides and disables the -b option.
-d Erases any files left in the collection that are left over from a previous sup.
-D Overrides and disables the -d option.
-e Starts commands that should be run when a file is being upgraded. (If no -e is given, sup specifies which command.)
-E Overrides and disables the -e option.
-f Upgrades only lists and shows what would happen if an upgrade was done.
-k Checks the local file modification times before updating. Newer local files are kept.
-K Overrides and disables the -k option.
-l Upgrades collections even if the repository is a local one.
-m Sends mail to the suo user or the user specified by the notify supfile option.
-o Checks all collection files for changes instead of just the new ones.
-O Overrides and disables the -o option.
-z Compresses, sends, and decompresses a file over the network and restores its attributes.
-Z Overrides and disables the -z option.
-v Shows messages while sup is running.
-s Uses the system sup file instead of a specified one.
ACTION The following actions may be used in the specified sup file:
release=release Specifies which particular release is needed for upgrading.
base=directory Specifies another base directory to use for a collection.
prefix=directory Specifies another base directory to use for a collection’s file content.
host=host Specifies a host containing private collections to be upgraded.
login=ID Specifies a different account ID for the file server.
password =password Specifies a different password for the file server.
crypt=key Specifies an encryption key to use for network transmission.
notify=address Sends the log messages by mail to another netmail address.
The same as the -b option.
backup
The same as the -d option.
delete
The same as the -e option.
execute
The same as the -k option.
keep
The same as the -o option.
old
Uses the release name as a suffix for the first and last files in the collection.
use-rel-suffix
You must select -s or specify the sup file for sup to work.
-s Uses the system sup file instead of the specified one.
Specifies the sup file that is used.
file
Directory: /usr/bin/
Type: External
SuperProbe
Function—Finds installed video hardware, used by some X11 configuration software to determine configurations.
Syntax—SuperProbe [options...]
-noprobe list Specifies the chipset names that will not be be tested.
-bios base Specifies the base address to the graphic-hardware BIOS.
-no_bios Specifies to not read from video BIOS and assumes it is an EGA, VGA, or SVGA.
-no_dac Stops inspecting of RAMDAC type if an (S)VGA is identified.
-no_mem Stops inspecting the installed video memory.
-info Shows a list of cards that can be identified.
Type: External
SuperProbe The most usual way of running SuperProbe, it will do much automatically.
SuperProbe -verbose -no_dac Enables verbose mode and doesn’t try to find any ramdac.
supfilesrv
Syntax—supfilesrv [options...]
Directory: /usr/sbin/
Type: External
supscan
Function—Creates a list of the files on the sup server. This speeds up the service if there is a large number of files.
Directory: /usr/sbin/
Type: External
swapctl
Function—Controls the swap devices and files. Adds, removes, or prioritizes the swap.
Directory: /sbin/
Type: External
swapon
Directory: /sbin/
Type: External
sysctl
Directory: /usr/sbin/
Type: External
systat
Function—A statistics showing program, showing the current load and the programs consuming much CPU.
Directory: /usr/bin/
Type: External
tcopy
Directory: /usr/bin/
Type: External
tcpd
Function—Controls and logs incoming requests for Internet services. Use from inetd-like programs.
Syntax—tcpd
Directory: /usr/libexec/
Type: External
tcpdchk
Function—Checks your TCP wrapper configuration and reports all potential problems it can find.
Syntax—tcpdchk [options...]
-a Shows access control rules that permit access without an explicit ALLOW keyword.
-d Checks current directory for hosts.allow/hosts.deny and examines them.
-i filename If inetd.conf or tlid.conf can’t be found, specify path here.
-v Shows content of each access control rule (verbose mode).
Directory: /usr/sbin/
Type: External
tcpdmatch
Function—Predicts how the tcpwrapper would handle a specific request for service.
Directory: /usr/sbin/
Type: External
tcpdump
Function—Shows the headers of packets matching the specified expression, on a network interface.
Direclory: /usr/sbin/
Type: External
tenletxr
Directory: /usr/X11R6/bin/
Type: Script
tenletxr pluto Logs in to the host pluto and shows the X-window on pluto.
texindex
Directory: /usr/bin/
Type: External
tfmtodit
Directory: /usr/bin/
Type: External
tftp
Function—Sends files to and from a remote host using the Trivial File Transfer Protocol (TFTP)
Syntax—tftp {host}
Directory: /usr/bin/
Type: External
timed
Syntax—timed [options...]
-M Host will become master server if no master already exists or if the master fails.
-t Traces the received messages in /var/log/timed, log.
-d Debug mode. Does not run the daemon in the background.
-i network Ignores the named network. All other networks are valid.
-n network The named network is valid. All other networks are ignored.
-F hosts... Specifies the trusted hosts.
-t Enables tracing of received messages and log to /var/log/timed.log.
Directory: /usr/sbin/
Type: External
timedc
Directory: /usr/sbin/
Type: External
tip
-v Shows the execution of the commands from the file . tiprc as they are done.
-n Disables the escape ~ character.
-speed Specifies a baud rate to use for the connection other than the default.
ACTION Select one of the following two actions:
hostname Specifies the hostname or IP address of the server to connect to.
phonenumber Connects to a remote host using a phone number.
The following are internal commands that are executed inside the program:
~. Drops the connection from the remote system and exits.
Directory: /usr/bin/
Type: External
tn3270
Function—Is used to remotely log in to IBM computers with full screen and full duplex. Emulates the IBM 3270 terminal.
Directory: /usr/bin/
Type: External
tn3270 Starts the command in interactive mode. Type ? for help information.
tn3270 biqcomputer Connects to the host biqcomputer.
top
-o field Shows the process area with the specified field as the primary key.
Supported fields are: cpu, size, res, time, and pri.
-U username Shows only the processes owned by the specified user.
The following commands are supported in interactive mode:
Ctrl+L Re-creates the screen.
h|? Shows help information.
q Quits the program.
d Changes the number of screen updates.
n|# Changes the number of processes to show.
s Changes the delay between screen updates.
k Sends a signal to processes (default is TERM).
r Changes the priority of processes.
u Shows only processes belonging to a specified user.
e Shows a list of any generated errors from the k or r action.
i|l Turns the display of idle processes on or off.
NR Shows information about the processes with the specified number.
Directory: /usr/bin/
Type: External
trpt
Function—Shows information about TCP trace records on a socket marked for debugging.
Syntax—trpt [options...]
-a Includes the source and destination addresses values for the recorded packages.
-f Shows the information of the trace as it occurs.
-i Shows only information about protocol control block addresses with trace records.
-p address Shows only information associated with the given hexadecimal address.
-s Includes a detailed description of the packet sequencing information.
-t Includes the time values for each point in the trace.
-M core Shows information associated with the name list in the specified core.
-N system Shows information associated with the name list in the specified system.
Directory: /usr/sbin/
Type: External
trsp
Function—Shows information about SPP trace records on a socket marked for debugging.
Syntax—trsp [options...]
-a Includes the source and destination addresses values for the recorded packages.
-i Shows only information about protocol control block addresses with trace records.
-p address Shows only information associated with the given hexadecimal address.
-s Includes a detailed description of the packet sequencing information.
-t Includes the time values for each point in the trace.
Directory: /usr/sbin/
Type: External
ttyflags
-a Uses the file /etc/ttys and sets the flags for all terminals found in the file.
-p Shows only information about the flags without changing anything.
-v Verbose mode. Shows more information.
ttys... Specifies terminal to act on.
Directory: /sbin/
Type: External
tunefs
Function—Changes the dynamic parameters of an unmounted file system that exists in /etc/vfstab.
-a maxcontig Sets the max number of contiguous blocks to write before forcing a rotational delay.
-A All backups will be modified as well as the primary superblock. Use with caution.
-d rotdelay Specifies time in milliseconds for a transfer completion/initiation on the same disk.
-e maxbpg Sets maximum number of blocks a file can use in a cylinder group before using other cylinders.
-m minfree Sets the percent of space that isn’t available for normal users.
-o Specifies the file system’s optimization strategy.
{space} Optimizes the file system to conserve space.
{time} Optimizes the file system to minimize access time.
-p Shows a summary of the current tunable settings on the selected file system.
-s enable | disable Enables or disables soft updates on the file system.
filesystem Specifies the unmounted file system to modify.
Directory: /sbin/
Type: External
unifdef
Function—Identifies and removes lines containing an ifdef mark from a C program source.
Directory: /usr/bin/
Type: External
units
Syntax—units {options...}
Directory: /usr/bin/
Type: External
units Interactively asks for units to convert between and displays factors to and from.
units -q Same as above, but no prompts.
units mm inch Returns "* 0.039,/25.4".
unvis
Syntax—unvis file
Directory: /usr/bin/
Type: External
uucico
Syntax—uucico [options...]
Directory: /usr/libexec/uucp/
Type: External
uuconv
Function—Is used to convert UUCP configuration files from one type to another.
Directory: /usr/libexec/uucp/
Type: External
uucp
Function—Copies files from one place to another inside UNIX (UNIX-to-UNIX copy).
-c Specifies not to make a copy to the spool directory before the transfer of a file.
-C Specifies to make a copy to the spool directory before the transfer of a file.
-d Creates all directories that the file copy needs.
-f Specifies not to create intermediate directories for the file copy.
-ggrade Defines a service grade, single letter, number, or a string of alphanumeric characters.
-j Shows the uucp job identification string on STDOUT.
-l file Specifies a configuration file to use.
-m Reports back to the user that sent the files by mail when the copy is complete.
-nuser Reports to the remote system user that a file was sent.
-r Puts the file in queue without doing the transfer.
-R Copies recursively to the destination directory.
-t Calls by the uuto shell script.
-v Shows version information.
-W Disables pretend remote relative path names with the current directory.
-xlevel Shows debug information with a level from 0 to 9 (higher level=more information).
--help Shows help information.
sourcefile Specifies the files that you want to copy, uses the format: system-name! pathname.
destinationfile Specifies the destination of the copy, uses the format: system-name! pathname.
Directory: /usr/bin/
Type: External
uucpd
Syntax—uucpd
Directory: /usr/libexec/
Type: External
uulog
Syntax—uulog [options...]
Directory: /usr/bin/
Type: External
uuname
Function—Shows a list of all the systems that are known to the uucp command.
Directory: /usr/bin/
Type: External
uupick
Function—Searches for files sent from other systems and prompts interactively for action.
Syntax—uupick [options...]
Directory: /usr/bin/
Type: External
uustat
Syntax—uustat [options...]
-u user Shows status information about the UUCP requests from the specified user.
-U user Shows status information about the UUCP requests not from the specified user.
-c command Shows all jobs requesting the execution of the specified command.
-C command Shows all jobs not requesting the execution of the specified command.
-o hours Shows all queued jobs older than the specified number of hours.
-y hours Shows all queued jobs younger than the specified number of hours.
Kills the specified job.
-k jobid
Resets the specified job’s queue time.
-r jobid
Shows command, execution, and conversation status for all remote systems.
-q
Shows conversation status for all remote systems.
-m
Shows status on all processes holding UUCP locks on systems or ports.
-p
Does a prompt on all jobs whether to kill it or not.
-i
Kills all jobs.
-K
Resets all job’s queue times.
-R
Sends a mail to the UUCP administrator for each job in the system.
-M
Sends a mail for each job in the system to the user who requested the specified job.
-N
Specifies a comment to send with the mail when using -M and -N options.
-W comment Specifies the number of lines in the mail to read from STDIN for each job.
-B lines Quiet mode. Doesn’t show anything on STDOUT.
-Q Shows debug information. (Type can be abnormal, config, spooldir, or execute.)
-x type Specifies the configuration file to use.
-l file Shows version information.
-v Shows help information.
--help
Directory: /usr/bin/
Type: External
uux
Function—Executes a command on a remote UNIX-based system and still enables the user to work locally.
Directory: /usr/bin/
Type: External
uuxqt
Function—Is used to execute remote requested jobs created with the uux command.
Syntax—uuxqt [options...]
Directory: /usr/libexec/uucp/
Type: External
vacation
Function—Replies to mail automatically. Useful when you are out of the office.
Directory: /usr/bin/
Type: External
vgrind
-llanguage Is used to specify the language to use. The following languages are valid:
-Ish Bourne shell
-Ic C
-Ic++ C++
-Icsh C-shell
-ImI Emacs MLisp
-If FORTRAN
-II Icon
-i ISP
-ILDL LDL
-Im Model
-Ip Pascal
-Ir RATFOR
-n Doesn’t make keywords boldface.
-sn Specifies the point size used on output.
-t Sends the formatted text to STDOUT.
-W Forces the output to wide printer instead of narrow.
-X Outputs the index file in a “pretty” format.
- Takes input from STDIN.
file Specifies the source file to be processed.
Directory: /usr/bin/
Type: Script
viewres
Function—Shows a tree structure of the widget class hierarchy of the Athena Widget Set.
Syntax—viewres [options...]
-top name Shows the name of the highest widget in the hierarchy.
-variable Shows the widget variable names in nodes instead of the class name.
-vertical Shows the widget tree top to bottom instead of left to right.
Directory: /usr/X11R6/bin/
Type: External
vipw
Syntax—vipw
Directory: /usr/bin/
Type: External
vis
-b Converts the file with a minimum of change to the original. Similar to cat -v.
-c Shows nonprintable characters with C-style backslash sequences.
-F foldwidth Folds the output in the specified width.
-f Same as -F.
-l Adds a \$ sign to all new lines.
-n Disables encoding.
-o Shows non-printable characters with octal numbers.
-s Converts only characters that are considered unsafe to send as they are to a terminal.
-t Converts tabs also.
-w Converts white spaces.
file Specifies a file containing non-printable characters.
Directory: /usr/bin/
Type: External
visudo
Function—Checks and edits the /etc/sudoers file and makes sure that it is correct, without any errors
Syntax—visudo [options...]
Directory: /usr/sbin/
Type: External
Note Opens the editor of your choice, if you have specified it in your EDITOR variable.
vnconfig
Function—Allows a regular file to be used as if it is a disk. Use it as a swap file or mount it with a file system.
Directory: /usr/sbin/
Type: External
vos
Directory: /usr/sbin/
Type: External
vt220keys
-c Clears all SHIFTED function keys before setting them to user-defined strings.
-i Reads the .vt220rc file in the user’s home directory for SHIFTED function keys.
-l Locks the function keys from further definition.
keyname Specifies the key to define.
keystring Specifies the function to bind to the specified key.
Directory: /usr/sbin/
Type: External
vttest
Fuction—Is used to test the functionality of VT100 -type terminals, and is menu driven.
Syntax—vttest
Directory: /usr/sbin/
Type: External
what
Syntax—what file
Directory: /usr/bin/
Type: External
whence
-p Searches the path even if the command is a function, a reserved word, or an alias.
-v Verbose mode. Shows more information.
names... Specifies the command name or names to interpret.
whence Is Searches the path even if the command is a function, a reserved word, or an alias.
whence -v ftp Shows where the FTP is.
wicontrol
Function—Configures and controls Wave LAN/IEEE wireless network devices using the wi driver.
-T value Specifies which key to use for packet transmission encryption, value can be 1 to 4.
-o Shows the statistic counters as opposed to the card settings.
-t rate Specifies the rate of transmission for the specified interface. Select one of these:
1 Sets fixed low rate (1 Mbps).
2 Sets fixed standard (2 Mbps).
3 Sets auto rate Selected (High) (is default).
4 Sets fixed medium rate (4 Mbps).
5 Sets fixed high rate (6 Mbps).
6 Sets auto rate Selected (Standard).
7 Sets auto rate Selected (Medium).
-n network Specifies the service set (IBSS) name that this station will join.
-s station Specifies the station name for the interface.
-c action Permits IBSS creation if a one (1) is used. Block creation with a zero (0).
-q SSID Sets the name for the IBSS or SSID that is created on the interface.
Specifies the port type for the specified interface.
-p port
Requires that a host relate with a IBSS that is controlled via an access point.
1
Communicates directly to any stations within direct radio range (is default).
3
Sets the access point density for the specified interface.
-a density
Sets low density.
1
Sets medium density.
2
Sets high density.
3
Specifies the MAC station address for the interface. Hexadecimal separated by colons.
-m MAC Sets the maximum transmit and receive frame size. Valid values are 350 to 2,304.
-d length Specifies the RTS/CTS threshold for the interface. Valid values are 0 to 2,047.
-r threshold Specifies the radio frequency of the specified interface in the form of a channel ID.
-f frequency Enables or disables interface power management — 0= off, 1=on (default is 0).
-P 0 or 1 Specifies the interface sleep interval in milliseconds (default is 100).
-S duration Specifies the WaveLAN/IEEE device that is used.
interface
Directory: /sbin/
Type: External
window
Syntax—window [options...]
Directory: /usr/bin/
Type: External
wm2
Syntax—wm2
Type: External
Note The X server must support the shape extension or else the command will not work.
x11perf
Syntax—x11perf [options...]
This is the same command as the one found in Linux. Please see x11perf in the Linux chapter for all the
options.
Directory: /usr/X11R6/bin/
Type: External
x11perfcomp
Directory: /usr/X11R6/bin/
Type: External
xautolock
Function—Is used to either lock the X Window or start a program when a specified amount of time has expired.
Syntax—xautolock [options...]
-killtime interval Specifies the secondary timeout after the locker starts (default is 20 minutes).
-killer killaction Specifies the type of killer to use (default is none).
-notify margin Warns the user before locking. Specify the notification margin in seconds.
-notifier notice Specifies the type of notice to use.
-bell level Sets the loudness level for the notification (default is 40%).
Sets any special actions to be taken when the mouse enters one of the window corners.
-corners action
Sets the delay before an action, when the mouse enters a + corner.
-cornerdelay delay
Sets the delay before an action, when a lock exits before the mouse leaves a corner.
-cornerredelay delay
Sets the corner area pixel size (default is 10).
-cornersize pixels
Resets the X screen saver once the locker has been started.
-resetsaver
Runs secure mode, which ignores -enable, -disable, -toggle, and -exit (default is false).
-secure true | false Does not allow STDERR to close.
-nocloseerr Does not allow STDERR and STDOUT to close.
-nodose Disables any process that is active.
-disable
Enables any process that is active.
-enable
Toggles a process that is active between enable and disable.
-toggle Forces an exit from any process that is active.
-exit Forces a window lock while a process is active.
-locknow Unlocks a window lock while a process is active.
-unlocknow
Specifies the type of lock to use if the -unlocknow option is used.
-nowlocker lock
Type: External
Tip When using locker, killer, and notifier, specify the PATH to use /bin/sh. This means that most ~ expansions won’t
work.
xautolock -killtime 30 Specifies the secondary timeout after the locker starts.
xautolock -cornerredelay 2 Sets the delay to 2 seconds before an action, when a lock exits before the mouse leaves a corner.
xautolock -exit Forces an exit from any process that is active.
xconsole
Syntax—xconsole [options...]
Directory: /usr/X11R6/bin/
Type: External
xf86config
Syntax—xf86config
Directory: /usr/X11R6/bin/
Type: External
XF86Setup
Directory: /usr/X11R6/bin/
Type: External
xfwp
Syntax—xfwp [options...]
-pdt time Sets closing time for inactive proxy manager connections in seconds (default is 3600).
-clt time Sets closing time for inactive xfwp client listen ports in seconds (default is 86400).
-cdt time Sets closing time for inactive xfwp client connections in seconds (default is 604800).
-pmport port Sets port address for proxy manager connections (default is 4444).
-config filename Specifies the filename for the configuration file.
-verify Displays the configuration file rule matched for each service request.
Directory: /usr/X11R6/bin/
Type: External
xkbevd
Function—Monitors for XKB events and runs the requested commands when they occur.
Syntax—xkbevd [options...]
-cfg file Reads the specified configuration file or ~/.xkb/xkbevd.cf or $(LIBDIR)/xkb/xkbevd.cf. (The configuration file is a list of events/action
-sc cmd Uses the specified command to play sounds.
-sd directory Gets the soundfiles from the specified directory.
-display screen Specifies another screen to use if not the one in $DISPLAY.
-bg Forks the command and runs it in the background.
-synch Synchronizes all X requests.
-v Verbose mode. Shows more information. More -v’s gives more information.
-help Shows help information.
Directory: /usr/X11R6/bin/
Type: External
Note This is only a prototype program for developers—not intended for end users.
xkill
Syntax—xkill [options...]
Directory: /usr/X11R6/bin
Type: External
xload
Syntax—xload [options...]
-scale integer Specifies the minimum tick marks to use in the histogram.
-update seconds Sets the interval to update the histogram.
-hl color Sets the color of the scale lines.
-highlight color Same as -hl.
-jumpscroll pixels Sets the number of pixels to move the scale line to the left when it reaches the end.
-label string Sets a label over the scale.
-nolabel Shows no labels.
-lights Use keyboard LEDs to show the current load average.
Directory: /usr/X11R6/bin
Type: External
xload -label myaverage Start xload using myaverage as the label above the load average.
xlock
Syntax—xlock [options...]
Directory: /usr/X11R6/bin/
Type: External
xlsatoms
Syntax—xlsatoms [options...]
Directory: /usr/X11R6/bin/
Type: External
xlsclients
Syntax—xlsclients [options...]
Directory: /usr/X11R6/bin/
Type: External
xlsclients -display monza Shows the applications running on the screen monza.
xmag
Syntax—xmag [options...]
Page 186 / 195
Reprinted for CTS/241725, Cognizant Technology Solutions John Wiley & Sons (US), Hungry Minds, Inc. (c) 2002, Copying Prohibited
Universal Command Guide for Operating Systems
Syntax—xmag [options...]
Directory: /usr/X11R6/bin/
Type: External
xman
Syntax—xman [options...]
Directory: /usr/X11R6/bin/
Type: External
xman xman Shows the man page for the command xman.
Xnest
Function—Opens a new window X server that will nest inside of the real X server.
Syntax—Xnest [options...]
-display display Specifies the display address to the real X server to connect to.
-sync Synchronizes the window and graphics operation with the real X server.
-full Generates the real X server objects and opens a new connection to the X server.
-class class Sets the visual class on the nested server.
-depth depth Sets the visual depth of the nested server.
-sss Activates the screen saver.
-geometry geometry Specifies where to place the top-level windows on the real X server. (Geometry is specified like width+height+x+y. Each value
-bw pixels Specifies the Xnest window border width in pixels.
-name name Specifies the Xnest window name.
-scrns number Creates the specified number of screens in the nested server.
-install Skips the real X server’s color map installation and uses its own.
-parent windowID Specifies the root window to use instead of creating a new window.
Directory: /usr/X11R6/bin/
Type: External
Note One cool way of running two or more window managers at the same time.
xon
-access Adds the remote host to the access list in the local X server.
-debug Shows debug information.
-name name Sets a different window title and application name than the default xterm.
-nols Disables the use of the -ls option to the remote xterm.
-screen screen Specifies the screen number to the DISPLAY variable on remote command.
-user user Specifies alternate username or IP address.
host Specifies the remote server to start process on.
commands... Specifies command to run on remote computer.
Directory: /usr/X11R6/bin/
Type: Script
xrefresh
Syntax—xrefresh [options...]
Directory: /usr/X11R6/bin
Type: External
xsetmode
Function—Is used to set the mode for an input device under X-window.
Directory: /usr/X11R6/bin
Type: External
xsetpointer
Type: External
xsm
Function—Manages X sessions. Runs applications and lets them become part of the session.
Syntax—xsm [options...]
Directory: /usr/X11R6/bin/
Type: External
xstr
Function—Keeps a library of string from component parts in large programs that can be used as shared constant strings.
Directory: /usr/bin/
Type: External
Xvfb
Function—A virtual X server that uses virtual memory to emulate a frame buffer for X-window version 11.
Syntax—Xvfb [options...]
Supports all of the X server options along with the following ones:
-screen number WxHxD Creates a screen with the specified number and sets it to the given size.
-pixdepths list Specifies the pixel map depth list that is supported (valid values in the list 1-32).
-shmem Places the frame buffer into shared memory. Works only with System V shared memory.
-linebias value Adjusts the way thin lines are pixelized. The specified value is the bitmask size.
-blackpixel value Specifies the black pixel value that the server will use.
-whitepixel value Specifies the white pixel value that the server will use.
Directory: /usr/X11R6/bin/
Type: External
xwininfo
Syntax—xwininfo [options...]
-display display Specifies the X server that you want to connect to.
Directory: /usr/X11R6/bin
Type: External
yes
Syntax—yes {string}
Directory: /usr/bin/
Type: External
yptest
Syntax—yptest
Directory: /usr/sbin/
Type: External
NIS: The following tests are run: YP match, YP first, YP next, YP master, YP order, YP maplist, and YP all.
yyfix
Function—This script will extract tables from the yacc generated file y.tab.c.
file Specifies the file that is used to save the extracted tables into.
tables... Specifies the list of tables to be extracted from y.tab.c.
Directory: /usr/bin
Type: Script
zcmp
Function—Compares two compressed files. Return status is 0 = identical, 1 = different, 1 < error.
-l Shows the byte number (dec) and the byte value (oct) for each difference.
-s Shows nothing for differing files.
file1 Specifies the first file.
file2 Specifies the second file. If not given, use the uncompressed file with same name.
Directory: /usr/bin
Type: Script
zcmp a.Z b.Z Compares a.Z and b.z; reports where b.Z differs from a.Z.
zcmp a.Z a.gz Compares compressed file a.Z with gzipped file a.gz.
zcmp-l a.Z a.gz Shows number and the differing byte values.
zdiff
Function—Compares compressed files. It uses the command diff to run the comparison.
Directory: /usr/bin/
Type: External
zdiff -y myzip2.Z myzip2.1.Z Compares the file myzip2.Z with myzip.gz and shows the differences side by side.
zdump
Function—Shows the current date and time for the time zones that you specify on the command line.
Directory: /usr/sbin/
Type: External
zforce
Syntax—zforce {files...}
Directory: /usr/bin/
Type: External
Directory: /usr/bin/
Type: Script
zgrep ISDN rfc44444.gz Searches for string ISDN in the gzipped file rfc44444.gz.
zgrep -v ISDN rfc4444.Z Searches for lines not containing string ISDN in compressed file RFC4444.Z.
zic
-p timerules Uses the rules from the specified time zone to manage posix time zone variables.
-L file Reads leap second information from the specified file.
-v Prompts if the year in the input file is out of range.
-s Limits time values stored in output files to values that are same.
-y yeartype Checks how years are to be written.
Reads time conversion information from STDIN.
files... Specifies a file with time conversion information.
Directory: /usr/sbin/
Type: External
zmore
Syntax—zmore {files...}
Directory: /usr/bin/
Type: Script
zmore RFC1001.gz Shows the compressed file one page at the time.
znew
Directory: /usr/bin/
Type: External
zzz
Function—Places the system into one of two modes of advanced power management (ARM) suspension.
Syntax—zzz [options...]
Directory: /usr/sbin/
Type: External