Linux - NewbieThis 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.
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.
I have a command I like to use a lot with a particular parameter and I would like to have it execute that way by just typing the command. I know I read this somewhere and it's pretty easy, but I forget how and I don't know where to look. What's the command?
this depends of which shell you are using.
supposing bash, try
Code:
alias something="something --blah --blah"
then your command "something" will be executed automatic with the parameters --blah --blah.
you if want that forever, add this line to your .bashrc file.
indeed and that is the danger to make everything an alias...
you could use sometrick like calling your first alias shutdown1 but this could bring a mess quite fast to your computer.
i agree with krishvij, write a small shell script and everything is solved keeping the feng-shui...
I guess I kind of answered that myself. Let's just say I want to take a look at the .bashrc file and make this change permanent, but I'm not quite sure where to look. If I use "find" I need to specify a path name. Is there a way to look if the absolute path is unknown?
Once I find this file, I can open it with a text editor and add the line at the bottom, correct? I think I'm going to try to work with emacs for now. Good start?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.