LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2005, 12:17 AM   #1
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Rep: Reputation: 15
g++ command shortcut?


OK, per this thread, my "g++" command is somehow now "g++-3.3". I really don't want to have to type "g++-3.3 mysource.cpp"; something shorter like "g++ mysource.cpp" would be desired. (Or maybe even a shorter shortcut?) How can I do this? Would this be like a symbolic link?
 
Old 02-18-2005, 12:46 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Create a symlink to it as root,
#ln -s /usr/bin/g++-3.3 /usr/bin/g++
 
Old 02-18-2005, 04:35 AM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Or alias it:
Code:
alias g++-3.3 g++
I would say symlink would be better though.
 
Old 02-18-2005, 05:57 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You should also remember to delete the symlink and create a new one if you upgrade versions and have the same problem.
 
Old 02-18-2005, 09:56 AM   #5
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Excellent, thanks!
 
Old 02-17-2006, 08:42 PM   #6
guiness
LQ Newbie
 
Registered: Nov 2005
Distribution: Mepis
Posts: 3

Rep: Reputation: 0
super helpful thanks!
 
  


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
Execute shortcut as Root Command? batorma Linux - Newbie 2 11-08-2005 02:22 PM
command to create shortcut for an application in the start menu for linux neerajchaudhari Linux - Software 1 08-29-2005 03:11 AM
application shortcut trumpetdork Linux - Software 5 04-19-2005 05:58 PM
Possible Shortcut? AliasE Linux - Software 1 01-15-2004 07:06 PM
KDE3 execute command on keyboard shortcut hamsterdude Linux - General 10 07-21-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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