home *** CD-ROM | disk | FTP | other *** search
- This is simply a list of the utilities and their switches. For more
- information you are referred to the appropriate UNIX manual pages.
-
- I make no promises about these utilities (fixing them, bugs etc). However,
- I do use most of them daily. I have not pointed out which switches are
- meaningless (like -l for cpio). The utilities ignore meaningless switches
- and remove illegal ones.
-
- mv.exe and df.exe should be copied to cp.exe and bdf.exe respectively to
- get alternate versions of the commands.
-
-
-
- basename - get file basename
-
- Usage: basename string [suffix]
-
-
- cat - concatenate files
-
- Usage: cat [-usvtenqb] files
-
- -b: Displays ouput lines preceded by line numbers omitting blank lines.
- -e: A "$" character is displayed at the end of each line.
- -n: Displays output lines preceded by line numbers
- -q: Quiet option.
- -s: Squeeze option.
- -t: Tab characters print as ^ I.
- -u: Does not buffer output.
- -v: Displays non-printing characters so that they are visible.
-
-
- chmod - change file mode
-
- Usage: chmod [-R] [absolute-mode | symbolic-mode | string-mode] files
-
- -R: Recursively descend directories
- absolute mode 01 - Set read-only bit
- 02 - Set hidden bit
- 04 - Set system bit
- 40 - Set archive bit
-
- symbolic mode -+ a - Set archive bit
- -+ h - Set hidden bit
- -+ r - Set read-only bit
- -+ s - Set system bit
- string mode rw----ASH - use ls format to set bits
-
-
- cmp - compare files
-
- Usage: cmp [-ls] file1 file2
-
- -l: Print the byte number and the differing bytes for each difference.
- -s: Print nothing for differing files; exit codes only.
-
-
- cpio - read/write archive file.
-
- Usage: cpio -o [ acxBTv O <output file>]
- -i [ BTxcdmkrtuvfsSb6 I <input file>] [ patterns ]
- -p [ adrxlmuv ] directory
-
- -i: Extracts files from standard input
- -o: Write files to standard output
- -p: Reads the standard input to obtain a list of path names
- of files that are conditionally created and copied into
- the destination
- -a: Reset access times of input files after they have been copied
- -B: Input/output is to be blocked 5,120 bytes
- -d: Directories are to be created as needed
- -c: Write header information in ASCII character format
- -r: Interactively rename files
- -t: Print a table of contents of the input
- -u: Copy unconditionally
- -v: Verbose
- -l: Link files rather than copying them
- -m: Retain previous file modification time
- -f: Copy in all files except those in patterns
- -s: Swap bytes.
- -S: Swap halfwords
- -T: Swap halfwords in binary header only
- -b: Swap both bytes and halfwords
- -6: Process an UNIX System Sixth Edition format file
- -k: Attempt to recover corrupt archive
- -I: Read from file rather that stdin
- -O: Write to file rather that stdout
-
- Note: Support raw disk I/O to /dev/fdx and /dev/hdxy. See ms_dio.2 for
- explanation.
-
- Usage: date [-q] [+format] [[MMDDYY]hhmm[ss]]
-
-
- dd - disk duplicate
-
- Usage: dd [options]
-
- Refer to POSIX or SysV.2 manuals
-
- Note: Support raw disk I/O to /dev/fdx and /dev/hdxy. See ms_dio.2 for
- explanation.
-
-
- df - report free space
-
- Usage: df [drive]
-
- Note: copy to df.exe to bdf.exe to generate BSD UNIX format. df
- generates SysV.2 format.
-
-
- du - summarize disk usage
-
- Usage: du [-ars] [startdir]
-
- -s: Causes only the grand total to be given
- -a: Causes an entry to be generated for each file
- -r: Report unreadable directories
-
-
- fgrep - string matcher
-
- Usage: fgrep [-vxcilnbs] [-e string] [-f file] [string] [files..]
-
- -x: Only lines matched in their entirety are printed
- -v: All lines but those matching are printed
- -c: Only a count of matching lines is printed
- -i: Ignore upper/lower case distinction during comparisons
- -l: Only the names of files with matching lines are listed (once),
- separated by new-lines
- -n: Each line is preceded by its relative line number in the file
- -b: Each line is preceded by the block number on which it was found
- -s: The error messages produced for nonexistent or unreadable
- files are suppressed
- -e string Same as a simple string argument,
- -f file The string list is taken from the file.
-
-
- find - scan path for files
-
- Usage: find path-list predicate-list
-
- Refer to UNIX manual for explanation of options
-
-
- grep - general regular expression pattern matcher
-
- Usage: grep [-vcilnbs] [-e string] [-f file] [string] [files..]
-
- -v: All lines but those matching are printed
- -c: Only a count of matching lines is printed
- -i: Ignore upper/lower case distinction during comparisons
- -l: Only the names of files with matching lines are listed
- (once), separated by new-lines
- -n: Each line is preceded by its relative line number in
- the file
- -b: Each line is preceded by the block number on which it
- was found
- -s: The error messages produced for nonexistent or
- unreadable files are suppressed
- -e expression Same as a simple expression argument,
- -f file The regular expression list is taken from the file.
-
-
- ls - list files
-
- Usage: ls [-xutsrpqonmligfdcbaACFR] [file list]
-
- -R: Recursively list subdirectories encountered
- -a: List all entries under MSDOS
- -A: List all entries under MSDOS
- -d: If an argument is a directory, list only its name (not its contents)
- -C: Multi-column output with entries sorted down the columns
- -x: Multi-column output with entries sorted across the page
- -m: Stream output format
- -l: List in long format
- -n: The same as -l for MSDOS
- -o: The same as -l , except that the group is not printed
- -g: The same as -l , except that the owner is not printed
- -r: Reverse the order of sort
- -t: Sort by time modified (latest first) instead of by name
- -u: Use time of last access instead of last modification for sorting
- -c: Use time of last modification of the i-node for sorting
- -p: Put a slash after each filename if that file is a directory
- -F: Put a slash after each filename if that file is a directory and
- put an asterisk after each filename if that file is executable
- -b: Force printing of non-graphic characters in octal \eddd notation
- -q: Force printing of non-graphic characters in as ?
- -i: Print the i-number in the first column of the report
- -s: Print the size in blocks
- -f: Force each argument to be interpreted as a directory and list the
- name found in each slot.
-
-
- mkdir - make directory
-
- Usage: mkdir [-p] directory_name [ ... directory_name ]
-
- -p: Make all missing directorys on path
-
-
- mv - Move/copy files
-
- Usage: mv [-iprfv] f1 f2
- mv [-iprfv] f1 ... fn d1
- mv [-iprfv] d1 d2
-
- -i: Ask about overwritting files
- -p: Restore modification times
- -r: Recursively process directory trees
- -f: Silent move
- -v: Verbose output
-
- Note: copy mv.exe to cp.exe to generate the copy program. Under
- UNIX, the two are normally linked.
-
-
- od - octal dump
-
- Usage: od [-bcdhox] [file] [ [+] offset [.] [b] ]
-
- -h: Output as word in hex format
- -b: Interpret bytes in octal
- -c: Interpret bytes in ASCII
- -d: Interpret words in unsigned decimal
- -o: Interpret words in octal
- -x: Interpret words in hex
-
-
- rm - remove files
-
- Usage: rm [-fir] file
-
- -f: Remove silently
- -i: Confirm removal
- -r: Remove recursively down the directory tree
-
-
- rmdir - remove directory
-
- Usage: rmdir [-p] dir ...
-
- -p: Remove all directorys on path
-
-
- sleep - sleep
-
- Usage: sleep time
-
-
- sort - Sort data
-
- Usage: sort -ri [-o out file] [-k key start] [-l key length] file name
-
- -r: Reverse sort order
- -i: Ignore case
- -o out_file: Output to this file
- -k key_start: Start offset of key
- -l key_lengthL Key of sort key
-
-
- tee - Pipe fitting
-
- Usage: tee [-i] [-a] [files].
-
- -i: Ignore interrupts
- -a: Append to output files
-
-
- touch - Change time times
-
- Usage: touch [-amc] [-s newsize] [-t mmddhhmm[CC]yy.ss] [-f ref_file] file..
-
- -a: Change access time
- -m: Change modification time
- -c: Change creation time
- -s newsize: Change file size
- -t mmddhhmm[CC]yy.ss: Set new time for changes to mmddhhmm[CC]yy.ss
- -f ref_file: Use ref_files times for change
-
-
- uniq - Print unique lines
-
- Usage: uniq -udc [file names]
-
- -c: Report duplication counts
- -d: Print duplicate lines
- -u: Print uniq lines
-
-
- wc - Word Counter
-
- Usage: wc [-lwc] [name ...]
-
- -l: Report line count
- -c: Report character count
- -w: Report character word
-
-
-