Heidi's Unix Hints


270 pages of documentation on unix at FNAL

EMAC reference card

EMAIL address for D0SGI problems - d0-admin@d0sgi9

My suggestions for EMAIL

Other programs you should know about


All those things I can never remember so I put them in a web page


H. Schellman schellman@fnal.gov
Last updated 7/19/96


Other programs you should know about




What I suggest for email

I use exmh which you can get by doing:
setup exmh
setenv DISPLAY termname:0
exmh &
Just say yes when it asks you questions the first time, the defaults are good. Then you can play with all the fun buttons and options. Try sending yourself mail and reading it before you forward your entire VMS mail structure to it.

Things to know

mh - line mode mail

exmh is the full screen version of mh. There is a big O'Reilly book about mh but all you really need to know to read your mail on a line mode terminal is:

setup mh 

After you have used mh to look at mail it is a good idea to "rescan" (More menu, first item) your inbox folder the next time you run exmh.

July 29, 1996



Making a vt100 screen pop up on your console

type:

setenv DISPLAY nodename:0 
/usr/bin/X11/xterm -ls -sb -sk -tn vt100 -n "vt100" -T "vt100" -s -j &

where nodename is the name of the machine you want the terminal to appear on.

July 19, 1996

How to tell ghostview where to print

Here is the right way to print ghostview files from unix Here is a somewhat ugly way to print ghostview files without marking/saving then printing.

July 6, 1996

Printing directly to a network printer from a unix machine

flpr -hnode -qqueue-ps filename.ps

where node: is the printer ethernet node name which is usually listed as a little white label on the box.

For example d0tce_post is d0qms6. d0tce_colorps is d0qms7.

This hint thanks to Adam Lyon and Ian Bertram

July 19, 1996

Setting up Unix so it has handy VMS features like up, down and not letting me delete a file by accident

Run the tcsh so you can recover command lines. If your account isn't set up that way (new accounts are, older ones are csh by default) you can type:
ypchpass -s /usr/local/products/shells/current/bin/tcsh

to change it permanently. Mike Diesburg warns that if you screw this up you may not be able to log in and suggests that you do this during normal working hours so that a system person can rescue you in case of error.

To test it out before you make such a commitment just type tcsh when you start your session and the arrow keys will miraculously do what you want them to.

Thanks to Pushpa Bhat and Mike Diesburg for help on tcsh setup.

Also, to make life easier you can put the following stuff into your .cshrc file

# Stuff by Rob Kennedy and Sheldon Kaufman from E665
# designed to make life less painful for vms users
#-------------------------------------------------------------------------------
#  Personal Aliases
#  Be sure your aliases do not interfere with D0 and Fermi required ones
#-------------------------------------------------------------------------------
alias  assign    ln
alias  bye       logout
alias  cancel    kill
alias  copy      cp
alias  del      '/bin/rm -i'
alias  dir      'ls -x'
alias  down      cd
alias  env       printenv
alias  help      man
alias  lo        logout
alias  move      mv
alias  pu       'rm *.bak; rm .*.bak; rm *~; rm .*~'
alias  pwd      'echo $cwd'
alias  rename    mv
# this makes rm ask for confirmation, if you don't want it, type /bin/rm
# to get the raw command
alias  rm       '/bin/rm -i'
alias  type      cat
alias  top      'cd ~'
alias  up       'cd ..'
alias  where     pwd
July 27, 1996