HP3000-L Archives

January 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Richard Gambrell <[log in to unmask]>
Reply To:
Date:
Thu, 1 Jan 1998 15:25:38 -0600
Content-Type:
text/plain
Parts/Attachments:
Posix (48 lines)
This is just a note to suggest some things that makes the Posix shell
easier to use for me. They may or may not be useful or helpful to you.
Old hands at Posix already know these things, so to them I apologize for
the use of bandwidth.

From the shell (sh) as manager.sys:
  1.  If you don't already have a /usr/local/bin to keep your own
programs separate from HP's, create one:
mkdir /usr/local
mkdir /usr/local/bin
chmod -R a+rx /usr/local

  2. Add /usr/local/bin to your shell PATH variable. Edit /etc/profile
or ./.profile (your personal profile). If you edit /etc/profile the
change applies to everyone who uses the shell, but you need to make a
local copy of the profile file, since it will be overwritten the next
time HP updates Posix files.
  The change should look something like:
  PATH='/bin:/usr/local/bin:.'  (if your changing /etc/profile)
  or
  PATH='$PATH:/usr/local/bin'  (if your changing your personal .profile)

  3, Create soft links to commonly used programs, like Qedit or the FTP
client, so it will run in the shell by just sayting "qed" or "ftp":

  Make running Qedit easy:
ln -s /ROBELLE/PUB/QEDIT  /usr/local/bin/qed (use qedit or whatever
command you like to use)

  Make running the FTP client easy:
ln -s /SYS/ARPA/FTP /usr/local/bin/ftp

  Then allow execute access to anyone (assuming this works for you):
chmod a+x /usr/local/bin/*

  4. Edit your .profile or /etc/.profile to add more aliases (this is
also an alternative way to refer to qedit or ftp). On HPUX, there is a
built in command "ll" that does a "ls -l" and a "lsf" that does a "ls
-F" for useful variations on directory commands. Create these by adding
the following lines to the profile file:
  alias ll="ls -l"
  alias lsf="ls -F"


Others may wish to contribute other ideas that work for them.
YMMV
Richard Gambrell

ATOM RSS1 RSS2