Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Sabayon
User Name
Sabayon This forum is for the discussion of Sabayon Linux.


  Search this Thread
Old 02-20-2011, 02:22 PM   #1
LQ Newbie
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Smile alias configuration file

how can set permanunt aliases in sabayon o. s.
Old 02-20-2011, 03:01 PM   #2
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you tried putting them in .bash_aliases or .bashrc in your users home directory? In order for them to take affect you exit logout and back in again. I don't use sabayon however this works for RedHat/Fedora and Ubuntu distros.



Last edited by fordeck; 02-20-2011 at 03:03 PM.
1 members found this post helpful.
Old 02-21-2011, 07:17 AM   #3
LQ Newbie
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
but not found /etc/aliases configuration file in sabayon
Old 02-21-2011, 07:43 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Read though your bash startup scripts (bashrc, profile, bash_login) for a line that tests for an aliases file and runs it if it exists. You can create that file if it doesn't exist. Mine looks for ~/.aliases.

If it doesn't exist, you can add alias definitions to ~/.profile or ~/.bash_login whichever your system uses.
Lately, distros have system shell startup files in /etc/profile.d/.

On my system, my aliases are defined in /etc/bash.bashrc but since this file can be replaced in an update, /etc/bash.bashrc would be used for changes instead.

You could grep files in /etc/ looking for an alias you have.
grep "alias md='mkdir -p'" /etc/* 2>/dev/null


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 configuration - www alias doesn't work phil333 Linux - Newbie 7 10-14-2009 09:45 AM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 12:17 PM
Find path from file alias an_sush Linux - Newbie 2 02-12-2009 06:15 AM
Question about configuring an alias file dave247 Debian 13 09-24-2008 03:14 PM
alias file not working Michele Linux - Newbie 13 08-11-2003 07:06 PM > Forums > Linux Forums > Linux - Distributions > Sabayon

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration