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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
www.google.com does (I promise you that it is very easy. I am just not going to do your google search for you and tell you. I don't remember the exact command. [Sadly])
Quote:
Originally Posted by leopard
@pixellany So the BASH script in /bin would work or is there something wrong or stupid about that?
Indeed not. You have to look at man bash, since alias is a shell built-in. I'd not consider the possibility to make scripts for this kind of task. Aliases are enough for simple tasks and shell functions are even better for more complex task and for a bunch of other reasons (take a look at the Advanced Bash Scripting Guide for details, chapters 23 and 24).
You can define your own aliases in ~/.bashrc so that they will be available every time you start an interactive shell session. Moreover if you prefer to have a separate file to define aliases and/or functions, you can follow the Ubuntu advice (see in ~/.bashrc) and create a file named .bash_aliases. Don't forget to un-comment the relevant lines in ~/.bashrc in that case:
Code:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
www.google.com does (I promise you that it is very easy. I am just not going to do your google search for you and tell you. I don't remember the exact command. [Sadly])
Why did you say that? I have never knew of alias in BASH. Tis' why I came here. I always try to do it for myself. Try googling 'how to bash shortcuts' and look for mention of 'alias'. Thanks.
Quote:
You can define your own aliases in ~/.bashrc so that they will be available every time you start an interactive shell session. Moreover if you prefer to have a separate file to define aliases and/or functions, you can follow the Ubuntu advice (see in ~/.bashrc) and create a file named .bash_aliases. Don't forget to un-comment the relevant lines in ~/.bashrc in that case:
Code:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Good Info! I did a quick "man bash | grep alias" and it turned up plenty useful info. Thank you!
Why did you say that? I have never knew of alias in BASH. Tis' why I came here. I always try to do it for myself. Try googling 'how to bash shortcuts' and look for mention of 'alias'.
I said it because I had already told you that it was "alias" that you were looking for. I believe you that 'how to bash shortcuts' doesn't mention 'alias'... I was not trying to be rude it is just that I had already given you the name of the command that you needed. Myself, if I cannot find the man page locally then the first thing I do is seek the online man page. I just assumed that everyone did also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.