NERSP UNIX Quick Reference Command Summary

This is a summary of UNIX commands and 3 applications: 
Pine (mail), Pico (word processor) and Pilot (file management).
Please note UNIX commands are case-sensitive!
Press the control key and the accompanying letter, e.g. K, to get: ^K.
Keys are in {} brackets: {RETURN}. 
Commas separate commands/keystrokes: pico .forward, q43356@afn.org, ^X, Y. 
Press {RETURN} after all commands below.
Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages |

NERSP UNIX ACCESS & EXIT

telnet nersp.nerdc.ufl.edu ............Telnet to NERSP Node 15, default.
whoami.................................Display your userid
register ..............................Register a new userID, respond to
                                       password promts.
telnet grove.circa.ufl.edu ............Telnet to grove
pine...................................Start your mailbox default Version 4.
who -u.................................Display users (long)
who -q OR users........................Display users (short)
bal....................................Display funding balance
date...................................Display day, date and time
time cat .profile......................Execute text display of .profile 
                                         & CPU cycles needed to run
                                         cat .profile
passwd.................................Change password: Prompt 1 requests
                                       current password; next 2 request
                                       the new password.
logout OR ^d...........................Exit session

Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

COMMAND PROMPT UNIX COMMANDS

man ls.................................Help screen for UNIX ls command
ls -la ................................List all files in subdirectory.
ls -la job.............................List all files with filename of 'job'
ls -la c*..............................List all files beginning with a 'c'
ls -la *.txt...........................List all files ending in '.txt'
ls -la |more...........................Display contents of file system a 
jobs ..................................Display all running jobs.
fg ....................................Activate 1st running job.
Cntl C ................................Cancel current running job.

touch job1.............................Create a file named 'job1'
mv job job2............................Rename file 'job' to 'job2'
cp job2 job3...........................Copy file 'job2' to 'job3'
find ./ file1.htm .....................Find the file named file1.htm
                                       in the current directory or any
                                       directory under the current.
rm job2................................Delete file 'job2'
cd.....................................Return to your home directory
cd ..   ...............................Return to the directory above 
                                         current directory
Press Up Arrow.........................Recall prior command (in stack)
Press Down Arrow.......................Recall next command (in stack)

more job...............................Display 'job' a page at a time
cat job................................Display 'job' without stopping
chmod..................................Change file permissions
chmod -go -r txt.......................Change permission so only you can
                                         can read/write job.txt
chown owner:group jobs.txt.............Change ownership to owner and 
                                         group to group for the file 
                                         'jobs.txt' 
mkdir ongoing..........................Create the directory 'ongoing'
rm ongoing.............................Delete file 'ongoing'
rm -r ongoing..........................Delete the directory 'ongoing' &
                                         files in the directory 'ongoing'
mkdir ~/public_html....................Create PUBLIC_HTML for Web pages.
chmod -R a+rX ~/public_html............Give all access to your Web pages.

rm job2.txt............................Delete file 'job2.txt'
pwd....................................Display present working directory 
lpr job................................Print 'job' at default printer
set....................................Display local environment variables
clear..................................Clear/refresh screen
mail f4220ad@nersp.nerdc.ufl.edu.......Invoke pine pre-addressed to f4220ad
lynx...................................Invoke text-based web browser on NERSP
lynx,{down arrow}......................Invoke UF's phone directory (ph)
ph joe smith...........................Locate UF student/faculty info on 
                                         all 'joe smith' in database
ph smith...............................Locate UF student/faculty info on 
                                         all 'smith' first or last names
mesg y.................................Allows you to receive talk sessions
talk userid@nersp.nerdc.ufl.edu........Request talk session with userid 
                                       other user must type 'mesg y' prior
                                       to receive; Ctrl+C to end session
jobs...................................Display status of user jobs in shell
ps.....................................Display current process status
ps -f..................................CPU cycles
df -P -k...............................Display file system in KB and the
                                        used/unused percentages
PS1='\u:\w >'..........................Changes prompt to include
                                        userid and the current working
                                        ending with >
PS1='\u@\h:\w $'.......................Changes prompt to include
                                        userid, computer name and current 
                                        working directory ending with $
pico .forward, q43356@afn.org, ^X, Y...Forwards mail from current userid to
                                       new e-mail address at q43356@afn.org;
                                       'rm .forward' when ready to stop 
                                       forwarding mail to q43356@afn.org
des -E fnam.ext fnam.encryp............Encrypt file fname.ext with the
                                       password that will be prompted 2
                                       times after pressing the Enter key.
des -D fnam.excryp fnam.ext............Unencrypt file fnam.excrip with the
                                       password used to encript it.  That
                                       password is REQUIRED.  The terms
                                       "des", "-E", and "-D" must be used;
                                       fnam, ext, and encryp are variables.
                                       See "des help" for details.

File transfers from the Command Line

man ftp................................Help file for ftp
ftp f4220bc@nersp.nerdc.ufl.edu........Open FTP session with f4220bc's file 
                                         system on nersp host 
  ?....................................Displays ftp help screen
  binary OR image......................Switches to binary mode
  ascii................................Switches to ascii mode 
  get job99.txt........................Download 'job99.txt' from f4220bc
  put job.txt..........................Upload 'job.txt' to f4220bc
  cd public............................Changes directory to public (must
                                         enter cd command for each directory)
  bye..................................Exit ftp session
Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top of Summary

WORD PROCESSOR (Pico) & COMMANDS

Type 'pico' and press (return) for new file.  From the Pico main menu, use 
the up and down keys or press the designated letter mnemonic shown below:

pico...................................Start Pico with no file contents
pico job...............................Start Pico with 'job' contents
pico +5 job............................Start Pico with 'job' with cursor 
                                         on 5th line

              -----------------NAVIGATION-----------------
^Y............Back one screen          ^V..............Forward one screen
^P............Previous line            ^N..............Next line
^A............Start of current line    ^E..............End of current line

              --------LINE EDITING/SESSION CONTROL--------
^^ (control+shift+carat).............. Start Block text.  Cursor up or down 
                                       to complete block text
^K............Cut selected text       ^U...............Paste selected text
^C............Cursor @ current line   ^G...............Help
^T............spell-check             ^R...............Insert file @ cursor
^O............Save, Don't end session ^X,Y.............Save, end session
^X,N..........Don't save, end session ^D...............Delete character 
                                                         under cursor

Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

MAIL & ADDRESS BOOK (Pine)

From the command line type 'pine' and press (return)  From the Pine main 
menu, use the up and down keys or press the letter mnemonic
 (case-insensitive) shown below:

C......................................Start an e-mail message
A,A....................................Create a new address 
A,E....................................Edit existing address nicknames
L,{RETURN}{RETURN}.....................Read incoming messages
Q......................................Quit Pine
man pico...............................Pico's manual & features

Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

UserID & Password Secured Files


Make the file in your NERSP user root where you will store userID and password sets that will be able to access your secured subdirectory.  You are in that root when the prompt includes

            userid:~_

where userid is your NERSP userID.   The "_" stands for your chosen prompt.  That file to hold the userID/password sets is created buy entering,

            htpasswd -c /u/userid/secpws user1

where userID is your userID, where "secpws" is the name of the file you choose to hold the userID/password sets and where "user1" is a userID you choose to be stored in "secpws".  You will be prompted for a password and then to confirm it.   To add a second userID/password set enter

            htpasswd /u/userid/secpws user2

and so on for user3, user4, ... userN.   In each case you will be prompted to enter a password twice. Then, change the access permissions for secpws by entering the following two commands.

            chmod a+r secpws
            chmod g-w secpws

See if you have an existing public_html subdirectory by entering

            ls -al

Create public_html under your root if it does not exist as follows.

            mkdir public_html

Change to your public_html subdirectory by entering the command

            cd public_html

Next, create a subdirectory to in public_html hold the secured files.

            mkdir sfiles

Enter the command to list all the files and subdirectories under public_html.

            ls -al

Change the permissions shown at the left by entering

            chmod go+r sfiles

Next, enter ls -al again to see if the permissions are

            drwxr-sr-x ... sfiles

