LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-20-2003, 02:52 PM   #1
megaman
LQ Newbie
 
Registered: Dec 2003
Location: Stockholm, Sweden.
Distribution: Slack 9.1
Posts: 2

Rep: Reputation: 0
Cool adding commands?


Is there a way to assign new commands to software, say for instance if I'd like to start xmms by hitting Alt+F2 and typing "music" instead of "xmms"
or if you install new software without a command and want to assign it your own one?
 
Old 12-20-2003, 03:19 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Use the alias command. I'm not a slack user but for Mandrake I add them to the users .bashrc file. It is hidden file located in the users home directory.

http://campuscgi.princeton.edu/man?alias#sect6
http://mirrors.ccs.neu.edu/cgi-bin/u...an-cgi?alias+1
 
Old 12-20-2003, 03:57 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you mean Alt-F2 from a GUI (w/stock xmms, I assume so) your window manager should have some keyboard configuration capability. And yeah, either aliases in ~/.bashrc or symlinks, and so on.

What kind of software doesn't have a command, though? (That sentence hurts my head to even type.) That'd be a neat trick.
 
  


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
Adding Boot Commands pjpeter Linux - Newbie 6 01-25-2005 08:10 PM
adding my own commands to rc files SizofreNICK Slackware 8 11-07-2004 02:30 AM
adding commands to /bin (root user) xone Linux - Software 4 03-23-2004 12:26 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
Adding xgamma commands to startup on RH8 HellBound Linux - Software 2 03-12-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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