LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon
User Name
Password
Sabayon This forum is for the discussion of Sabayon Linux.

Notices



Reply
 
Search this Thread
Old 02-20-2011, 03:22 PM   #1
pranuttarwar
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, 04:01 PM   #2
fordeck
Member
 
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.

Regards,

Fordeck

Last edited by fordeck; 02-20-2011 at 04:03 PM.
 
1 members found this post helpful.
Old 02-21-2011, 08:17 AM   #3
pranuttarwar
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, 08:43 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
E.G.:
grep "alias md='mkdir -p'" /etc/* 2>/dev/null
 
  


Reply


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 10:45 AM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 01:17 PM
Find path from file alias an_sush Linux - Newbie 2 02-12-2009 07:15 AM
Question about configuring an alias file dave247 Debian 13 09-24-2008 04:14 PM
alias file not working Michele Linux - Newbie 13 08-11-2003 08:06 PM


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

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