Use this as a short reference for the HP Unix system at MWC.
Please remember that Unix is case sensitive. Upper case and lower case letters
are not the same.
exit or click on the exit sign
man command
If you are unsure of the exact command name use:
man -k command
env
pwd
script filename
(Continue with what you want to echo to the file.)
To terminate this echo at the $ prompt enter: exit
sync
ls, ll, or Ls -a
more filename
RETURN displays next line, q terminates display,
space bar displays next screen.
rm filename
mv currentfilename newfilename
cp source_file destination_file
cat file1 file2 ... > combo
cat sourcefile >> destinationfile
CTRL-C
( hold down the control key and press the key C)
mkdir Name_of_Directory
cd Name_of_Directory
CD ..
CD
Use rm *.* to do this; then use CD .. to move to the parent directory; then use rmdir Name_of_Directory to delete the directory itself.
A. To obtain a printout of your file use:
cat filename | lp
or spool filename
(The output will be printed on the printers in B14.)
To obtain a printout of your file including line numbers use:
cat -n filename | LP
B. To view current print buffer use:
lpstat
(Each job under your username will be listed with a
print id e.g. matrix_1023.)
C. To cancel a print job use:
cancel print id
e.g. cancel matrix_1023
(Use the printid as displayed using the lpstat command.
The printer must be online for this command to be
effective.)
1. Enter elm to the $ prompt.
2. Follow on-screen instructions to access and delete current
messages.
3. To save current message enter: s and then provide
an appropriate filename for storage. (Backspace over
any default name not desired by you.)
1. While in elm, select the M)ail option
2. You will then see an empty workspace
3. Depress the letter a to allow you to enter text
Be sure to press ENTER at the end of each line
4. Use this sequence to retain a permanent copy of the file just
created.
a. Press ESC to switch to command mode
b. Enter a colon (:). The cursor will move to the command line at
the bottom of the screen.
c. Enter wq ENTER **DO NOT APPEND A FILENAME!**
1. This may be done after pressing ESC (see 4b above)
and prior to entering :wq (see 4c above)
2. Use the vi commands as described above
A. Login to paprika
1. Select Start, Run
2. Enter Telnet paprika.mwc.edu
3. A window will open and you will be prompted for your HP-UX ID
4. Enter your HP-UX login ID and HP-UX Password
B. Exit Paprika
1. To the $ prompt, enter exit [return]
2. Connection to host is terminated
3. Close Telnet window
C. To Transfer Files Between a PC and the HP-UX System
1. Select Start, Run
2. Enter Ftp paprika.mwc.edu
3. A window will open and you will prompted for your HP-UX ID
4. Enter your HP-UX login ID and HP-UX Password
5. Enter ? to get a full list of available FTP Commands
6. Some useful commands are:
a. lcd will change the directory on the PC
b. CD will change the directory in your HP-UX Account
c. put local_file will copy "local_file" to your account
d. get file_name will copy "file_name" from your Unix Account
to your PC.
e. bye will terminate the ftp session.
Sometimes the B13 lab may be crowded. Sometimes you may want to work on your
program late at night and not feel like walking all the way over to Trinkle.
Remote access to paprika is the answer.
If you intend to use Telnet to gain remote access to the paprika system, you
must use the vi editor. It is the only
editor that functions within a remote login environment. This is one of the
reasons that it is a good idea to be able to use the vi Editor!
I recommend using an enhanced Telnet program like Teraterm Pro. This program is free and provides a cleaner interface than standard Telnet programs.
You can download this program onto your own PC from the following website:
http://software.wm.edu/win-internetnav.html
The download that you want is called "Teraterm Pro 32 bit". Just click
the link to download the file
TERMP23.EXE. Put it in a temporary directory and double click on it to unpack
the installation files.
A. TeraTerm Pro version 2.3 (32-bit) Installation Notes
Run setup from the unpacked files to start installation
Click continue with English as the desired language
Click continue on the setup note (teraterm not currently running)
Click continue to accept the default install directory
Click OK on the setup complete screen.
Double click on the icon TeraTerm Pro to run the program the first time.
The general setup window will appear. Choose TCP/IP as default port.
Click OK.
The new connection window will appear.
Type in the Internet name of the computer to which you want to Telnet
(E.g. paprika.mwc.edu)
Choose OK to connect and then log in.
To add computers to the new connection window:
choose setup
choose TCP/IP
type Internet name of computer in host name box (e.g. paprika.mwc.edu)
choose add
choose ok
that computer will then be in the list for login.
B. Using Teraterm to connect to paprika
If you are off-campus then you need to dial-in and login with your Internet
provider.
After a successful dial up and login you are ready to use Teraterm.
Using teraterm:
Double click on the program icon for TeratermPro
A login screen will appear asking for the host name. Enter: paprika.mwc.edu
A window will appear that will request your Eaglenet login and password, after
this completes, you will be
asked for your paprika login and password.
A Unix screen will appear and you're ready to work just as if you were in the
B13 lab!
C. To logout of paprika
At the Unix $ prompt type
exit [then press Enter]. The connection to host is terminated. Close the window.
D. To Transfer Files Between a PC and the HP-UX System
On your Windows machine, Select Start, Run
Enter ftp paprika.mwc.edu
A window will open and you will be prompted for your paprika user id. Enter
your user id and password.
You may enter the character ? to get a full list of available FTP Commands.
Some useful commands are:
? LCD will change the directory on the PC
? CD will change the directory in your HP-UX Account
? put local_file will copy "local_file" to your account
? get file_name will copy "file_name" from your Unix Account to your
PC.
? bye will terminate the ftp session.
E. Using MS-Word to Prepare a File For Use On Paprika
After you feel comfortable using the vi Editor, you may wish to use MS-Word
to type your initial program file.
You enter the text as you would for any other document. Paprika cannot interpret
.doc files. To save a file in a
format usable by Paprika you must use File, Save-As, Save as Type: Text Only
With Line Breaks, File Name:
"your_file_name.cpp" , then click Save. You must include the "
(quotes) otherwise the system will append .txt
which is again not appropriate for Paprika. After creating and saving your file
on your PC you can transfer it to
your Paprika account using ftp as explained previously.
You can get handouts with additional information on making remote connections
in the lab aid office (usually they
have handouts posted on the door at the beginning of the semester).