command
stringlengths
1
42
description
stringlengths
29
182k
name
stringlengths
7
64.9k
synopsis
stringlengths
4
85.3k
options
stringclasses
593 values
examples
stringclasses
455 values
piconv5.34
piconv is perl version of iconv, a character encoding converter widely available for various Unixen today. This script was primarily a technology demonstrator for Perl 5.8.0, but you can use piconv in the place of iconv for virtually any case. piconv converts the character encoding of either STDIN or files specified i...
piconv -- iconv(1), reinvented in perl
piconv [-f from_encoding] [-t to_encoding] [-p|--perlqq|--htmlcref|--xmlcref] [-C N|-c] [-D] [-S scheme] [-s string|file...] piconv -l piconv -r encoding_alias piconv -h
null
null
basename
The basename utility deletes any prefix ending with the last slash ‘/’ character present in string (after first stripping trailing slashes), and a suffix, if given. The suffix is not stripped if it is identical to the remaining characters in string. The resulting filename is written to the standard output. A non-exi...
basename, dirname – return filename or directory portion of pathname
basename string [suffix] basename [-a] [-s suffix] string [...] dirname string [...]
null
The following line sets the shell variable FOO to /usr/bin. FOO=`dirname /usr/bin/trail` SEE ALSO csh(1), sh(1), basename(3), dirname(3) STANDARDS The basename and dirname utilities are expected to be IEEE Std 1003.2 (“POSIX.2”) compatible. HISTORY The basename and dirname utilities first appeared in 4.4BSD. macOS 14.5...
nclist
ncctl controls the caller's kernel Kerberos credentials for any of the specified path's associated NFS mounts. If no paths are specified then all the caller's associated credentials for all NFS file systems are acted upon by the command given. When an NFS file system is mounted using Kerberos through the “sec=” option...
ncctl – Control NFS kernel credentials
ncctl [-Pvh] {{init | set} [-F] -p principal | {destroy | unset} | {list | get}} [path ...] ncinit [-PvhF] -p principal [path ...] ncdestroy [-Pvh] [path ...] nclist [-Pvh] [path ...]
null
If leaving for the day: $ kdestroy -A $ ncdestroy Lets say a user does $ kinit user@FOO.COM And through the automounter access a path /Network/Serves/someserver/Sources/foo/bar where the mount of /Network/Servers/someserver/Sources/foo was done with user@FOO.COM. $ cat /Network/Servers/someserver/Sources/foo/bar cat: /...
objdump
The llvm-objdump utility prints the contents of object files and final linked images named on the command line. If no file name is specified, llvm-objdump will attempt to read from a.out. If - is used as a file name, llvm-objdump will process a file on its standard input stream. COMMANDS At least one of the following c...
llvm-objdump - LLVM's object file dumper
llvm-objdump [commands] [options] [filenames...]
llvm-objdump supports the following options: --adjust-vma=<offset> Increase the displayed address in disassembly or section header printing by the specified offset. --arch-name=<string> Specify the target architecture when disassembling. Use --version for a list of available targets. --build-id=<string> Look up the obj...
null
install
The file(s) are copied to the target file or directory. If the destination is a directory, then the file is copied into directory with its original filename. If the target file already exists, it is either renamed to file.old if the -b option is given or overwritten if permissions allow. An alternate backup suffix m...
install – install binaries
install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ...
null
null
native2ascii
null
null
null
null
null
c99
This is the name of the C language compiler as required by the IEEE Std 1003.1-2001 (“POSIX.1”) standard. The c99 compiler accepts the following options: -c Suppress the link-edit phase of the compilation, and do not remove any object files that are produced. -D name[=value] Define name as if by a C-language #defi...
c99 – standard C language compiler
c99 [-cEgs] [-D name[=value]] ... [-I directory ...] [-L directory ...] [-o outfile] [-O optlevel] [-U name ...] [-W 32|64] operand ...
null
null
desdp
desdp generates a scripting definition (“sdef”) from the specified scriptable application and writes it to standard output. The original dictionary may be either an aete resource or a set of Cocoa suite definition files (scriptSuite/scriptTerminology pairs). desdp is primarily useful for developers with an existing sc...
desdp – scripting definition generator
desdp application
null
null
binhex
applesingle, binhex, macbinary are implemented as a single tool with multiple names. All invocations support the three verbs encode, decode, and probe. If multiple files are passed to probe, the exit status will be non-zero only if all files contain data in the specified encoding.
applesingle, binhex, macbinary – encode and decode files
<tool> probe file ... <tool> [decode] [-c] [-fv] [-C dir] [-o outfile] [file ...] <tool> -h | -V applesingle encode [-cfv] [-s suf] [-C dir] [-o outfile] file ... binhex encode [-R] [-cfv] [-s suf] [-C dir] [-o outfile] file ... macbinary encode [-t 1-3] [-cfv] [-s suf] [-C dir] [-o outfile] file ...
-f, --force perform the operation even if the output file already exists -h, --help display version and usage, then quit -v, --verbose be verbose -V, --version display version, then quit -c, --pipe, --from-stdin, --to-stdout For decode, read encoded data from the standand input. For encode, write encoded data to the s...
null
perlbug5.34
This program is designed to help you generate bug reports (and thank- you notes) about perl5 and the modules which ship with it. In most cases, you can just run it interactively from a command line without any special arguments and follow the prompts. If you have found a bug with a non-standard port (one that was not p...
perlbug - how to submit bug reports on Perl
perlbug perlbug [ -v ] [ -a address ] [ -s subject ] [ -b body | -f inputfile ] [ -F outputfile ] [ -r returnaddress ] [ -e editor ] [ -c adminaddress | -C ] [ -S ] [ -t ] [ -d ] [ -h ] [ -T ] perlbug [ -v ] [ -r returnaddress ] [ -ok | -okay | -nok | -nokay ] perlthanks
-a Address to send the report to instead of saving to a file. -b Body of the report. If not included on the command line, or in a file with -f, you will get a chance to edit the report. -C Don't send copy to administrator when sending report by mail. -c Address to send copy of report to when sendin...
null
lsmp
The lsmp command prints information about every active right in a task's port space, giving a view into the inter-process communication behavior of that task. Following is an explanation of each symbol and values from the output. name : Task unique name for a port. A "-" signifies that this is a member of a port-set i...
lsmp – Display mach port information for processes on the system
lsmp -h lsmp -p <pid> Show mach port usage for <pid>. Run with root privileges to see detailed info about port destinations etc. lsmp -v Show information in detail for Kernel object based ports. Including thread ports and special ports attached to it. lsmp -a Show mach port usage for all tasks in the system lsmp -j <pa...
null
null
xmllint
The xmllint program parses one or more XML files, specified on the command line as XML-FILE (or the standard input if the filename provided is - ). It prints various types of output, depending upon the options selected. It is useful for detecting errors both in XML code and in the XML parser itself. xmllint is included...
xmllint - command line XML tool
xmllint [--version | --debug | --shell | --xpath "XPath_expression" | --debugent | --copy | --recover | --noent | --noout | --nonet | --path "PATH(S)" | --load-trace | --htmlout | --nowrap | --valid | --postvalid | --dtdvalid URL | --dtdvalidfpi FPI | --timing | --output FILE | --repeat | --insert | --compress | --html...
xmllint accepts the following options (in alphabetical order): --auto Generate a small document for testing purposes. --catalogs Use the SGML catalog(s) from SGML_CATALOG_FILES. Otherwise XML catalogs starting from /etc/xml/catalog are used by default. --chkregister Turn on node registration. Useful for developers test...
null
yamlpp-highlight
null
null
null
null
null
ipcount5.34
null
null
null
null
null
last
The last utility will either list the sessions of specified users, ttys, and hosts, in reverse time order, or list the users logged in at a specified date and time. Each line of output contains the user name, the tty from which the session was conducted, any hostname, the start and stop times for the session, and the ...
last – indicate last logins of users and ttys
last [--libxo] [-swy] [-d [[CC]YY][MMDD]hhmm[.SS]] [-f file] [-h host] [-n maxrec] [-t tty] [user ...]
null
Show logins in pts/14 with the duration in seconds and limit the report to two lines: $ last -n2 -s -t pts/14 bob pts/1 Wed Dec 9 11:08 still logged in bob pts/2 Mon Dec 7 20:10 - 20:23 ( 776) Show active logins at ‘December 7th 20:23’ of the current year: $ last -d 12072023 bob pts/1 Mon Dec 7 20:...
vm_stat
vm_stat displays Mach virtual memory statistics. If the optional interval is specified, then vm_stat will display the statistics every interval seconds. In this case, each line of output displays the change in each statistic (an interval count of 1 displays the values per second). However, the first line of output fo...
vm_stat – show Mach virtual memory statistics
vm_stat [[-c count] interval]
null
null
syslog
syslog is a command-line utility for a variety of tasks relating to the Apple System Log (ASL) facility. It provides mechanisms for sending and viewing log messages, copying log messages to ASL format data store files, and for controlling the flow of log messages from client processes. When invoked with the -help opti...
syslog – Apple System Log utility
syslog -help syslog -s [-r host] [-l level] message... syslog -s [-r host] -k key val [key val] ... syslog -C syslog [-f file ...] [-d dir ...] [-B] [-w [n]] [-F format] [-T format] [-E format] expression syslog [-f file ...] [-d dir ...] -x file expression syslog -c process [mask] syslog -config [options] syslog -modu...
null
null
net-snmp-cert
null
null
null
null
null
treereg5.30
"Treereg" translates a tree grammar specification file (default extension ".trg" describing a set of tree patterns and the actions to modify them using tree-terms like: TIMES(NUM, $x) and { $NUM->{VAL} == 0) => { $NUM } which says that wherever an abstract syntax tree representing the product of a numeric expression wi...
treereg - Compiler for Tree Regular Expressions
treereg [-m packagename] [[no]syntax] [[no]numbers] [-severity 0|1|2|3] \ [-p treeprefix] [-o outputfile] [-lib /path/to/library/] -i filename[.trg] treereg [-m packagename] [[no]syntax] [[no]numbers] [-severity 0|1|2|3] \ [-p treeprefix] [-lib /path/to/library/] [-o outputfile] filename[.trg] treereg -v treereg -h
Options can be used both with one dash and double dash. It is not necessary to write the full name of the option. A disambiguation prefix suffices. • "-i[n] filename" Input file. Extension ".trg" is assumed if no extension is provided. • "-o[ut] filename" Output file. By default is the name of the input file (conca...
null
nslookup
Nslookup is a program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and r...
nslookup - query Internet name servers interactively
nslookup [-option] [name | -] [server]
null
null
vimdiff
Vimdiff starts Vim on two up to eight files. Each file gets its own window. The differences between the files are highlighted. This is a nice way to inspect changes and to move changes from one version to another version of the same file. See vim(1) for details about Vim itself. When started as gvimdiff the GUI will ...
vimdiff - edit between two and eight versions of a file with Vim and show differences
vimdiff [options] file1 file2 [file3 [file4 [file5 [file6 [file7 [file8]]]]]] gvimdiff
Vertical splits are used to align the lines, as if the "-O" argument was used. To use horizontal splits instead, use the "-o" argument. For all other arguments see vim(1). SEE ALSO vim(1) AUTHOR Most of Vim was made by Bram Moolenaar, with a lot of help from others. See ":help credits" in Vim. 2001 March 30 VIMD...
null
topsyscall
This program continually prints a report of the top system calls, and refreshes the display every 1 second or as specified at the command line. Since this uses DTrace, only users with root privileges can run this command.
topsyscall - top syscalls by syscall name. Uses DTrace.
topsyscall [-Cs] [interval [count]]
-C don't clear the screen -s print per second values
Default output, 1 second updates, # topsyscall Print every 5 seconds, # topsyscall 5 Print a scrolling output, # topsyscall -C FIELDS load avg load averages, see uptime(1) syscalls total syscalls in this interval syscalls/s syscalls per second SYSCALL system call name COUNT total syscalls in this interval COUNT/s sysc...
libnetcfg
The libnetcfg utility can be used to configure the libnet. Starting from perl 5.8 libnet is part of the standard Perl distribution, but the libnetcfg can be used for any libnet installation. USAGE Without arguments libnetcfg displays the current configuration. $ libnetcfg # old config ./libnet.cfg daytime_hosts ntp1.n...
libnetcfg - configure libnet
null
null
null
cpan5.30
This script provides a command interface (not a shell) to CPAN. At the moment it uses CPAN.pm to do the work, but it is not a one-shot command runner for CPAN.pm.
cpan - easily interact with CPAN from the command line
# with arguments and no switches, installs specified modules cpan module_name [ module_name ... ] # with switches, installs modules with extra behavior cpan [-cfFimtTw] module_name [ module_name ... ] # use local::lib cpan -I module_name [ module_name ... ] # one time mirror override for faster mirrors cpan -p ... # wi...
-a Creates a CPAN.pm autobundle with CPAN::Shell->autobundle. -A module [ module ... ] Shows the primary maintainers for the specified modules. -c module Runs a `make clean` in the specified module's directories. -C module [ module ... ] Show the Changes files for the specified modules -D module [ module ... ] Show th...
# print a help message cpan -h # print the version numbers cpan -v # create an autobundle cpan -a # recompile modules cpan -r # upgrade all installed modules cpan -u # install modules ( sole -i is optional ) cpan -i Netscape::Booksmarks Business::ISBN # force install modules ( must use -i ) cpan -fi CGI::Minimal URI # ...
c++filt
llvm-cxxfilt is a symbol demangler that can be used as a replacement for the GNU c++filt tool. It takes a series of symbol names and prints their demangled form on the standard output stream. If a name cannot be demangled, it is simply printed as is. If no names are specified on the command-line, names are read interac...
llvm-cxxfilt - LLVM symbol name demangler
llvm-cxxfilt [options] [mangled names...]
--format=<value>, -s Mangling scheme to assume. Valid values are auto (default, auto-detect the style) and gnu (assume GNU/Itanium style). --help, -h Print a summary of command line options. --no-strip-underscore, -n Do not strip a leading underscore. This is the default for all platforms except Mach-O based hosts. --s...
null
avbdiagnose
The avbdiagnose tool is used to capture a snapshot of the current AVB system state and help diagnose common issues with AVB. avbdiagnose looks for the system to determine that it actually has AVB capable interfaces and that at least one of these has been enabled. avbdiagnose will produce a number of warnings which may ...
avbdiagnose – diagnostic tool for AVB.
avbdiagnose
null
null
nice
The nice utility runs utility at an altered scheduling priority, by incrementing its “nice” value by the specified increment, or a default value of 10. The lower the nice value of a process, the higher its scheduling priority. The superuser may specify a negative increment in order to run a utility with a higher sched...
nice – execute a utility at an altered scheduling priority
nice [-n increment] utility [argument ...]
null
Execute utility ‘date’ at priority 5 assuming the priority of the shell is 0: nice -n 5 date Execute utility ‘date’ at priority -19 assuming the priority of the shell is 0 and you are the super-user: nice -n 16 nice -n -35 date COMPATIBILITY The traditional -increment option has been deprecated but is still supported. ...
xcscontrol
null
null
null
null
null
truncate
The truncate utility adjusts the length of each regular file given on the command-line, or performs space management with the given offset and the length over a regular file given on the command-line. The following options are available: -c Do not create files if they do not exist. The truncate utility does not tr...
truncate – truncate, extend the length of files, or perform space management in files
truncate [-c] -s [+|-|%|/]size[SUFFIX] file ... truncate [-c] -r rfile file ...
null
Adjust the size of the file test_file to 10 Megabytes but do not create it if it does not exist: truncate -c -s +10M test_file Same as above but create the file if it does not exist: truncate -s +10M test_file ls -l test_file -rw-r--r-- 1 root wheel 10485760 Jul 22 18:48 test_file Adjust the size of test_file to the...
calendar
The calendar utility checks the current directory for a file named calendar and displays lines that fall into the specified date range. On the day before a weekend (normally Friday), events for the next three days are displayed. The following options are available: -A num Print lines from today and the next num days ...
calendar – reminder service
calendar [-A num] [-a] [-B num] [-D moon|sun] [-d] [-F friday] [-f calendarfile] [-l longitude] [-t dd[.mm[.year]]] [-U UTC-offset] [-W num]
null
null
locale
locale displays information about the current locale, or a list of all available locales. When locale is run with no arguments, it will display the current source of each locale category. When locale is given the name of a category, it acts as if it had been given each keyword in that category. For each keyword it is ...
locale – display locale settings
locale [-a|m] locale [-ck] name [...]
-a Lists all public locales. -c name ... Lists the category name before each keyword, unless it is the same category as the previously displayed keyword. -k name ... Displays the name of each keyword prior to its value. -m Lists all available public charmaps. Darwin locales do not support charmaps, so list...
null
strip
strip removes or modifies the symbol table attached to the output of the assembler and link editor. This is useful to save space after a program has been debugged and to limit dynamically bound symbols. strip no longer removes relocation entries under any condition. Instead, it updates the external relocation entries ...
strip - remove symbols
strip [ option ] name ...
The first set of options indicate symbols that are to be saved in the resulting output file. -u Save all undefined symbols. This is intended for use with relocatable objects to save symbols referred to by external relocation entries. Note that common symbols are also referred to by external relocation entries and...
When creating a stub library the -c and -x are typically used: strip -x -c libfoo -o libfoo.stripped LIMITATIONS Not every layout of a Mach-O file can be stripped by this program. But all layouts produced by the Apple compiler system can be stripped. Apple Inc. June 23, 2023 STRIP(1)
symbolscache
The symbolscache command may be used to list, add, and delete entries from the global symbolscache. Darwin 9/20/10 Darwin
symbolscache – display and modify symbolcache information
null
null
null
trace
trace records and modifies files of software events used for performance analysis. A trace file captures what the system was doing over a period of time, like which threads are scheduled, what memory is used for the first time, and thousands of other kinds of events from software running in the kernel, user space, or o...
trace – record and modify trace files
trace record file-name [options] trace amend file-path --add provider [options] trace trim file-name [options] trace plans [options] trace providers [options]
null
null
tops
tops is a tool that performs in-place substitutions on source files according to a set of rules. Each tops rule describes a particular translation. For example, one tops rule might specify that occurrences of the token 'Application' should be converted to 'NSApplication'. In tops syntax, this rule will appear as: repla...
tops - perform in-place substitutions on code.
tops [-help] [-verbose] [-nocontext] [-nofileinfo] [-semiverbose)] [-dont] (-scriptfile script_name) | (find "search_pattern" [where ("symbol"...) isOneOf {("match"...)...}] ...) | (replace "search_pattern" with "replacement_pattern" | same [where ("symbol"...) isOneOf {("match"...)...}]... [within ("symbol") {...}]......
-help Displays the tops syntax line. -verbose Prints out the source code lines that are being changed by the command. -nocontext Instead of printing the whole source code line that is being changed or searched for, shows only the portion of the line that has the change. -nofileinfo Does not print the file name and lin...
The following is a typical tops command invocation. The script file MyRules.tops contains the find, replace, and replacemethod rules that are performed on the files in MyProjectDir. The -semiverbose option means that name of the file being processed and the progress of the command will be printed to standard output. to...
lprm
lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default destination is canceled. You can specify one or more job ID numbers to cancel those jobs or use the - option to cancel all jobs.
lprm - cancel print jobs
lprm [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] [ - ] [ job-id(s) ]
The lprm command supports the following options: -E Forces encryption when connecting to the server. -P destination[/instance] Specifies the destination printer or class. -U username Specifies an alternate username. -h server[:port] Specifies an alternate server. CONFORMING TO The CUPS version of lprm is compatible w...
Cancel the current job on the default printer: lprm Cancel job 1234: lprm 1234 Cancel all jobs: lprm - SEE ALSO cancel(1), lp(1), lpq(1), lpr(1), lpstat(1), CUPS Online Help (http://localhost:631/help) COPYRIGHT Copyright © 2007-2019 by Apple Inc. 26 April 2019 CUPS lprm(1)
tiffutil
tiffutil lets you manipulate TIFF files. The list of options (also available by running the program without any options) follows: tiffutil -none infile [-out outfile] -lzw infile [-out outfile] -packbits infile [-out outfile] -cat infile1 [infile2 ...] [-out outfile] -catnosizecheck infile1 [infile2 ...] [-ou...
tiffutil - manipulates tiff files
tiffutil <option> [<arguments>] [-out <outfile>]
null
null
du
The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed. The options are as follows: -A Display the apparent siz...
du – display disk usage statistics
du [-Aclnx] [-H | -L | -P] [-g | -h | -k | -m] [-a | -s | -d depth] [-B blocksize] [-I mask] [-t threshold] [file ...]
null
Show disk usage for all files in the current directory. Output is in human-readable form: # du -ah Summarize disk usage in the current directory: # du -hs Summarize disk usage for a specific directory: # du -hs /home Show name and size of all C files in a specific directory. Also display a grand total at the end: # d...
debinhex5.34.pl
null
null
null
null
null
diff3
The diff3 utility compares the contents of three different versions of a file, file1, file2 and file3, writing the result to the standard output. The options describe different methods of merging and purging the separate versions into a new file. diff3 is used by rcs(1) to merge specific versions or create new version...
diff3 – 3-way differential file comparison
diff3 [-3AaEeimTXx] [--diff-program program] [--strip-trailing-cr] [-L | --label label1] [-L | --label label2] [-L | --label label3] file1 file2 file3 diff3 [--help] [--version]
null
null
cupstestppd
cupstestppd tests the conformance of PPD files to the Adobe PostScript Printer Description file format specification version 4.3. It can also be used to list the supported options and available fonts in a PPD file. The results of testing and any other output are sent to the standard output. The first form of cupstest...
cupstestppd - test conformance of ppd files
cupstestppd [ -I category ] [ -R rootdir ] [ -W category ] [ -q ] [ -r ] [ -v[v] ] filename.ppd[.gz] [ ... filename.ppd[.gz] ] cupstestppd [ -R rootdir ] [ -W category ] [ -q ] [ -r ] [ -v[v] ] -
cupstestppd supports the following options: -I filename Ignores all PCFileName warnings. -I filters Ignores all filter errors. -I profiles Ignores all profile errors. -R rootdir Specifies an alternate root directory for the filter, pre-filter, and other support file checks. -W constraints Report all UIConstraint errors...
The following command will test all PPD files under the current directory and print the names of each file that does not conform: find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print The next command tests all PPD files under the current directory and print detailed conformance testing results for the files that ...
json_pp5.30
json_pp converts between some input and output formats (one of them is JSON). This program was copied from json_xs and modified. The default input format is json and the default output format is json with pretty option.
json_pp - JSON::PP command utility
json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]]
-f -f from_format Reads a data in the given format from STDIN. Format types: json as JSON eval as Perl code -t Writes a data in the given format to STDOUT. null no action. json as JSON dumper as Data::Dumper -json_opt options to JSON::PP Acceptable options are: ascii latin1 utf8 pretty indent space_before space_after r...
$ perl -e'print q|{"foo":"XX","bar":1234567890000000000000000}|' |\ json_pp -f json -t dumper -json_opt pretty,utf8,allow_bignum $VAR1 = { 'bar' => bless( { 'value' => [ '0000000', '0000000', '5678900', '1234' ], 'sign' => '+' }, 'Math::BigInt' ), 'foo' => "\x{3042}\x{3044}" }; $ perl -e'print q|{"foo":"XX","bar":12345...
sw_vers
sw_vers prints macOS version information for the currently running operating system on the local machine. When executed with no options sw_vers prints a short list of version properties: % sw_vers ProductName: macOS ProductVersion: 13.0 ProductVersionExtra: (a) BuildVersion: 22A100 The ProductName ...
sw_vers – print macOS system version information
sw_vers sw_vers --productName sw_vers --productVersion sw_vers --productVersionExtra sw_vers --buildVersion
The output of sw_vers can be refined by the following options. These long-form options can also be passed in lowercase for convenience. --productName Print only the value of the ProductName property. --productVersion Print only the value of the ProductVersion property. --productVersionExtra Print only the valu...
% sw_vers --productName macOS % sw_vers --productVersion 13.0 % sw_vers --productVersionExtra (a) % sw_vers --buildVersion 22A100 COMPATIBILITY Previous versions of sw_vers respected the SYSTEM_VERSION_COMPAT environment variable to provide compatibility fallback versions for scripts which did not support the macOS 11....
fs_usage
The fs_usage utility presents an ongoing display of system call usage information pertaining to filesystem activity. It requires root privileges due to the kernel tracing facility it uses to operate. By default, the activity monitored includes all system processes except the running fs_usage process, Terminal, telnetd...
fs_usage – report system calls and page faults related to filesystem activity in real-time
fs_usage [-e] [-w] [-f mode] [-b] [-t seconds] [-R rawfile [-S start_time -E end_time]] [pid | cmd [pid | cmd [...]]]
null
null
host
host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa. When no arguments or options are given, host prints a short summary of its command line arguments and options. name is the domain name that is to be looked up. It can also be a dotted-decimal IPv4 a...
host - DNS lookup utility
host [-aCdlnrsTwv] [-c class] [-N ndots] [-R number] [-t type] [-W wait] [-m flag] [-4] [-6] [-v] [-V] {name} [server]
-4 Use IPv4 only for query transport. See also the -6 option. -6 Use IPv6 only for query transport. See also the -4 option. -a "All". The -a option is normally equivalent to -v -t ANY. It also affects the behaviour of the -l list zone option. -c class Query class: This can be used to lookup HS (Hesiod) or CH (Chaosnet)...
null
jarsigner
The jarsigner tool has two purposes: • To sign Java Archive (JAR) files. • To verify the signatures and integrity of signed JAR files. The JAR feature enables the packaging of class files, images, sounds, and other digital data in a single file for faster and easier distribution. A tool named jar enables developers to...
jarsigner - sign and verify Java Archive (JAR) files
jarsigner [options] jar-file alias jarsigner -verify [options] jar-file [alias ...] jarsigner -version
The command-line options. See Options for jarsigner. -verify The -verify option can take zero or more keystore alias names after the JAR file name. When the -verify option is specified, the jarsigner command checks that the certificate used to verify each signed entry in the JAR file matches one of the keystore aliase...
null
app-sso
app-sso is used to control and get information about the Kerberos Single Sign-on (SSO) extension via the command line. The Kerberos SSO extension simplifies using Kerberos authentication with an Active Directory based Kerberos realm. It also allows the user to use Active Directory specific functions such as password ch...
app-sso – A tool used to control and get information about the Kerberos SSO extension.
app-sso [command] Commands: -a, --authenticate REALM [options ...] -u, --username USERNAME -f, --force -q, --quiet -d, --logout REALM -c, --changepassword REALM -l, --listrealms -i, --realminfo REALM -v, --verbose -i, --sitecode REALM -v, --verbose -r, --reset REALM -k, --keychainoption REALM -j, --json REALM -h, --hel...
null
Print infomation about the PRETENDCO.COM realm: app-sso -i PRETENDCO.COM Authenticate to the PRETENDCO.COM realm as jappleseed: app-sso -a PRETENDCO.COM -u jappleseed Kerberos Extension UI Options startInSmartCardMode The default behavior of the KerberosExtension is to start in the UI mode last used by the user. To fo...
devmodectl
null
null
null
null
null
nscurl
null
null
null
null
null
logger
The logger utility provides a shell command interface to the syslog(3) system log module. The following options are available: -i Log the process id of the logger process with each line. This flag is ignored and the process id is always logged. -s Log the message to standard error, as well as the system log....
logger – make entries in the system log
logger [-is] [-f file] [-p pri] [-t tag] [message ...]
null
logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc SEE ALSO syslog(3), syslogd(8) STANDARDS The logger command is expected to be IEEE Std 1003.2 (“POSIX.2”) compatible. macOS 14.5 March 16, 2022 macOS 14.5
caffeinate
caffeinate creates assertions to alter system sleep behavior. If no assertion flags are specified, caffeinate creates an assertion to prevent idle sleep. If a utility is specified, caffeinate creates the assertions on the utility's behalf, and those assertions will persist for the duration of the utility's execution....
caffeinate – prevent the system from sleeping on behalf of a utility
caffeinate [-disu] [-t timeout] [-w pid] [utility arguments...]
null
null
pod2html5.30
Converts files from pod format (see perlpod) to HTML format. ARGUMENTS pod2html takes the following arguments: help --help Displays the usage message. htmldir --htmldir=name Sets the directory to which all cross references in the resulting HTML file will be relative. Not passing this causes all links to be absolute sin...
pod2html - convert .pod files to .html files
pod2html --help --htmldir=<name> --htmlroot=<URL> --infile=<name> --outfile=<name> --podpath=<name>:...:<name> --podroot=<name> --cachedir=<name> --flush --recurse --norecurse --quiet --noquiet --verbose --noverbose --index --noindex --backlink --nobacklink --header --noheader --poderrors --nopoderrors --css=<URL> --ti...
null
null
say
This tool uses the Speech Synthesis manager to convert input text to audible speech and either play it through the sound output device chosen in System Preferences or save it to an AIFF file.
say - Convert text to audible speech
say [-v voice] [-r rate] [-o outfile [audio format options] | -n name:port | -a device] [-f file | string ...]
string Specify the text to speak on the command line. This can consist of multiple arguments, which are considered to be separated by spaces. -f file, --input-file=file Specify a file to be spoken. If file is - or neither this parameter nor a message is specified, read from standard input. -v voice, --voice=voice Speci...
say Hello, World say -v Alex -o hi -f hello_world.txt say --interactive=/green spending each day the color of the leaves say -o hi.aac 'Hello, [[slnc 200]] World' say -o hi.m4a --data-format=alac Hello, World. say -o hi.caf --data-format=LEF32@8000 Hello, World say -v '?' say --file-format=? say --file-format=caff --da...
net-snmp-create-v3-user
The net-snmp-create-v3-user shell script is designed to create a new user in net-snmp configuration file (/var/net-snmp/snmpd.conf by default).
net-snmp-create-v3-user - create a SNMPv3 user in net-snmp configuration file
net-snmp-create-v3-user [-ro] [-a authpass] [-x privpass] [-X DES|AES] [username]
--version displays the net-snmp version number -ro create an user with read-only permissions -a authpass specify authentication password -x privpass specify encryption password -X DES|AES specify encryption algorithm V5.6.2.1 17 Sep 2008 net-snmp-create-v3-user(1)
null
zipdetails5.34
Zipdetails displays information about the internal record structure of zip files. It is not concerned with displaying any details of the compressed data stored in the zip file. The program assumes prior understanding of the internal structure of a Zip file. You should have a copy of the Zip APPNOTE file at hand to help...
zipdetails - display the internal structure of zip files
zipdetails [-v][--scan] zipfile.zip zipdetails -h zipdetails --version
-h Display help --scan Walk the zip file loking for possible zip records. Can be error- prone. See "Scan-Mode" -v Enable Verbose mode. See "Verbose Output". --version Display version number of the program and exit. Default Output By default zipdetails will output the details of the zip file in three columns. Colum...
null
config_data5.34
The "config_data" tool provides a command-line interface to the configuration of Perl modules. By "configuration", we mean something akin to "user preferences" or "local settings". This is a formalization and abstraction of the systems that people like Andreas Koenig ("CPAN::Config"), Jon Swartz ("HTML::Mason::Config"...
config_data - Query or change configuration of Perl modules
# Get config/feature values config_data --module Foo::Bar --feature bazzable config_data --module Foo::Bar --config magic_number # Set config/feature values config_data --module Foo::Bar --set_feature bazzable=1 config_data --module Foo::Bar --set_config magic_number=42 # Print a usage message config_data --help
null
null
plutil
plutil can be used to check the syntax of property list files, or convert a plist file from one format to another. Specifying - as an input file reads from stdin. The first argument indicates the operation to perform, one of: -help Show the usage information for the command and exit. -p Print the property list ...
plutil – property list utility
plutil [command_option] [other_options] file ...
null
null
python3
Python is an interpreted, interactive, object-oriented programming language that combines remarkable power with very clear syntax. For an introduction to programming in Python, see the Python Tutorial. The Python Library Reference documents built-in and standard types, constants, functions and modules. Finally, the Py...
python - an interpreted, interactive, object-oriented programming language
python [ -B ] [ -b ] [ -d ] [ -E ] [ -h ] [ -i ] [ -I ] [ -m module-name ] [ -q ] [ -O ] [ -OO ] [ -P ] [ -s ] [ -S ] [ -u ] [ -v ] [ -V ] [ -W argument ] [ -x ] [ -X option ] [ -? ] [ --check-hash-based-pycs default | always | never ] [ --help ] [ --help-env ] [ --help-xoptions ] [ --help-all ] [ -c command | script ...
null
null
avbutil
The avbutil executable is used for the managment AVB features and settings. The following options are available: --virtual-audio enable if-name [--stream-count stream-count] [--channel-count channel-count] [--no-44.1k] [--no-48k] [--no-88.2k] [--no-96k] [--no-176.4k] [--no-192k] [--no-am824] [--no-aaf-int] [--no-aaf-fl...
avbutil – manage AVB features and settings.
avbutil
null
null
xcode-select
xcode-select controls the location of the developer directory used by xcrun(1), xcodebuild(1), cc(1), and other Xcode and BSD development tools. This also controls the locations that are searched for by man(1) for developer tool manpages. This allows you to easily switch between different versions of the Xcode tools an...
xcode-select - Manages the active developer directory for Xcode and BSD tools.
xcode-select [-h|--help] [-s|--switch <path>] [-p|--print-path] [-v|--version]
-h, --help Prints the usage message. -s <path>, --switch <path> Sets the active developer directory to the given path, for example /Applications/Xcode-beta.app. This command must be run with superuser permissions (see sudo(8)), and will affect all users on the system. To set the path without superuser permissions or on...
xcode-select --switch /Applications/Xcode.app/Contents/Developer Select /Applications/Xcode.app/Contents/Developer as the active developer directory. xcode-select --switch /Applications/Xcode.app As above, selects /Applications/Xcode.app/Contents/Developer as the active developer directory. The Developer content direct...
libnetcfg5.30
The libnetcfg utility can be used to configure the libnet. Starting from perl 5.8 libnet is part of the standard Perl distribution, but the libnetcfg can be used for any libnet installation. USAGE Without arguments libnetcfg displays the current configuration. $ libnetcfg # old config ./libnet.cfg daytime_hosts ntp1.n...
libnetcfg - configure libnet
null
null
null
powermetrics
powermetrics gathers and display CPU usage statistics (divided into time spent in user mode and supervisor mode), timer and interrupt wakeup frequency (total and, for near-idle workloads, those that resulted in package idle exits), and on supported platforms, interrupt frequencies (categorized by CPU number), package C...
powermetrics
powermetrics [-i sample_interval_ms] [-r order] [-t wakeup_cost] [-o output_file] [-n sample_count]
null
null
encguess5.34
The encoding identification is done by checking one encoding type at a time until all but the right type are eliminated. The set of encoding types to try is defined by the -s parameter and defaults to ascii, utf8 and UTF-16/32 with BOM. This can be overridden by passing one or more encoding types via the -s parameter. ...
encguess - guess character encodings of files VERSION $Id: encguess,v 0.3 2020/12/02 01:28:17 dankogai Exp dankogai $
encguess [switches] filename... SWITCHES -h show this message and exit. -s specify a list of "suspect encoding types" to test, separated by either ":" or "," -S output a list of all acceptable encoding types that can be used with the -s param -u suppress display of unidentified types EXAMPLES: • Guess encoding of a fil...
null
null
moose-outdated
null
null
null
null
null
net-server
The net-server program gives a simple way to test out code and try port connection parameters. Though the running server can be robust enough for full tim use, it is anticipated that this binary will just be used for basic testing of net-server ports, acting as a simple echo server, or for running development scripts ...
net-server - Base Net::Server starting module
net-server [base type] [net server arguments] net-server PreFork ipv '*' net-server HTTP net-server HTTP app foo.cgi net-server HTTP app foo.cgi app /=bar.cgi net-server HTTP port 8080 port 8443/ssl ipv '*' server_type PreFork --SSL_key_file=my.key --SSL_cert_file=my.crt access_log_file STDERR
"base type" The very first argument may be a Net::Server flavor. This is given as shorthand for writing out server_type "ServerFlavor". Additionally, this allows types such as HTTP and PSGI, which are not true Net::Server base types, to subclass other server types via an additional server_type argument. net-server Pre...
null
cvmkdir
The cvmkdir command creates a Xsan File System directory and attaches an affinity parameter (key) to it. If no option is used and the directory exists, the cvmkdir command displays the assigned affinity. Once an affinity is assigned to a directory, it cannot be altered. If no key is specified and the directory does n...
cvmkdir - Create an Xsan Directory with an Affinity
cvmkdir [-k key] dirname
-k key Specify to the file system what affinity (key) to associate with the directory. All new sub-directories and files created beneath this directory inherit its affinity. If the affinity is changed or removed only files or directories created after the change are affected. dirname The path of the directory to be c...
null
ldapmodify
ldapmodify is a shell-accessible interface to the ldap_add_ext(3), ldap_modify_ext(3), ldap_delete_ext(3) and ldap_rename(3). library calls. ldapadd is implemented as a hard link to the ldapmodify tool. When invoked as ldapadd the -a (add new entry) flag is turned on automatically. ldapmodify opens a connection to an...
ldapmodify, ldapadd - LDAP modify entry and LDAP add entry tools
ldapmodify [-a] [-c] [-S_file] [-n] [-v] [-M[M]] [-d_debuglevel] [-D_binddn] [-W] [-w_passwd] [-y_passwdfile] [-H_ldapuri] [-h_ldaphost] [-p_ldapport] [-P {2|3}] [-e [!]ext[=extparam]] [-E [!]ext[=extparam]] [-O_security-properties] [-I] [-Q] [-U_authcid] [-R_realm] [-x] [-X_authzid] [-Y_mech] [-Z[Z]] [-f_file] ldapadd...
-a Add new entries. The default for ldapmodify is to modify existing entries. If invoked as ldapadd, this flag is always set. -c Continuous operation mode. Errors are reported, but ldapmodify will continue with modifications. The default is to exit after reporting an error. -S_file Add or change records whic...
Assuming that the file /tmp/entrymods exists and has the contents: dn: cn=Modify Me,dc=example,dc=com changetype: modify replace: mail mail: modme@example.com - add: title title: Grand Poobah - add: jpegPhoto jpegPhoto:< file:///tmp/modme.jpeg - delete: description - the command: ldapmodify -f /tmp/entrymods will repla...
iofile.d
This prints the total I/O wait times for each filename by process. This can help determine why an application is performing poorly by identifying which file they are waiting on, and the total times. Both disk and NFS I/O are measured. Since this uses DTrace, only users with root privileges can run this command.
iofile.d - I/O wait time by file and process. Uses DTrace.
iofile.d
null
Sample until Ctrl-C is hit then print report, # iofile.d FIELDS PID process ID CMD process name TIME total wait time for disk events, us FILE file pathname BASED ON /usr/demo/dtrace/iocpu.d DOCUMENTATION See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may inclu...
join
The join utility performs an “equality join” on the specified files and writes the result to the standard output. The “join field” is the field in each file by which the files are compared. The first field in each line is used by default. There is one line in the output for each pair of lines in file1 and file2 which...
join – relational database operator
join [-a file_number | -v file_number] [-e string] [-o list] [-t char] [-1 field] [-2 field] file1 file2
null
Assuming a file named nobel_laureates.txt with information about some of the first Nobel Peace Prize laureates: 1901,Jean Henri Dunant,M 1901,Frederic Passy,M 1902,Elie Ducommun,M 1905,Baroness Bertha Sophie Felicita Von Suttner,F 1910,Permanent International Peace Bureau, and a second file nobel_nationalities.txt with...
SafeEjectGPU
The SafeEjectGPU command is used to prepare for safe eject/disconnect of eGPUs from the system. This involves interacting with apps to migrate off of ejecting eGPU(s), and triggering the eject itself. This tool can also be used to view what GPUs are attached to the system, their eject status, and what apps hold refere...
SafeEjectGPU – Facilitate safe eject/disconnect of eGPU(s) from system
SafeEjectGPU [gpuid <gpuid>] [gpuids <gpuid1>,<gpuid2>,...] [gpus] [apps] [status] [Eject] [Initiate] [Relaunch] [Finalize] [Cancel] [RelaunchPID <PID>] ...
null
$ SafeEjectGPU gpus List eGPUs. Output is useful for cut-n-paste of example specified gpuid values used below $ SafeEjectGPU gpus apps status List all eGPUs and Apps on all eGPUs along with eject status of all eGPUs $ SafeEjectGPU Eject Perform full Eject sequence on all eGPUs $ SafeEjectGPU gpuid 0x7005 Eject Perform...
snmpdelta
snmpdelta will monitor the specified integer valued OIDs, and report changes over time. AGENT identifies a target SNMP agent, which is instrumented to monitor the given objects. At its simplest, the AGENT specification will consist of a hostname or an IPv4 address. In this situation, the command will attempt communic...
snmpdelta - Monitor delta differences in SNMP Counter values
snmpdelta [ COMMON OPTIONS ] [-Cf] [ -Ct ] [ -Cs ] [ -CS ] [ -Cm ] [ -CF configfile ] [ -Cl ] [ -Cp period ] [ -CP Peaks ] [ -Ck ] [ -CT ] AGENT OID [ OID ... ]
COMMON OPTIONS Please see snmpcmd(1) for a list of possible values for COMMON OPTIONS as well as their descriptions. -Cf Don't fix errors and retry the request. Without this option, if multiple oids have been specified for a single request and if the request for one or more of the oids fails, snmpdelta will retry t...
$ snmpdelta -c public -v 1 -Cs localhost IF-MIB::ifInUcastPkts.3 IF-MIB::ifOutUcastPkts.3 [20:15:43 6/14] ifInUcastPkts.3 /1 sec: 158 [20:15:43 6/14] ifOutUcastPkts.3 /1 sec: 158 [20:15:44 6/14] ifInUcastPkts.3 /1 sec: 184 [20:15:44 6/14] ifOutUcastPkts.3 /1 sec: 184 [20:15:45 6/14] ifInUcastPkts.3 /1 sec: 184 [20:15:4...
ssh-keyscan
ssh-keyscan is a utility for gathering the public SSH host keys of a number of hosts. It was designed to aid in building and verifying ssh_known_hosts files, the format of which is documented in sshd(8). ssh-keyscan provides a minimal interface suitable for use by shell and perl scripts. ssh-keyscan uses non-blocking ...
ssh-keyscan – gather SSH public keys from servers
ssh-keyscan [-46cDHv] [-f file] [-O option] [-p port] [-T timeout] [-t type] [host | addrlist namelist]
null
Print the RSA host key for machine hostname: $ ssh-keyscan -t rsa hostname Search a network range, printing all supported key types: $ ssh-keyscan 192.168.0.64/25 Find all hosts from the file ssh_hosts which have new or different keys from those in the sorted file ssh_known_hosts: $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519...
renice
The renice utility alters the scheduling priority of one or more running processes. The following target parameters are interpreted as process ID's (the default), process group ID's, user ID's or user names. The renice'ing of a process group causes all processes in the process group to have their scheduling priority ...
renice – alter priority of running processes
renice priority [[-gpu] target] renice -n increment [[-gpu] target]
null
Change the priority of process ID's 987 and 32, and all processes owned by users daemon and root. renice +1 987 -u daemon root -p 32 SEE ALSO nice(1), rtprio(1), getpriority(2), setpriority(2) STANDARDS The renice utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”). HISTORY The renice utility appeared in 4.0BSD. BUGS ...
xxd
xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form. Like uuencode(1) and uudecode(1) it allows the transmission of binary data in a `mail- safe' ASCII representation, but has the advantage of decoding to standard output. Moreover, it can be used ...
xxd - make a hex dump or do the reverse.
xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [options] [infile [outfile]]
If no infile is given, standard input is read. If infile is specified as a `-' character, then input is taken from standard input. If no outfile is given (or a `-' character is in its place), results are sent to standard output. Note that a "lazy" parser is used which does not check for more than the first option let...
Print everything but the first three lines (hex 0x30 bytes) of file. % xxd -s 0x30 file Print 3 lines (hex 0x30 bytes) from the end of file. % xxd -s -0x30 file Print 120 bytes as a continuous hex dump with 20 octets per line. % xxd -l 120 -ps -c 20 xxd.1 2e54482058584420312022417567757374203139 39362220224d616e75616c2...
clangd
null
null
null
null
null
scandeps.pl
scandeps.pl is a simple-minded utility that prints out the "PREREQ_PM" section needed by modules. If the option "-T" is specified and you have CPANPLUS installed, modules that are part of an earlier module's distribution with be denoted with "S"; modules without a distribution name on CPAN are marked with "?". Also, if...
scandeps.pl - Scan file prerequisites
% scandeps.pl *.pm # Print PREREQ_PM section for *.pm % scandeps.pl -e 'STRING' # Scan an one-liner % scandeps.pl -B *.pm # Include core modules % scandeps.pl -V *.pm # Show autoload/shared/data files % scandeps.pl -R *.pm # Don't recurse % scandeps.pl -C CACHEFILE # use CACHEFILE to cache d...
-e, --eval=STRING Scan STRING as a string containing perl code. -c, --compile Compiles the code and inspects its %INC, in addition to static scanning. -x, --execute Executes the code and inspects its %INC, in addition to static scanning. You may use --xargs to specify @ARGV when executing the code. --xargs=STRING If -...
null
nettop
The nettop program displays a list of sockets or routes. The counts for network structures are updated periodically. While the program is running the following keys may be used: q Quit Up Arrow Scroll up Down Arrow Scroll down Right Arrow Scroll Right Left Arrow Scroll Left d Toggle delta output r Red...
nettop – Display updated information about the network
nettop [-ncd] [-m <mode>] [-t <type>] [-s <seconds>] [-p <process-name|pid>] [-n] [-l <samples>] [-L <samples>] [-P] [-j|k|J <column-name[,column-name]...>]
A list of flags and their descriptions: -m <mode> Specify the mode. By default, nettop will monitor TCP and UDP sockets. The following modes are supported: tcp Only TCP sockets will be monitored udp Only UDP sockets will be monitored route Instead of sockets, the routing table will be monitored -t <type> S...
null
ppdmerge
ppdmerge merges two or more PPD files into a single, multi-language PPD file. This program is deprecated and will be removed in a future release of CUPS.
ppdmerge - merge ppd files (deprecated)
ppdmerge [ -o output-ppd-file ] ppd-file ppd-file [ ... ppd-file ]
ppdmerge supports the following options: -o output-ppd-file Specifies the PPD file to create. If not specified, the merged PPD file is written to the standard output. If the output file already exists, it is silently overwritten. NOTES PPD files are deprecated and will no longer be supported in a future feature relea...
null
snmpconf
snmpconf is a simple Perl script that walks you through setting up a configuration file step by step. It should be fairly straight forward to use. Merely run it and answer its questions. In its default mode of operation, it prompts the user with menus showing sections of the various configuration files it knows about....
snmpconf - creates and modifies SNMP configuration files
snmpconf [OPTIONS] [fileToCreate] Start with: snmpconf -g basic_setup Or even just: snmpconf
-f Force overwriting existing files in the current directory without prompting the user if this is a desired thing to do. -i When finished, install the files into the location where the global system commands expect to find them. -p When finished, install the files into the users home directory's .snmp s...
null
xsltproc
xsltproc is a command line tool for applying XSLT stylesheets to XML documents. It is part of libxslt(3), the XSLT C library for GNOME. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop. xsltproc is invoked from the command line with the name of the stylesheet to be ...
xsltproc - command line XSLT processor
xsltproc [[-V | --version] [-v | --verbose] [{-o | --output} {FILE | DIRECTORY}] | --timing | --repeat | --debug | --novalid | --noout | --maxdepth VALUE | --maxvars VALUE | --maxparserdepth VALUE | --huge | --seed-rand VALUE | --html | --encoding ENCODING | --param PARAMNAME PARAMVALUE | --stringparam PARAMNAME PARA...
xsltproc accepts the following options (in alphabetical order): --catalogs Use the SGML catalog specified in SGML_CATALOG_FILES to resolve the location of external entities. By default, xsltproc looks for the catalog specified in XML_CATALOG_FILES. If that is not specified, it uses /etc/xml/catalog. --debug Output an X...
null
osascript
osascript executes the given OSA script, which may be plain text or a compiled script (.scpt) created by Script Editor or osacompile(1). By default, osascript treats plain text as AppleScript, but you can change this using the -l option. To get a list of the OSA languages installed on your system, use osalang(1). osas...
osascript – execute OSA scripts (AppleScript, JavaScript, etc.)
osascript [-l language] [-i] [-s flags] [-e statement | programfile] [argument ...]
null
null
iotop
iotop tracks disk I/O by process, and prints a summary report that is refreshed every interval. This is measuring disk events that have made it past system caches. Since this uses DTrace, only users with root privileges can run this command.
iotop - display top disk I/O events by process. Uses DTrace.
iotop [-C] [-D|-o|-P] [-j|-Z] [-d device] [-f filename] [-m mount_point] [-t top] [interval [count]]
-C don't clear the screen -D print delta times - elapsed, us -j print project ID -o print disk delta times, us -P print %I/O (disk delta times) -Z print zone ID -d device instance name to snoop (eg, dad0) -f filename full pathname of file to snoop -m mount_point mountpoint for filesystem to snoo...
Default output, print summary every 5 seconds # iotop One second samples, # iotop 1 print %I/O (time based), # iotop -P Snoop events on the root filesystem only, # iotop -m / Print top 20 lines only, # iotop -t 20 Print 12 x 5 second samples, scrolling, # iotop -C 5 12 FIELDS UID user ID PID process ID PPID par...
lex
Generates programs that perform pattern-matching on text. Table Compression: -Ca, --align trade off larger tables for better memory alignment -Ce, --ecs construct equivalence classes -Cf do not compress tables; use -f representation -CF do not compress tables; use -F representation -Cm, --meta-ecs construct meta-...
flex - the fast lexical analyser generator
flex [OPTIONS] [FILE]...
null
null
encguess
The encoding identification is done by checking one encoding type at a time until all but the right type are eliminated. The set of encoding types to try is defined by the -s parameter and defaults to ascii, utf8 and UTF-16/32 with BOM. This can be overridden by passing one or more encoding types via the -s parameter. ...
encguess - guess character encodings of files VERSION $Id: encguess,v 0.3 2020/12/02 01:28:17 dankogai Exp $
encguess [switches] filename... SWITCHES -h show this message and exit. -s specify a list of "suspect encoding types" to test, separated by either ":" or "," -S output a list of all acceptable encoding types that can be used with the -s param -u suppress display of unidentified types EXAMPLES: • Guess encoding of a fil...
null
null
eyapp5.34
The eyapp compiler is a front-end to the Parse::Eyapp module, which lets you compile Parse::Eyapp grammar input files into Perl LALR(1) Object Oriented parser modules. OPTIONS IN DETAIL -v Creates a file grammar.output describing your parser. It will show you a summary of conflicts, rules, the DFA (Deterministic Finit...
eyapp - A Perl front-end to the Parse::Eyapp module
eyapp [options] grammar[.eyp] eyapp -V eyapp -h grammar The grammar file. If no suffix is given, and the file does not exists, .eyp is added
null
null
ctf_insert
ctf_insert inserts CTF (Compact C Type Format) data into a mach_kernel binary, storing the data in a newly created (__CTF,__ctf) section. This section must not be present in the input file. ctf_insert(1) must be passed one -arch argument for each architecture in a universal file, or exactly one -arch for a thin file. ...
ctf_insert - insert Compact C Type Format data into a mach_kernel file
ctf_insert input [ -arch arch file ]... -o output
null
null
csplit
The csplit utility splits file into pieces using the patterns args. If file is a dash (‘-’), csplit reads from standard input. Files are created with a prefix of “xx” and two decimal digits. The size of each file is written to standard output as it is created. If an error occurs whilst files are being created, or a ...
csplit – split files based on context
csplit [-ks] [-f prefix] [-n number] file args ...
null
Split the mdoc(7) file foo.1 into one file for each section (up to 21 plus one for the rest, if any): csplit -k foo.1 '%^\.Sh%' '/^\.Sh/' '{20}' Split standard input after the first 99 lines and every 100 lines thereafter: csplit -k - 100 '{19}' SEE ALSO sed(1), split(1), re_format(7) STANDARDS The csplit utility confo...
swift-inspect
null
null
null
null
null
splain5.30
The "diagnostics" Pragma This module extends the terse diagnostics normally emitted by both the perl compiler and the perl interpreter (from running perl with a -w switch or "use warnings"), augmenting them with the more explicative and endearing descriptions found in perldiag. Like the other pragmata, it affects the ...
diagnostics, splain - produce verbose warning diagnostics
Using the "diagnostics" pragma: use diagnostics; use diagnostics -verbose; enable diagnostics; disable diagnostics; Using the "splain" standalone filter program: perl program 2>diag.out splain [-v] [-p] diag.out Using diagnostics to get stack traces from a misbehaving script: perl -Mdiagnostics=-traceonly my_script.pl
null
The following file is certain to trigger a few errors at both runtime and compiletime: use diagnostics; print NOWHERE "nothing\n"; print STDERR "\n\tThis message should be unadorned.\n"; warn "\tThis is a user warning"; print "\nDIAGNOSTIC TESTER: Please enter a <CR> here: "; my $a, $b = scalar <STDIN>; print "\n"; pri...
iconv
The iconv program converts text from one encoding to another encoding. More precisely, it converts from the encoding given for the -f option to the encoding given for the -t option. Either of these encodings defaults to the encoding of the current locale. All the inputfiles are read and converted in turn; if no inputfi...
iconv - character set conversion
iconv [OPTION...] [-f encoding] [-t encoding] [inputfile ...] iconv -l
null
iconv -f ISO-8859-1 -t UTF-8 converts input from the old West-European encoding ISO-8859-1 to Unicode. iconv -f KOI8-R --byte-subst="<0x%x>" --unicode-subst="<U+%04X>" converts input from the old Russian encoding KOI8-R to the locale encoding, substituting an angle bracket notation with hexadecimal numbers for invalid ...
captoinfo
captoinfo looks in each given text file for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output. Termcap tc capabilities are translated directly to terminfo use capabilities. If no file is given, then the environment variable TERMCAP is used for the filename or e...
captoinfo - convert a termcap description into a terminfo description
captoinfo [-vn width] [-V] [-1] [-w width] file . . .
null
null
snmpinform
snmptrap is an SNMP application that uses the SNMP TRAP operation to send information to a network manager. One or more object identifiers (OIDs) can be given as arguments on the command line. A type and a value must accompany each object identifier. Each variable name is given in the format specified in variables(5...
snmptrap, snmpinform - sends an SNMP notification to a manager
snmptrap -v 1 [COMMON OPTIONS] AGENT enterprise-oid agent generic-trap specific-trap uptime [OID TYPE VALUE]... snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] AGENT uptime trap-oid [OID TYPE VALUE]... snmpinform -v [2c|3] [COMMON OPTIONS] AGENT uptime trap-oid [OID TYPE VALUE]...
snmptrap takes the common options described in the snmpcmd(1) manual page in addition to the -Ci option described above. Note that snmptrap REQUIRES an argument specifying the agent to query as described there. SEE ALSO snmpcmd(1), snmpset(1), variables(5). V5.6.2.1 19 Jun 2003 SNMPTRAP(1)
null
lsbom
The lsbom command interprets the contents of binary bom (bom(5)) files. For each file in a bom, lsbom prints the file path and/or requested information. If no options are given, lsbom will display the output formatted such that each line contains the path of the entry, its mode (octal), and its UID/GID. There are sligh...
lsbom – list contents of a bom file
lsbom [-b] [-c] [-d] [-f] [-l] [-m] [-s] [-x] [--arch archVal] [-p parameters] bom ... lsbom -h | --help
null
lsbom bomfile list the contents of bomfile lsbom -s bomfile list only the paths of the contents of the bomfile lsbom -f -l bomfile list the plain files and symbolic links of the bomfiles (but not directories or devices) lsbom -p MUGsf bomfiles list the contents of bomfile displaying only the files' modes,...
pbcopy
pbcopy takes the standard input and places it in the specified pasteboard. If no pasteboard is specified, the general pasteboard will be used by default. The input is placed in the pasteboard as plain text data unless it begins with the Encapsulated PostScript (EPS) file header or the Rich Text Format (RTF) file heade...
pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard) from command line
pbcopy [-help] [-pboard {general | ruler | find | font}] pbpaste [-help] [-pboard {general | ruler | find | font}] [-Prefer {txt | rtf | ps}]
-pboard {general | ruler | find | font} specifies which pasteboard to copy to or paste from. If no pasteboard is given, the general pasteboard will be used by default. -Prefer {txt | rtf | ps} tells pbpaste what type of data to look for in the pasteboard first. As stated above, pbpaste normally looks first for plain ...
null
sort
The sort utility sorts text and binary files by lines. A line is a record separated from the subsequent record by a newline (default) or NUL ´\0´ character (-z option). A record can contain any printable or unprintable characters. Comparisons are based on one or more sort keys extracted from each line of input, and ...
sort – sort or merge records (lines) of text and binary files
sort [-bcCdfghiRMmnrsuVz] [-k field1[,field2]] [-S memsize] [-T dir] [-t char] [-o output] [file ...] sort --help sort --version
null
null
xpath
xpath uses the XML::XPath perl module to make XPath queries to any XML document. The XML::XPath module aims to comply exactly to the XPath specification at "http://www.w3.org/TR/xpath" and yet allows extensions to be added in the form of functions. The script takes any number of XPath pointers and tries to apply them ...
xpath - a script to query XPath statements in XML documents.
xpath [-s suffix] [-p prefix] [-n] [-q] -e query [-e query] ... [file] ...
-q Be quiet. Output only errors (and no separator) on stderr. -n Never use an external DTD, ie. instantiate the XML::Parser module with 'ParseParamEnt => 0'. -s suffix Place "suffix" at the end of each entry. Default is a linefeed. -p prefix Place "prefix" preceding each entry. Default is nothing. BUGS The author of th...
null
snmpdf
snmpdf is simply a networked verison of the typical df command. It checks the disk space on the remote machine by examining the HOST- RESOURCES-MIB's hrStorageTable or the UCD-SNMP-MIB's dskTable. By default, the hrStorageTable is preferred as it typically contains more information. However, the -Cu argument can be p...
snmpdf - display disk space usage on a network entity via SNMP
snmpdf [COMMON OPTIONS] [-Cu] AGENT
COMMON OPTIONS Please see snmpcmd(1) for a list of possible values for COMMON OPTIONS as well as their descriptions. -Cu Forces the command to use dskTable in mib UCD-SNMP-MIB instead of the default to determine the storage information. Generally, the default use of hrStorageTable in mib HOST-RESOURCES-MIB is prefe...
% snmpdf -v 2c -c public localhost Description size (kB) Used Available Used% / 7524587 2186910 5337677 29% /proc 0 0 0 0% /etc/mnttab 0 0 0 0% /var/run 1223088 32 1223056 0% /tmp 1289904 66848 1223056 5% /cache 124330 2416 121914 1% /vol...
whoami
The whoami utility has been obsoleted by the id(1) utility, and is equivalent to “id -un”. The command “id -p” is suggested for normal interactive use. The whoami utility displays your effective user ID as a name. EXIT STATUS The whoami utility exits 0 on success, and >0 if an error occurs. SEE ALSO id(1) macOS 14.5 ...
whoami – display effective user id
whoami
null
null
sc_usage
sc_usage displays an ongoing sample of system call and page fault usage statistics for a given process in a “top-like” fashion. It requires root privileges due to the kernel tracing facility it uses to operate. Page faults can be of the following types: PAGE_IN page had to read from disk ZERO_FILL page was created a...
sc_usage – show system call usage statistics
sc_usage [-c codefile] [-e] [-l] [-s interval] pid | cmd | -E execute
null
null
jot
The jot utility is used to print out increasing, decreasing, random, or redundant data, usually numbers, one per line. The following options are available: -r Generate random data instead of the default sequential data. -b word Just print word repetitively. -w word Print word with the generated data appended to it...
jot – print sequential or random data
jot [-cnr] [-b word] [-w word] [-s string] [-p precision] [reps [begin [end [s]]]]
null
The command jot - 1 10 prints the integers from 1 to 10, while the command jot 21 -1 1.00 prints 21 evenly spaced numbers increasing from -1 to 1. The ASCII character set is generated with jot -c 128 0 and the strings xaa through xaz with jot -w xa%c 26 a while 20 random 8-letter strings are produced with jot -r -c 16...