LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2003, 08:29 PM   #1
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
not smart enough to find an alias 'how-to'


Anyone know of one I might peruse. Tried man alias, info alias, I googled and repeatedly found IP alias but isn't there more to it than that? Thanks for any direction.
 
Old 04-19-2003, 08:37 PM   #2
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
man 1 bash

search for alias (ie. '\alias')

(although there's not much to 'em)
; )
 
Old 04-19-2003, 08:41 PM   #3
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
maybe instead tell us what you're trying to do. (if anything in particular)
 
Old 04-19-2003, 09:44 PM   #4
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by cuckoopint
maybe instead tell us what you're trying to do. (if anything in particular)
Actually I was wondering if I could use alias so that I could simply type 'burnw' for example and have that command execute this:
cdrecord -v speed=4 dev=0,0 -audio track*.wav

and

'burnm' = cdrecord -v dev=0,0 -audio track*mp3

After looking at /etc/aliases I'm not so sure that 'alias' does what I thought it did. I'm reading the BASH man page but OMG it's a monster. Maybe I need to create scritps instead?
 
Old 04-19-2003, 09:51 PM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Actually I was wondering if I could use alias so that I could simply type 'burnw' for example and have that command execute this:
cdrecord -v speed=4 dev=0,0 -audio track*.wav
edit your ~/.bashrc (unless you want it global: /etc/profile)

something like:
Code:
alias burnw='cdrecord -v speed=4 dev=0,0 -audio track*.wav'
this won't work right away. you have to either login again, or execute

Code:
source ~/.bashrc
same thing for burnm
; )
 
Old 04-19-2003, 09:57 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
btw, I recommend changing that 'track*.wav' to something a little more permanent, if this is only referring to one directory (ie. ~/wav/track*.wav) This helps since you can execute the alias from any directory. OTOH, track*.wav would make it universal to all directories you may be working with. Your call.
; )
 
Old 04-19-2003, 10:20 PM   #7
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by cuckoopint
btw, I recommend changing that 'track*.wav' to something a little more permanent, if this is only referring to one directory (ie. ~/wav/track*.wav) This helps since you can execute the alias from any directory. OTOH, track*.wav would make it universal to all directories you may be working with. Your call.
; )
Here's the whole story- I have a 166Mhz w/ 80M -15G SCSI & SCSI cdrw. I want to make a network cdburning machine. Preferrably each user could ssh in, , copy whatever files you want (data, audio, video) into /users/own/dir then cd /users/own/dir and do a burnw. BUT I think I understand what you mean. You could change it so that you could execute it from any directory AND I could just burn everything in the directory instead of specifying .wav .mp3 etc. Oh and it just now hit me- I could really simplify copying files to /users/own/dir too!

I have windows users on the network who are scared of Linux. I suppose this is my way of forcing them to use it! heh heh :P

Thanks for the quick how-to cuckoopint. Am I to understand that I could make hundreds, nay thousands of aliases this way?? bwaahaaha ; ) what fun I'll have.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SendMail relay open if 'from' and 'to' matches domain Pastorino Linux - Software 0 06-20-2005 04:03 PM
How it will be... if you find a smart beginners guide to linux in this site? anindyanuri LQ Suggestions & Feedback 2 02-19-2005 06:54 AM
making alias, can't find .bashrc file djgerbavore Slackware 10 07-23-2004 08:23 AM
need a 'how-to' on creating my own distro American Psycho Linux - General 10 04-13-2004 08:09 AM
Peanut Linux 'how-to' Baracuda Linux - Distributions 4 08-26-2002 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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