Change to the sfiles subdirectory next by entering

            cd sfiles

You must now create an access file in the sfiles subdirectory named .htaccess by entering,

            pico .htaccess

Details on the PICO editor can be found in Chapter xx of UFCNS Document Number D0170 (type D0170 in the field and click on "Get It").   Type in the following file using your chosen names for "userid", "secpws", and "Your Title". &nbsdp; The first line is a comment:

# UserID/password restriction file:
AuthUserFile /u/userid/secpws
AuthName "Your Title Secured Files"
AuthType Basic
require valid-user

After this is typed in, save it by pressing Ctrl with the letter "O" and respond by pressing Enter at the prompt.   Next, enter Ctrl with X at the prompt.   You will see someting similar to

            userid:~/public_html/sfiles_

as a prompt. Next, change the .htaccess file permissions by entering two two commands

            chmod a+r .htaccess
            chmod g-w .htaccess

Next, enter the list all command, ls -al, to see the file permissions on .htaccess.   They should be

            -rw-r--r-- ... .htaccess

Any other files you include in the secured subdirectory must also have the permissions changed to -rw-r--r--.   If, for example you had placed a file named resume.htm in the secured subdirectory, you would change the permissions as follows.

            chmod a+r resume.htm
            chmod g-w resume.htm

Note that if you transfer files into the secure directory via a FTP software package from your micro, the permissions may or may not be as needed.   If you are using WS_FTP LE, a free version, the permissions will be as needed.   After FTPing files, check all file permissions by entering the command

            ls -al

Complete details on the above can be found in Chapter 25 of the UFCNS Document Number D1070.


Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

PRINTING

man lpr...................................Help file for remote printing
man ls | lpr -J ID=tevp001................Print the help documentation for
                                            the UNIX command ls on NERDC's
                                            default printer
cat job / more job........................Print 'job' on screen
cat job > job4............................Copy 'job' to 'job4'
lpr job...................................Print 'job' to default remote 
                                            printer
lpr -J ID=tevp001 jobs.txt................Print 'jobs.txt' to NERDC 
                                            default printer.  Change 
                                            'tevp001' to any printer defined 
                                            by NERDC. Coordinate with NERDC
                                            to have your IP-ready printer
                                            added.

Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

Miscellaneous Information (UF area code is 352)

955-0056....................................Dialup server @ 56 KBPS & V.90
800-217-4096................................Long distance dialup @ .10¢/Min
                                            on RACF UserID's only.
392-HELP....................................UF CIRCA help desk
392-2061....................................NERDC help desk
ufhelp@nervm.nerdc.ufl.edu..................UF CIRCA help desk email
consult@nerdc.ufl.edu.......................NERDC help desk email
userid@nersp.nerdc.ufl.edu..................Your e-mail address

imap.nersp.nerdc.ufl.edu....................IMAP server address - NERDC ID
smtp.nerdc.ufl.edu..........................SMTP server address - NERDC ID
imap.ufl.edu................................IMAP server address - Others
smtp.ufl.edu................................SMTP server address - Others
news.ufl.edu ...............................News server address - All Users
telnet luis.nerdc.ufl.edu...................Telnet to NERDC menu via
                                             TN3270 (EBCDIC) terminal 
gateway telnet nersp.nerdc.ufl.edu, ufinfo..Telnet to LUIS library
                                             services for free access to 
                                             LUIS via text-only web
                                             browser

128.227.128.24..............................Name server (currently
                                             name.ufl.edu)
LUIS (24 hrs/7 days except Sun 06-1000).....Hours of operation
NERDC (24 hrs/7 days except Sun 06-1000)....Hours of operation
Production CICS (M-F 0700 - 0300)...........Hours of operation

Access/Exit | UNIX | Pico | Pine | Secure Files | Printing | Miscellaneous | Man Pages | Top

Selected man pages

[ whoami | ftp | telnet | chmod | chown | ls | lpr | talk | print ]
Sample .profile to use in your account for enhanced features/ease of use.
Last updated by Dick Elnicki, 05 MAR 2004.