Rick Henderson wrote:
> 
> Well, i know a little about sco.  .profile runs when a user logs in.  What
> does the same type of thing as that or profile_bash, when using an xterm.
> 
> I have a modifed PATH etc.
> 
> Another question - is the alias.  How is it set for an xterm?
Under Mdk Linux you edit a hidden file called .bashrc in your home
directory.

My .bashrc or .profile for Unix looks like this, so you can see what the
command for setting up an alias looks like.

# .bashrc

# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc


alias dir='ls -al|more'

fi


> 
Also have a look at this post I got when I was changing my own .bashrc:

Here's what to do...in command line mode, you have (or you can create) a 
file called either ".profile" or ".bashrc"--either will work I think. 
.profile is standard on ALL Unix systems so I'm just used ot it.  This 
file governs lots of things with your environment basically.  You can 
set environment variables in it etc.  Aliases are 
your "made up" commands that do something.  They can just be 
modification on existing commands or entirely new things.

For example, as a DOS user if you wanted a "dir" command to do basically 
the same thing as "ls -al", you'd put the following line in your
.profile--

alias dir='ls -al'

save it, log out of console mode, get back in and type "dir" (without 
the "s in console mode) and tada you should have what you want.

For root, I put the following in .profile--

alias rm='rm -i'

That's it.  Now when I do a "rm" command in root, I get a little confirm 
message.

HTH
-- 
======================================================================
Hylton Conacher on KDE 2.1.1
Registered Linux user # 229959 on Mandrake 8 on an AMD  1 Ghz K7
Licenced Windows user
More hardware info on request
======================================================================



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to