LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-10-2003, 10:07 PM   #1
nobu
Member
 
Registered: Jul 2002
Posts: 32

Rep: Reputation: 15
Question alias


How do I set alias permanently in slackware?
Where is the file contains aliases?
 
Old 01-10-2003, 10:53 PM   #2
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
consult the man page for your shell. for bash, i like to put them in
~/.profile

Last edited by leed_25; 01-11-2003 at 03:17 PM.
 
Old 01-11-2003, 12:04 AM   #3
krymsunmortis
Member
 
Registered: Jan 2003
Location: Fort Worth Tx
Distribution: Slackware RedHat Mandrake BackTrack
Posts: 31

Rep: Reputation: 15
Normally ,when useing bash in general, If you want to have something aliased globally for all users you put something like
alias='command goes here '
in your ~/.bashrc file .

Now the neat thing is Slackware8.1 that came with the linux format magazine seems to have for some reason no bashrc file anywhere on the machine once installed
and yes the default shell is bash.

if you do have a slackware bashrc file good luck
 
Old 01-11-2003, 02:04 AM   #4
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
You can create one if you like and bash will read it.
 
Old 01-11-2003, 08:27 AM   #5
krymsunmortis
Member
 
Registered: Jan 2003
Location: Fort Worth Tx
Distribution: Slackware RedHat Mandrake BackTrack
Posts: 31

Rep: Reputation: 15
Thanks wasn't sure if you could create one and if bash would read it proprely or not. I had already did a search online for bashrc to find some examples to try that but was going to wait and see if recompileing bash on the system would work or not.

Thanks again
 
Old 01-11-2003, 01:09 PM   #6
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
I am so sorry. I posted my earlier reply without so much as
checkink my setup --my earlier reply is shit. Here's my
~/.bash_profile:

Quote:
#!/usr/local/bin/bash
. ~/.profile
. ~/.ksh_environ
this allows me to use the same setup for bash and ksh, which I use
occasionally. The alias definitions are in ~/.ksh_environ
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
Alias ChimpFace9000 Linux - General 9 01-14-2004 04:01 AM
ip alias mindcry Linux - Networking 0 10-16-2003 07:41 PM
using alias intruptz Linux - General 5 09-17-2003 04:32 AM
alias booyah Slackware 3 05-06-2003 03:17 PM


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

Main Menu
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