LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2005, 03:28 PM   #1
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Rep: Reputation: 30
permanant aliases


Hi,

I am trying to get some aliases to stick. I am running SuSE 9.1 pro. My default shell is bash. I don't have a .bashrc in my home directory. I also heard that there should be a profile.local in the /etc directory but I don't have one of those either.

Also what type of syntax would I write the entries in? is just alias aliasname=command or do I need to do some scripting.

thanks,
-me
 
Old 01-06-2005, 03:39 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Does anything in your home directory start with .bash say .bash_profile?

The line you want to add would look like:

alias ll='ls -l'
 
Old 01-06-2005, 03:44 PM   #3
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
.bash_history

(Embarrased) I found a .bashrc (was looking at a different system). so I just drop those lines at the bottom of the .bashrc file and log out?

thanks again

-Me
 
Old 01-06-2005, 04:19 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Yep logout and back in and they'll work.
 
Old 01-06-2005, 04:30 PM   #5
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
Thanks it worked,,,

So how would I make this availbe to all users?
 
Old 01-06-2005, 04:39 PM   #6
Charalambos
Member
 
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
It depends on your distro.
On debian e.g. this would be /etc/bash.bashrc

Check in your /etc dir for a file similar to that one.
 
  


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
aliases in C++ djgerbavore Programming 6 03-16-2005 09:35 PM
using aliases after doing su? NonSumPisces Linux - Newbie 2 08-15-2004 03:19 PM
permanant interactive mode stand Linux - General 1 04-19-2004 06:21 AM
aliases depaul Linux - Software 23 07-30-2003 07:49 PM
what aliases do you use most? m0rl0ck Linux - General 17 02-12-2003 02:25 AM


All times are GMT -5. The time now is 06:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration