How to Create and Use Alias Command in Linux | Top Docs with Jay LaCroix

preview_player
Показать описание
In this video, we'll take a look at the alias command in Linux. The alias command can help save time and reduce frustration by creating customizable shortcuts in the command line.

Chapters:
0:00 Introduction
0:52 Create An Alias
2:36 Listing Your Aliases
3:26 Removing An Alias
4:09 Different Use Cases for Aliases
4:43 Simplifying the Output of df -h
7:17 Simplifying the Output of mount
8:37 Curling for your IP address
9:28 Simplify Package Installation
10:55 Simplify Package Upgrades
12:04 Curling for a Speedtest
13:43 Grab the top processes
15:03 Making Your Aliases Sticky
17:08 Conclusion

#Linode #alias #commands #Linux #CommandLine
Product: Linode, Linux, Command Line; Jay LaCroix;
Рекомендации по теме
Комментарии
Автор

Thanks, Jay. Like you, I have gotten the majority of my aliases from others, kudos to them!
Been doing aliases for years, but I always put them in the .bash_aliases file instead of .bashrc. That way they are always in the same place and I can quickly copy the .bashrc to other desktops.

jimsmith
Автор

I think aliases are great, except when I use them for longer commands I tend to forget those commands, and I have to create them manually on every server on which I work. Which makes me forget the important longer commands faster. Great video none the less.

Carnyx_
Автор

This geriatric newbie signed back in to Youtube after a long while away because of this very useful tutorial. Thanks a bunch :-) Subscribing NOW!

alandouglasrandall
Автор

You should edit: *.bash_aliases* for all your aliases. Leave *.bashrc* for other things!

tubeDude
Автор

Very Helpful....Thank you very much😆😆😆

ponybeargrumpyface
Автор

Great video, as always!

What are your thoughts on placing the aliases in the .bash_aliases file vs .bashrc file?

QHPRN
Автор

one of my favourites on my laptop is alias cls = "clear", What it does is it allows me to use the windows command "cls" in my linux terminals, I have it on my laptop's .bash_aliases file

herrkatzegaming
Автор

This is how I got my "Thanks!" with a "My pleasure." response. I was trying to write a bash script for it but what a hassle! But the no contraction thing is a pain...ROFL!

hootiebubbabuddhabelly
Автор

Hello i have one question if it’s possible to answer me.
I want to create alias like..when i turn on linux i want them to ask me for number and when i put number i want to list some names.

Do you have any idea how to do that?

hamzasahman
Автор

Can you chain together a bunch of other alias's for alias-ception?

heckyes
Автор

All Hail the Mighty Algorithm for recommending this video....

busyrand
Автор

Is there a limitation of how many aliases we can use? Is there a way to increase the number of aliases? Thanks.

chadtsai
Автор

I had to write this command "source ~/.bashrc" for it to work, but when I restart my terminal I had to do that again. Anyone else has the same problem?

dibanpitchaimuthu
Автор

A bit dangerous to have an alias always download a file from GitHub and run it ad-hoc. Would be better to just pull down the python script and review first.

mattcargile
Автор

I like alias mtu="ip l | grep \$(ip r| awk '/default/ {print \$5}')|awk '{print \$2, \$4, \$5}'"

waltsullivan