LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-18-2005, 02:56 PM   #1
SkyeFyre
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
Aliases


Hey, I'm still new to Linux and I was wondering. I use an alias to mount my windows partition quickly but I was wondering if there is a way to make the alias permanent. I guess what I'm looking for is a file or something that I can edit to make it set the alias whenever I boot up.
 
Old 03-18-2005, 03:05 PM   #2
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
You need to edit (as root) the file /etc/fstab to do this, adding a line to tell the system which partition to mount, where to mount it and what filesystem to use, among other things. Doing `man fstab` should help.
 
Old 03-18-2005, 03:06 PM   #3
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54


/etc/fstab - run "man fstab"
 
Old 03-18-2005, 03:17 PM   #4
SkyeFyre
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
Oh, because I've got that and for some reason I need to mount it each time I start up. Maybe I messed something up in there. Thanks, I thought I still had to mount things.

EDIT: But, is there a way to make permanent aliases anyways? I have a few other things I do quite often and would like an easier way of doing them.

Last edited by SkyeFyre; 03-18-2005 at 03:24 PM.
 
Old 03-18-2005, 03:28 PM   #5
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54


What do you mean with "Aliases"? Shell command aliases? You usually put these into $HOME/.bashrc or $HOME/.bash_profile depending on when you need them.
 
Old 03-18-2005, 03:35 PM   #6
SkyeFyre
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
Yeah, sorry, shell command aliases. When I boot up, I just need it to set the aliases. So lets say I login as skyefyre and load up my terminal, I just have to type my alias.
 
Old 03-18-2005, 03:45 PM   #7
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
See above.
 
Old 03-18-2005, 04:16 PM   #8
SkyeFyre
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
Where in the files do I put it?
.bashrc or .bashrc_profile
In what format?
alias thing='<command>'
or
thing='<command>'
Or are those both wrong?
 
Old 03-18-2005, 07:35 PM   #9
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
An alias goes in ~/.bashrc, in the format
alias whatever='actual_command', for example
Code:
alias ls='ls -lh --color'
If you would prefer your windows partition mounted automatically on boot (thereby saving the bother of ever having to mount it manually, either using `mount` or an aliased command) then you need to edit the file /etc/fstab as I suggested above.

Have a look at the file and its syntax by doing `less /etc/fstab` and read the results of `man fstab`. Between them you should be able to work out the details of the line you need to add.
 
  


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
where do ALIASes go? toaster.waffle Linux - General 1 05-19-2005 05:43 PM
Aliases Red Squirrel Linux - Software 2 05-10-2005 06:58 PM
aliases in C++ djgerbavore Programming 6 03-16-2005 08:35 PM
See aliases gubak Linux - Newbie 0 08-04-2004 06:13 AM
what aliases do you use most? m0rl0ck Linux - General 17 02-12-2003 01:25 AM

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

All times are GMT -5. The time now is 08:08 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