LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-01-2008, 09:29 PM   #1
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 988

Rep: Reputation: 56
How do I make an alias for gnome-terminal?


I want to be able to hit alt f2 and enter terminal to open up a terminal. So I went into my home .bashrc and below the alias part I put

alias gnome-terminal = "terminal"

But it doesn't work. Says alias command not found.
 
Old 09-02-2008, 01:25 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Remove the spaces around the equals sign.
 
Old 09-02-2008, 01:35 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Besides the spaces, you've got it the wrong way round. You want to make an alias called terminal, for gnome-terminal:

alias terminal='gnome-terminal'
 
Old 09-02-2008, 02:48 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Quote:
Originally Posted by Nylex View Post
Besides the spaces, you've got it the wrong way round.
Ah, should've noticed that. But then again, I don't use gnome so I wasn't familiar with the command.


One more suggestion: Before putting something like this in your config file, test it out on the command line first. That will tell you if you have the syntax right or not.
 
Old 09-02-2008, 04:41 PM   #5
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 988

Original Poster
Rep: Reputation: 56
I noticed that the alias won't work until I have the terminal loaded. So I guess the aliases don't get loaded into memory until a terminal is running. What I wanted to do was use alt-F2 and type in terminal, instead of having to type in gnome-terminal. However, this won't work because the aliases aren't loaded into memory at this point. So, should I just make a file named terminal and link it to gnome-terminal? How would I do that?
 
Old 09-02-2008, 06:50 PM   #6
henry_shadowjet
Member
 
Registered: Oct 2006
Posts: 55

Rep: Reputation: 15
Hey there,

The easiest way to create a link file then (as you have indicated above). To do that, as root, do the following:
cd /usr/bin
ln -s gnome-terminal terminal

Should work fine. G'd luck with it!
 
Old 09-02-2008, 11:12 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Is there a setting in gnome somewhere for what default terminal it uses? I know there's one for kde.
 
Old 09-03-2008, 12:07 AM   #8
henry_shadowjet
Member
 
Registered: Oct 2006
Posts: 55

Rep: Reputation: 15
Definitely, in GNOME, you can follow the options (from the top):

System > Preferences > Personal > Preferred Applications

Go to the tab called "System" and BINGO, you should find it ^^

Cool? ^^
 
  


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
using alias to make rm into rm -i nkoplm Linux - Newbie 2 01-11-2006 02:33 PM
Can I make an alias? quintan Linux - Software 2 11-25-2005 03:44 AM
How to make an alias? Gins Linux - General 6 06-06-2005 07:13 PM
make an alias in winXP zchoyt Linux - General 2 09-14-2004 08:33 AM
How do i make an alias on my webserver? meluser Linux - Software 14 03-13-2003 03:11 PM


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