Find the answer to your Linux question:
Results 1 to 5 of 5
I want to add the following as a permanent alias alias ffox=/usr/local/firefox/firefox Possibly alias ffox=/usr/local/firefox/firefox & In BASH. But I dont know which file are these kept in. Thanks....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    2

    Permanent alias


    I want to add the following as a permanent alias
    alias ffox=/usr/local/firefox/firefox
    Possibly
    alias ffox=/usr/local/firefox/firefox &

    In BASH. But I dont know which file are these kept in. Thanks.

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    You can add it to your ~/.bashrc or ~/.bash_profile. Just add the whole alias line as these files are executed (as bash scripts) on login.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Aug 2004
    Location
    Earth
    Posts
    4
    Funny, I've seen these instructions before, but I can't find a .bashrc or .bash_profile file in my home directory or anywhere else on my system. Creating a blank one and adding the instructions doesn't do anything. I wonder if those files are kept somewhere else in Slackware?

  4. #4
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    try adding the alias to /etc/profile

    that's the file that is sourced by bash whenever *anyone* logs in...
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  5. #5
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    Quote Originally Posted by paulcox
    Funny, I've seen these instructions before, but I can't find a .bashrc or .bash_profile file in my home directory or anywhere else on my system. Creating a blank one and adding the instructions doesn't do anything. I wonder if those files are kept somewhere else in Slackware?
    It's in your home directory (I'm using slackware) It is one of those files prefixed by a "." so they are "hidden"

    Post your ~/.bashrc so we can take a look at it. Maybe there's a typo.
    --monkey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •