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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-03-2017, 07:52 AM
|
#1
|
Member
Registered: Jan 2012
Posts: 333
Rep: 
|
Alias command not working
Hi I'm try to create an alias for firefox but the terminal won't
remember the command after I restart the terminal any Ideas
what going on.
Here is the command
alias f="firefox"
|
|
|
03-03-2017, 08:04 AM
|
#3
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
Whats the point of that
|
|
|
03-03-2017, 08:27 AM
|
#4
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Code:
?=alias+firefox+terminal
|
|
|
03-03-2017, 08:34 AM
|
#5
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
command not found ?=alias+firefox+terminal
|
|
|
03-03-2017, 08:35 AM
|
#6
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
|
Quote:
Originally Posted by pan64
|
Quote:
Originally Posted by actinide
Whats the point of that
|
Hi actinide,
Can you clarify your question here?
If you're asking what the point of pan64's answer is, they are explaining that you have to permanently save your alias's and so they will still be there for all terminal sessions and across a reboot of your machine. And then they offered some links to help with how to save those settings.
|
|
1 members found this post helpful.
|
03-03-2017, 08:37 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
this is how it works by design.
you can either make temporary changes or make them permanent.
|
|
|
03-03-2017, 08:44 AM
|
#8
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
Thats perfect. I just thought when you create an alias it that was saved automatically by the system.
|
|
|
03-03-2017, 10:02 AM
|
#9
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by actinide
command not found ?=alias+firefox+terminal
|
Did I say terminal command?
Search Engine format.
Nothing is gonna help, IMO if you don't learn to distinguish subtleties.
Last edited by Habitual; 03-03-2017 at 10:05 AM.
|
|
|
03-03-2017, 10:17 AM
|
#10
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
I'm lost
|
|
|
03-03-2017, 10:22 AM
|
#11
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
He was just saying that you could have searched google for this answer with this URL:
https://www.google.com/search?q=alias+firefox+terminal
In a google url "q=" signifies the search query. In this case "alias firefox terminal". If a person would have searched this, they would get a list of results that show them how to make an alias permanent.
Last edited by szboardstretcher; 03-03-2017 at 10:25 AM.
|
|
1 members found this post helpful.
|
03-03-2017, 10:29 AM
|
#12
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
|
Perhaps the suggestion to search might have been made more clearly.
|
|
|
03-03-2017, 10:41 AM
|
#13
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
|
|
|
03-03-2017, 10:47 AM
|
#14
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
Log into terminal
run this:
Code:
echo "alias f='firefox'" >> .bashrc
exit terminal
Log into terminal
type 'f'
Better explanation in your previous alias question: http://www.linuxquestions.org/questi...nd-4175586528/
Last edited by szboardstretcher; 03-03-2017 at 11:19 AM.
|
|
1 members found this post helpful.
|
03-03-2017, 10:53 AM
|
#15
|
Member
Registered: Jan 2012
Posts: 333
Original Poster
Rep: 
|
Nice one szboardstretcher
|
|
|
All times are GMT -5. The time now is 07:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|