LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 03: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 03:03 PM.
 
1 members found this post helpful.
Old 02-21-2011, 07: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, 07:43 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration