This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorials:starter [2022/03/04 09:06] papa [8. How does DIRECTORY and FILE PROTECTION work?] Correct file, directory permission descriptions |
tutorials:starter [2024/06/02 01:56] (current) smj [Quick and Dirty Comparisons] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== TOPS-20 Starter Guide for UNIX users ====== | ||
+ | |||
+ | //[Adapted from file %%TOPS20:< | ||
+ | |||
+ | Its important to know these basics before continuing: | ||
+ | |||
+ | | %%^S%% | CTRL-S | pause ouput | | ||
+ | | %%^Q%% | CTRL-Q | unpause output <- **NOTE THIS IF YOUR SCREEN IS PAUSED!** | | ||
+ | | %%^O%% | CTRL-O | ignore output | | ||
+ | | %%^U%% | CTRL-U | clear input | | ||
+ | | %%^C%% | CTRL-C | quits a job | | ||
+ | | %%^F%% | CTRL-F | completion (try <ESC> too) | | ||
+ | | %%^T%% | CTRL-T | Job Status | | ||
+ | | %%^\%% | CTRL-\ | When running ' | ||
+ | |||
+ | This document is written assuming that the reader has a basic | ||
+ | understanding of the UNIX system. | ||
+ | necessary to have any system background when learning TOPS-20. | ||
+ | This is also not meant as an all in one document either. | ||
+ | |||
+ | TOPS-20 is a multiuser operating system designed specifically | ||
+ | for the 36bit DEC PDP-10 (DECSYSTEM-20) mainframe computer. | ||
+ | |||
+ | The USER level is called EXEC (similar to the UNIX ' | ||
+ | Above that is ENABLE, but we will just talk about the USER | ||
+ | level in this document. | ||
+ | |||
+ | EXEC is interactive, | ||
+ | an earlier EXEC in TENEX/The TOPS-10 operating system, | ||
+ | (hence, tcsh is called TENEX C Shell). | ||
+ | broken in the most important ways: | ||
+ | |||
+ | EXEC has command completion via <ESC> or ^F | ||
+ | EXEC has command recognition - use ? to have EXEC tell you mapped completions) | ||
+ | |||
+ | CMD JSYS, the interactive bit of the MONITOR (' | ||
+ | supports real job control. | ||
+ | any JOB or TTY you choose. | ||
+ | between EXEC levels. | ||
+ | |||
+ | Typically, when TOPS-20 is spewing output to your screen it | ||
+ | will send an XOFF to your TTY (pause) when you are ready | ||
+ | to continue type ^Q. If you don't care about the output | ||
+ | and want your job to continue without your interaction, | ||
+ | just hit ^O. You can also ^C or ^Z to quit or exit a | ||
+ | program or job. | ||
+ | |||
+ | TOPS-20 supports a hierarchical filesystem. | ||
+ | storage) is the system' | ||
+ | Directory paths are separated by ' | ||
+ | your LOGIN was ' | ||
+ | |||
+ | PS:< | ||
+ | |||
+ | Say there was a subdirectory within your home directory | ||
+ | called LISP: | ||
+ | |||
+ | PS:< | ||
+ | |||
+ | TOPS-20' | ||
+ | supporting two level file deletion. | ||
+ | that UNIX seriously lacks. | ||
+ | three components: | ||
+ | |||
+ | FILENAME.EXTENTION.VERSION | ||
+ | |||
+ | The Wildcard * can be used for instance: | ||
+ | |||
+ | @directory PS:< | ||
+ | |||
+ | Would list ALL files in that directory, if you only gave | ||
+ | a *.*, then the current generation of ALL files would be | ||
+ | listed. | ||
+ | |||
+ | ===== Quick and Dirty Comparisons ===== | ||
+ | |||
+ | ^ UNIX ^ TOPS-20 ^ | ||
+ | | talk | TALK | | ||
+ | | mesg n | REFUSE LINKS | | ||
+ | | mesg y | RECEIVE LINKS | | ||
+ | | ls | DIRECTORY | | ||
+ | | ls -la | VDIRECTORY | | ||
+ | | cat | TYPE | | ||
+ | | rm | DELETE (EXPUNGE) | | ||
+ | | mkdir | BUILD | | ||
+ | | rmdir | BUILD | | ||
+ | | who | SYSTAT | | ||
+ | | ps | SYSTAT | | ||
+ | | passwd | SET DIRECTORY PASSWORD | | ||
+ | | chmod | SET DIRECTORY PROTECTION \\ SET FILE PROTECTION | | ||
+ | | man | HELP | | ||
+ | | .profile | LOGIN.CMD | | ||
+ | | .plan | FINGER.PLAN | | ||
+ | | send | SEND | | ||
+ | | mail (sending) | SEND | | ||
+ | | mail (reading) | MM | | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `ls` | List directory contents | ||
+ | | `cd` | Change directory | ||
+ | | `cp` | Copy files and directories | ||
+ | | `mv` | Move/rename files and directories | ||
+ | | `rm` | Remove files or directories | ||
+ | | `mkdir` | ||
+ | | `rmdir` | ||
+ | | `pwd` | Print working directory | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `cat` | Concatenate and display files | `TYPE` | ||
+ | | `more` | ||
+ | | `less` | ||
+ | | `vi` or `vim` | Text editor | ||
+ | | `nano` | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `df` | Report file system disk space usage | `INFO DISK-USAGE` | ||
+ | | `du` | Disk usage of files and directories | ||
+ | | `mount` | ||
+ | | `umount` | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `ps` | Report a snapshot of current processes | ||
+ | | `top` | Display tasks | `INFO JOBS` | Display information about jobs | | ||
+ | | `kill` | ||
+ | | `bg` | Run a job in the background | ||
+ | | `fg` | Bring a job to the foreground | ||
+ | | `jobs` | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `uname` | ||
+ | | `hostname` | ||
+ | | `uptime` | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `ping` | ||
+ | | `ssh` | OpenSSH SSH client | ||
+ | | `ftp` | File Transfer Protocol client | ||
+ | | `netstat` | ||
+ | |||
+ | ^ **Linux Command** ^ **Description** | ||
+ | | `who` | Show who is logged on | `WHO` | Show who is logged on | | ||
+ | | `passwd` | ||
+ | | `su` | Substitute user | `LOGIN` | ||
+ | |||
+ | |||
+ | ===== Questions and Answers ===== | ||
+ | |||
+ | ==== 0. How do I connect and LOGIN? ==== | ||
+ | |||
+ | ssh twenex@sdf.org | ||
+ | |||
+ | | ||
+ | |||
+ | ==== 1. How do I set my password after logging in? ==== | ||
+ | |||
+ | |||
+ | @SET DIRECTORY PASSWORD < | ||
+ | |||
+ | ==== 2. Does it have to be UPPERCASE? ==== | ||
+ | |||
+ | No. TOPS-20 assumes you are using a printing TTY when you connect via the DZ11 terminal server. | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | ==== 3. How do I get more HELP? ==== | ||
+ | |||
+ | Read this file again. | ||
+ | |||
+ | ==== 4. What editors are available for TOPS-20 ==== | ||
+ | |||
+ | Lots! Currently we have SED, EDIT10 and TV (video TECO). I will add EMACS, TECO and vi when I can. | ||
+ | |||
+ | ==== 5. How do I access EXEC command history or edit previous commands? ==== | ||
+ | |||
+ | EXEC command history/ | ||
+ | |||
+ | SET HISTORY 100 | ||
+ | ;then set your favorite editor | ||
+ | SET COMMAND-EDITOR EDIT EMACS | ||
+ | SET COMMAND-EDITOR ENTER CONTROL " | ||
+ | |||
+ | You can put these SET commands in your LOGIN.CMD and in most cases (on TWENEX.ORG) this is included in your default LOGIN.CMD | ||
+ | |||
+ | To access your command history, press ^P (CTRL P), you can then use EMACS keys to edit your previous commands. | ||
+ | |||
+ | To re-issue the last command issued, you can type ' | ||
+ | |||
+ | ==== 6. What GAMES are available on this system? ==== | ||
+ | |||
+ | We have many esoteric and classic games available on this system. | ||
+ | |||
+ | To get a list and a description of each game, type 'HELP GAMES' | ||
+ | |||
+ | ==== 7. How can I host a website here? ==== | ||
+ | |||
+ | //[The twenex.org TOPS-20 web server is currently not in operation. This section is left for historical interest.]// | ||
+ | |||
+ | Simply run the following command substituting your system LOGIN for ' | ||
+ | |||
+ | | ||
+ | |||
+ | Either edit your .HTML files in that directory or upload them using FTP. Your URL will be HTTP:// | ||
+ | |||
+ | ==== 8. How does DIRECTORY and FILE PROTECTION work? ==== | ||
+ | |||
+ | |||
+ | TOPS-20 allows for 18bit DIRECTORY and FILE protection settings which includes features found under 9bit UNIX ' | ||
+ | |||
+ | **For files:** | ||
+ | |||
+ | ^ OCTAL ^ PERMISSION ^ | ||
+ | | 77 | Full access | | ||
+ | | 40 | Read | | ||
+ | | 20 | Write/ | ||
+ | | 10 | Execute | | ||
+ | | 04 | Append | | ||
+ | | 02 | Find file with wildcard | | ||
+ | | 00 | Find only with complete file name; no other access | | ||
+ | |||
+ | |||
+ | **For directories: | ||
+ | |||
+ | ^ OCTAL ^ PERMISSION ^ | ||
+ | | 77 | Full access | | ||
+ | | 40 | Access existing files in directory according to their protection | | ||
+ | | 10 | Connect without password; Undelete files; Delete/ | ||
+ | | 04 | Create files | | ||
+ | | 00 | No access | | ||
+ | |||
+ | |||
+ | PROTECTIONS are grouped together in a set of 3, and correspond as: | ||
+ | |||
+ | @SET DIRECTORY PROTECTION < | ||
+ | ^ ^ ^ | ||
+ | | | \ all other users | ||
+ | | \__ users in your group | ||
+ | \____ your (owner) login | ||
+ | |||
+ | Such that, you and users in your group have full access to the directory < | ||
+ | |||
+ | If you are used to UNIX file permissions you should be immediately impressed that under TOPS-20 you can create a file that: | ||
+ | |||
+ | - Does not show up in a directory listing | ||
+ | - That is not readable even if you know its name | ||
+ | - That is appendable to all users | ||
+ | |||
+ | ==== 9. How do I access the ' | ||
+ | |||
+ | |||
+ | The TWENEX bboard is a publically accessible mail box which users of TWENEX.ORG can use to communicate with each other. | ||
+ | |||
+ | In your initial LOGIN.CMD the bboard' | ||
+ | |||
+ | **To send a message:** | ||
+ | |||
+ | Simply use 'MAIL BBOARD' | ||
+ | |||
+ | **To read a message:** | ||
+ | |||
+ | The ' | ||
+ | |||
+ | ==== 10. How can I use ' | ||
+ | |||
+ | |||
+ | In order to use these to CONVERSE with other users logged in to TWENEX.ORG, you must have ' | ||
+ | |||
+ | ' | ||
+ | |||
+ | ' | ||
+ | |||
+ | Please note that it is not consider respectable to just randomly LINK to user's TTYs. If you want to ' | ||
+ | |||
+ | If you wish to not have messages sent to your TERMINAL, type: | ||
+ | |||
+ | @TERMINAL NO RECEIVE LINKS | ||
+ | | ||
+ | ==== 11. Can I access USENET via my TOPS-20 account? ==== | ||
+ | |||
+ | Yes, the ' | ||
+ | |||