home *** CD-ROM | disk | FTP | other *** search
/ CBM Funet Archive / cbm-funet-archive-2003.iso / cbm / c128 / os / unix128v3 / unix311a.sfx / man1 next >
Encoding:
Text File  |  1990-02-12  |  18.6 KB  |  475 lines

  1. +!
  2. USAGE: ![option]
  3. SYNOPSIS: ! is the history substitution prefix.  It is used in conjunction with
  4. the HISTORY command to recall previous commands.  Variations:
  5.     !!      repeats the previous command
  6.     !!:p    prints the previous command
  7.     !*      append all the arguments from the previous command
  8.     !^      append the first argument from the previous command
  9.     !$      append the last argument from the previous command
  10.     !:n     append the n'th argument (n=1-9) from the previous command
  11.     !n      repeats the n'th command of your session
  12.     !-n     repeats the command issued n times ago
  13.     !word   repeats the command that starts with 'word'
  14.     !?word  repeats the command that contains the string 'word'
  15.     Note that with !! you can add arguments, for example:
  16.       % ls
  17.       % !! -F  = ls -F
  18.  
  19. +.!.
  20. USAGE: % .!.
  21. SYNOPSIS: Show Unix 128 credits.
  22.  
  23. +<
  24. USAGE: % [command] < [file]
  25. SYNOPSIS: Take input from a disk file.  This command is usually unnecessary,
  26. since most commands already take file arguments.  See >
  27.  
  28. +>
  29. USAGE: % [command] > [file]
  30. SYNOPSIS: Re-route output to a disk file.  A command such as LS >FILE will show
  31. the directory and copy the screen output to the sequential file FILE.
  32. '>>' can be used in place of '>' to append the data to the file instead of
  33. overwriting it (the file to append to must first exist).
  34.  
  35. +@
  36. USAGE: % @[dos command]
  37. SYNOPSIS: Issue a standard Commodore DOS command (examples:  @i0 will
  38. initialize drive 0; @s0:text will delete the file 'text')
  39. NOTE: Disk commands issued in this fashion will NOT update Unix 128's internal
  40. directories; 'fsck' must be performed.
  41.  
  42. +ADDUSER
  43. USAGE: % adduser
  44. SYNOPSIS: (Requires root privilege)  Add a new user to the password file.
  45. Enter the user's username, password, privilege (1=superuser/full access,
  46. 2=user/restricted access), and home directory (the directory must exist first,
  47. 'root' (/) is the default).  NOTE:  Giving a user superuser privelege allows
  48. totally unrestricted access to any file.
  49.  
  50. +ALIAS
  51. USAGE: % alias [ name [def] ]
  52. SYNOPSIS:  Assign def to the alias name.  def is a list of words that will
  53. replace the name on the command line.  If def is omitted, the alias name is
  54. displayed along with its current definition.  If both name and def are omitted,
  55. all aliases are displayed.  See unalias.
  56.  
  57. +ALLOC
  58. USAGE: % alloc
  59. SYNOPSIS: Show the current memory allocated, free variable memory, free program
  60. memory, and expanded (REU) memory.
  61.  
  62. +APROPOS
  63. USAGE: % apropos [ phrase ]
  64. SYNOPSIS: Perform a keyword search for a phrase in the manual, and list the
  65. manual pages and lines on which the command is found.
  66.  
  67. +AS
  68. USAGE: % as (option) (filename)
  69. SYNOPSIS: This is the 8510 (6502) assembler/machine language monitor
  70. /disassembler for the Unix 128 system.  To compile assembler source code,
  71. type '% as filename'.  The assembler will first parse the code and write
  72. 'filename.o' (an 8510 source file).  It will then compile the code into a 
  73. binary file (called 'a.out') and return to the system prompt.  The options
  74. are as follows:
  75.    % as -h              view the command reference / help screen.
  76.    % as -v begin end    view memory from begin address to end address.
  77.    % as -d begin end    disassemble memory from begin address to end address.
  78.    % as filename        compile assembler source code file 'filename'.
  79.  
  80. +BANNER
  81. USAGE: % banner [ string ]
  82. SYNOPSIS:  banner prints the given string in large capital letters on the
  83. standard output device (i.e. to be useful, use banner string {SHIFT-POUND} lpr).
  84. banner knows how to print only capital letters, numbers, and some punctuation
  85. marks (!.*=).
  86.  
  87. +BASIC
  88. USAGE: % basic
  89. SYNOPSIS: The BASIC utility allows the conversion of SEQ editor files to
  90. Commodore BASIC 2.0/7.0.  This feature allows the programmer to use emacs to
  91. write BASIC code, instead of using the standard screen editor.
  92.  
  93. +BDIFF
  94. USAGE: % bdiff (-t or -b) [ file1 ] [ file2 ]
  95. SYNOPSIS: Display the differences between two large files.  -t specifies a
  96. text comparision, and -b specifies a binary comparision.  -t is the default.
  97.  
  98. +BROWSE
  99. USAGE: % browse ( command )
  100. SYNOPSIS: Enter the interactive manual browser, and lookup the command
  101. specified, if applicable.  The browser is an extension of the man command
  102. useful in learning the commands used in Unix 128.
  103.  
  104. +CAL
  105. USAGE: % cal [ month ] [ year ]
  106. SYNOPSIS:  cal displays a calendar for the specified month and year.  year can
  107. be between 1905 and 2300.   month is between 1 and 12.  cal requires both
  108. arguments, which must be numeric.
  109.  
  110. +CAT
  111. USAGE: % cat [ filelist... ]
  112. SYNOPSIS: cat is used to display the named text files (use 'od' to display
  113. binary files).  If an output redirection is specified, cat can be used to
  114. combine (concatenate) multiple files (ex. cat file1 file2 >file3 combines
  115. file1 and file2 and writes the result to file3).  If no input file is specified
  116. (i.e. cat >file1), cat can be used as simple line editor (it will create file1
  117. and take its contents from the standard input. (CTRL-D to quit))
  118. NOTE:  cat is a command external to the shell (i.e. a separate program that
  119. must be loaded by the shell), and for this reason it is suggested that 'more'
  120. should be used for displaying one or more files.  See MORE.
  121.  
  122. +CD
  123. USAGE: % cd [ dir ]
  124. SYNOPSIS:  Change the shell's working directory to directory dir.  The
  125. following have special meaning to cd:
  126.   'cd {$de}'  or 'cd' changes to your home directory.
  127.   'cd /'  changes to the root directory
  128.   'cd .'  changes to the current directory (useless, but compatible).
  129.   'cd ..' changes to the current directory's parent (go up 1 dir)
  130.  
  131. +CDN
  132. USAGE: % cdn (current device) (new device)
  133. SYNOPSIS: Change the current drive's device number to the specified number.
  134. This command physically changes the drive's number, but this new device
  135. number is overridden when commands such as DU perform a drive reset to check
  136. the disk device type.  Unix normally expects hard-wired device numbers.  See
  137. DEV.
  138.  
  139. +CHDIR
  140. USAGE: % chdir [ dir ]
  141. SYNOPSIS: CHDIR is identical to the CD command.  See CD.
  142.  
  143. +CHMOD
  144. USAGE: % chmod [ p1 ] [ p2 ] [ filename ]
  145. SYNOPSIS:  Change the permissions mode of a file.  p1 are the permissions for
  146. the owner of the file, and p2 are the permissions for the world (other users).
  147. The permissions field may be either r (read only), w (write only), rw (read
  148. and write), or - (no permission granted).  chmod takes a single filename as an
  149. argument.  Unix 128 v3.10 provides a minimal amount of file security- although
  150. a file might be unreadable under Unix, it can easily be read directly off the
  151. diskette.  NOTE:  protections are ignored for users with 'super-user'
  152. privelege.  Give out this privelege level carefully.
  153.  
  154. +CLEAR
  155. USAGE: % clear
  156. SYNOPSIS: Clears the video display screen.
  157.  
  158. +CMP
  159. USAGE: % cmp (-t or -b) [ file1 ] [ file2 ]
  160. SYNOPSIS: Read two files and show the differences between them line by line.
  161. The optional -t specifies a text comparision, and -b specifies a binary
  162. (byte by byte) comparision.  -t is the default.
  163.  
  164. +COLOR
  165. USAGE: % color [ character color ] [ background color ]
  166. SYNOPSIS:  Set the character and background color.  Color must be between 1
  167. and 16.
  168.  
  169. +COMMANDS
  170. USAGE: % commands
  171. SYNOPSIS: Show the commands supported by this version of Unix 128.
  172.  
  173. +COMPRESS
  174. USAGE: % compress ( -v ) [ filelist... ]
  175. SYNOPSIS: Apply run-length encoding to the named files.  This serves to
  176. decrease the amount of space needed to store a file, assuming there is a
  177. significant amount of redundancy in the file.  The -v option turns on verbose
  178. mode, which tells how much compression (as a function of the file's original
  179. size) was achieved.  See UNCOMPRESS and ZCAT.
  180.  
  181. +CP
  182. USAGE: % cp (-i) [ filelist... ]   or  % cp -F
  183. SYNOPSIS: CP is the copy command.  -i (interactive), if specified, will cause
  184. cp to give a prompt before overwriting files.  cp can perform one of four
  185. functions:
  186.    cp dir1 dir2              copies all of directory dir1 to dir2
  187.    cp filelist... dirname    copies the files named to the named directory
  188.    cp file1 file2            make a copy of file1 called file2
  189.    cp -F                     copy the whole filesystem using two drives.  This
  190.                              requires that the filesystem is up-to-date
  191.                              (% fsck first).
  192.  
  193. +DATE
  194. USAGE: % date   or  % date [ yymmddhhmmss ]
  195. SYNOPSIS: Show the current date and time.   When the 'yymmddhhmmss' is given,
  196. DATE will set the date (year-month-day) and the time (hour-minute-second).
  197. Ex.: date 890408030250 will set the date to 04-08-89 and the time to 3:02:50.
  198.  
  199. +DC
  200. USAGE: % dc (expr)
  201. SYNOPSIS: Desktop calculator.  This is a reverse polish notation engine similar
  202. to the Unix dc, with a standard (infix) notation interface similar to 'bc.'
  203. If no expression is given, dc is entered in interactive mode and the dc> prompt
  204. is given (type '?' for help.)  If an expression is given, dc will evaluate that
  205. expression and return the solution to the standard output (% dc 3*2 will
  206. print '6') and return to the shell.  To exit interactive mode, type 'exit'.
  207.  
  208. +DD
  209. USAGE: % dd (convtype) [ (IF=)file1 ] [ (OF=)file2 ]
  210. SYNOPSIS: Reads the input file, converts text characters according to the
  211. convtype, and copies to the output file.  The valid (convtype)s are: 
  212.    -lcase (-l)     converts the input file to lower case
  213.    -ucase (-u)     converts the input file to upper case
  214.    -scase (-s)     swaps cases (Hello -> hELLO)
  215.  
  216. +DELETE
  217. USAGE: % delete [ file ] [ dir ]
  218. SYNOPSIS: Delete a file from a specified directory, but not from the diskette.
  219. Performing 'fsck' will replace any files removed by delete.
  220.  
  221. +DEROFF
  222. USAGE: % deroff [ file ]
  223. SYNOPSIS:  deroff removes the nroff formatting constructs from nroff source
  224. files.  It removes any \nn macros, and any line beginning with a period (.).
  225. deroff writes the file with the extension '.txt' (example- file.txt).
  226. See NROFF.
  227.  
  228. +DEV
  229. USAGE: % dev
  230. SYNOPSIS: Change the devices associated with input/output.  You can alter:
  231. -input device: Usually 0, the keyboard- where any input comes from.
  232. -output device:  Usually 3, the console screen- where output is printed.
  233. This does not alter hardware device numbers (see CDN), but is used to redirect
  234. i/o.  See also EXT.
  235.  
  236. +DF
  237. USAGE: % df
  238. SYNOPSIS: Display free and used disk space.
  239.  
  240. +DIFF
  241. USAGE: % diff (-t or -b) [ file1 ]  [ file2 ]
  242. SYNOPSIS:  Show the differences between two files.  -t specifies a text
  243. comparision, and -b specifies a binary comparision.  -t is the default.
  244.  
  245. +DIR
  246. USAGE: % dir ( n )
  247. SYNOPSIS: DIR will show the CBM disk directory, as if the 'directory' or
  248. 'catalog' commands were issued from BASIC.  Optionally, the device number 
  249. n (n=8-30) may be specified.  The first device in the path is the default.
  250.  
  251. +DOS
  252. USAGE: % dos
  253. SYNOPSIS: Enter the DOS shell emulator.  This is a command interpreter only; it
  254. cannot read nor execute MS-DOS files.
  255.  
  256. +DU
  257. USAGE: % du
  258. SYNOPSIS: Show current disk usage statistics and information about the current
  259. disk device.
  260.  
  261. +ECHO
  262. USAGE: % echo [ list ]
  263. SYNOPSIS:  The words in list are written to the shell's standard output,
  264. separated by SPACE characters.  Echo is useful in scripts.
  265.  
  266. +EMACS
  267. USAGE: % emacs ( filename )
  268. SYNOPSIS: Enter the advanced text editor.  CTRL-h will list the features of
  269. this watered-down version of the mainframe emacs text editor.  If a filename is
  270. given, emacs will attempt to load that file into memory.  See the 'intro'
  271. document for more information.
  272.  
  273. +ERROR
  274. USAGE: % error [ n ]
  275. SYNOPSIS: Returns information about a specified error number, both as a DOS
  276. error and a CPU error.
  277.  
  278. +EXT
  279. USAGE: % ext
  280. SYNOPSIS: Set Unix to run as a multi-user system, using the modem as the input/
  281. output device.  The 'login:' security system is used.  *Please* note that this
  282. system is largely untested and probably buggy :).
  283.  
  284. +FILE
  285. USAGE: % file [ filename ]
  286. SYNOPSIS: Show the file type (Prg, Seq, Dir, Usr, or Rel) of a file.
  287.  
  288. +FIND
  289. USAGE: % find [ file ]
  290. SYNOPSIS: Searches the disk for file and shows the correct directory path
  291. (/.../file) to that file.
  292.  
  293. +FLUSH
  294. USAGE: % flush
  295. SYNOPSIS: FLUSH will send the remaining output from a background print to the
  296. printer without wait (makes the printing the first priority).  See LPRM.
  297.  
  298. +FMT
  299. USAGE: % fmt [ filelist... ]
  300. SYNOPSIS: Display a text file on the standard output.  See cat.
  301.  
  302. +FOOT
  303. USAGE: % foot -[n] [ filelist... ]
  304. SYNOPSIS: Display the last n lines of the specified files.
  305.  
  306. +FSCK
  307. USAGE: % fsck ( device )
  308. SYNOPSIS:  fsck stands for filesystem consistency check- it copies the disk
  309. directory to the root directory (minus files that exist in subdirectories), and
  310. then checks all the subdirectories for files that no longer exist on the disk.
  311. If the disk drive device number isn't specified, the first drive in the path
  312. is used.
  313.  
  314. +FTP
  315. USAGE: % ftp (number)  or  ftp -server
  316. SYNOPSIS:  ftp is used for inter-site file transfers between two Unix 128
  317. systems.  There are two modes:
  318. 1.  ftp (number) enters the remote terminal mode.  If a phone number is given,
  319.     ftp will dial it and attempt to connect.
  320. 2.  ftp -s enters server mode, which will allow others to dial your system.
  321. See the 'Introduction to ftp' section of 'intro' for more information.  Also,
  322. you can type '?' for help while using ftp.
  323.  
  324. +GREP
  325. USAGE: % grep (-vin) [ pattern ] [ filelist... ]
  326. SYNOPSIS: Search a file(s) for a string pattern.  The options are:
  327. -v  invert the search and show only lines that don't match
  328. -i  ignore the case of letters (i.e.  uppercase=lowercase)
  329. -n  precede each line with its relative line number in the file
  330.  
  331. +HEAD
  332. USAGE: % head [ -n ] [ filelist... ]
  333. SYNOPSIS: Display the first n lines of the specified files.
  334.  
  335. +HISTORY
  336. USAGE: % history [ -r ] [ n ]
  337. SYNOPSIS:  Display the history list; if n is given, display only the n most
  338. recent events.   -r reverses the order of printout to be most recent first
  339. rather than oldest first.  NOTE:  UPCURSOR/DOWNCURSOR will step through the
  340. complete history list, allowing recall and modification of old commands.
  341.  
  342. +HGREP
  343. USAGE: % hgrep [ pattern ] [ file ]
  344. SYNOPSIS: Search file for a string pattern.  HGREP displays the file as it
  345. searches, and highlights in reverse video the patterns found.
  346.  
  347. +IOSTAT
  348. USAGE: % iostat
  349. SYNOPSIS: Show the disk error channel.
  350.  
  351. +JOBS
  352. USAGE: % jobs
  353. SYNOPSIS: Show the background jobs running.
  354.  
  355. +KILL
  356. USAGE: % kill ( %n )
  357. SYNOPSIS: Kill process n.  KILL alone stops the current process.  Use in
  358. conjunction with PS.  kill %1 (the login) will generally log you off the
  359. system.  See PS.
  360.  
  361. +LEAVE
  362. USAGE: % leave
  363. SYNOPSIS: Set the alarm clock.
  364.  
  365. +LN
  366. USAGE: % ln [ directory ] [ linkname ]
  367. SYNOPSIS: ln creates a soft symbolic link to a directory.  An example of a
  368. symbolic link is the directory entry "..", which is a link to the parent of
  369. the current directory.  Links appear in the directory as '(l) link dir' or
  370. 'link dir@' depending on the ls options.  Links may be used with 'cd', but
  371. not as a link to files.
  372.  
  373. +LOCK
  374. USAGE: % lock [ filelist... ]
  375. SYNOPSIS: Lock one or more files to prevent accidental erasure.  Locked files
  376. appear in CBM directories with a < following their filetype (example: PRG< ).
  377. See UNLOCK.
  378.  
  379. +LOGOUT
  380. USAGE: % logout  or  % logoff  or  CTRL-D
  381. SYNOPSIS: Terminate a login shell.  If Unix is running as a multi-user system,
  382. control will return to the 'login:' prompt.  Otherwise, control will return to
  383. BASIC.  If you log out prematurely and wish to restart the program, type
  384. 'RUN "REBOOT"' from BASIC.
  385.  
  386. +LPQ
  387. USAGE: % lpq
  388. SYNOPSIS:  Show the files queued for background printing.
  389.  
  390. +LPR
  391. USAGE: % lpr (-n) [ filelist... ] (&)
  392. SYNOPSIS: Print a file, optionally specifying the width at which to print (n).
  393. If the trailing & is included, the file will be printed in the background when
  394. the system is idle.  Note:  Files printed in the background can be queued, but
  395. files printed in the foreground cannot.  See FLUSH, LPRM, LPQ, RESTART.
  396.  
  397. +LPRM
  398. USAGE: % lprm
  399. SYNOPSIS: Dump the printer queue (stop background printing), without printing
  400. the rest of the current job.  See FLUSH, RESTART.
  401.  
  402. +LPTEST
  403. USAGE: % lptest
  404. SYNOPSIS:  Prints a standard ASCII ripple pattern to the standard output device
  405. (so to actually test the printer, do lptest{SHIFT-POUND}lpr)
  406.  
  407. +LS
  408. USAGE: % ls ( -adfFlosr ) ( dir )
  409. SYNOPSIS: List the contents of the specified directory, or the current
  410. directory if none is specified.  The qualifiers are:
  411. -a  Show all files (normally files starting with '.' are not shown)
  412. -d  Show directories only
  413. -f  Show files only
  414. -s  Show size of files in Kb.
  415. -F  Mark directories with a trailing slash (/), program files with a trailing
  416.     asterisk (*), and symbolic links with a trailing at-sign (@).
  417. -l  Print in long form (filetype  permissions  owner  filename  size(bytes))
  418. -o  Order (alphabetically sort) the directory
  419. -r  Show all directories on the filesystem (must be the last option specified.)
  420.  
  421. +MAIL
  422. USAGE: % mail  or % mail [ username ]
  423. SYNOPSIS: Enters the mail utility, mainly for use under the multi-user system.
  424. If a username is specified, 'mail' will prompt for a message to send to that
  425. user.  If no argument is given, mail allows you to read the mail in your .mbox
  426. interactively.  The features of the mailer can be listed by typing '?' at the
  427. mailer prompt (&).
  428.  
  429. +MAN
  430. USAGE: % man (-k) [ command name ]
  431. SYNOPSIS: Show the manual entry for a given command.  The -k option allows
  432. keyword searching of the entire manual, and will report the command name and
  433. line on which the keyword match occurred.  See BROWSE.
  434.  
  435. Manual entries:
  436.      USAGE:  This is what you type at the shell prompt (%).  Of course, you
  437. don't type the '%'.  Anything in [ brackets ] is a required parameter, and
  438. anything in ( parentheses ) is an optional parameter.
  439.      SYNOPSIS:  This explains (succinctly) what the command accomplishes, and
  440. refers you to related commands (such as See foo).
  441.  
  442. +MAZE
  443. USAGE: % maze (maze length)
  444. SYNOPSIS:  maze will draw an 80 column wide maze on the standard output.  The
  445. default length is 10, but can be as large as 39.
  446.  
  447. +MENU
  448. USAGE: % menu  or  [ALT] key   or joystick/mouse button
  449. SYNOPSIS:  Invokes the user-definable menu.  In the .login you may include up
  450. to 15 lines describing menu operations.  The .login syntax is 
  451. 'menu titlestring\command\command2...' where titlestring is the <16 character
  452. line that appears in the menu, followed by a backslash and the command or
  453. commands (separated by more backslashes) to invoke.  For example, to clear the
  454. screen and show the error channel:  menu --do me--\clear\iostat.  To exit
  455. without doing anything, use the command 'nop' (ex: menu --Quit--\nop).  You can
  456. use the cursor keys and RETURN, or a joystick to cycle through and select menu
  457. items.
  458.  
  459. +MKDIR
  460. USAGE: % mkdir [ dir ]
  461. SYNOPSIS: Create a new subdirectory called 'dirname', whose parent is the
  462. current directory.  See rmdir.
  463.  
  464. +MORE
  465. USAGE: % more [ filelist... ]
  466. SYNOPSIS: Page through a text file one screenfull at a time.  At the --MORE--
  467. prompt, 'q' will quit, and [SPACE] will continue.
  468.  
  469. +MV
  470. USAGE: % mv [ file1 ]   ( [ file2 ]  or  [ dir ] )
  471. SYNOPSIS: If given two valid filenames, mv will rename file1 to file2.  If the
  472. second parameter is a directory, mv will delete file1 from the current
  473. directory and move it into the named directory.
  474.  
  475.