bashrc file, or your new session may not be loading it. If the above steps don’t work, you may not have saved your.
sudo is likely to be necessary for permission reasons, if it is and you use it, supply the password before going on to the next step.
This will open up the Nano text editor, which is my personal favorite for simple editing.
It just requires executing a simple command: alias c="clear". Simply creating a BASH alias is pretty simple.
Video can’t be loaded because JavaScript is disabled: A Video Guide to Bash: Creating Bash Aliases to Shortcut Long Commands ()Īnd the text explanation, if that’s more your speed: How to Create a Bash Alias That Persists Over Time This can serve as a template for you to make lots of other relevant aliases that are more specific to your work. In this video, I alias (the already pretty short :p) command `clear` to be executable with the letter `c`. In the case of that’s video that’s exactly what we’ve done. They’re called “aliases.” They’re essentially shortcuts to commonly typed sequences that can be as short as one letter. While it’s hardly a solution to all your complaints, BASH (and most other Unix terminals) offer a solution to the issue of typing long commands. As such, some people just never really like the terminal. Typing `ssh is never going to feel as fast as hitting a “connect” button, for example. One of the most obviously annoying things about the terminal - especially to those of us living in the age of touch and GUIs - is how much you need to type. So we’ll quickly and effectively walk you through how to make BASH aliases. In the “terminal” world, Bash aliases solve a common problem: wanting to do things quicker and more effectively. p) In the world of “command line interfaces,” Bash has been the go-to standard for decades, and is still the most common “terminal” in use.
This Quick Guide covers a common question whose lingo may confuse newbies: how do I make a Bash shell alias? For those for whom that sentence was Greek-let start here: Bash is the “ Bourne Again Shell.” (There’s not relationship to the Matt Damon movie character, for better or worse.