Linux Crash Course - Bash Aliases

Опубликовано: 06 Октябрь 2021
на канале: Learn Linux TV
26,649
1.3k

Aliases in Bash enable you to essentially create your own commands, or even just simplify existing ones. In this video, I'll explain what aliases are, and I'll show you some of my personal favorites. At the end, I'll show you how to make your aliases persist between sessions.

💬 CHECK OUT OUR FORUMS
Have a Linux question? Want to share a tip? Or maybe just hang out?
➡ Join here ➜ https://community.learnlinux.tv

👕 GRAB SOME LINUX SWAG!
• "Distro Hopper" T-Shirt ➜ https://learnlinux.link/distro-hopper
• Backpack with Fedora logo ➜ https://learnlinux.link/fedora-backpack
• "apt install coffee" T-Shirt ➜ https://learnlinux.link/apt-install-c...
• Linux Distro Stickers ➜ https://learnlinux.link/distro-stickers
• "sudo Highway to Shell" T-Shirt ➜ https://learnlinux.link/sudo-highway
• /usr/bin/shirt T-Shirt ➜ https://learnlinux.link/usr-bin-shirt
• Debian T-Shirt ➜ https://learnlinux.link/debian-red-shirt
• "Read a Book" T-Shirt ➜ https://learnlinux.link/read-a-book
➡ Find more here: ➜ https://merch.learnlinux.tv

🐧 SUPPORT LINUX LEARNING!
• Monitor your Linux servers with Netdata ➜ https://learnlinux.link/netdata
• Grab some Linux swag ➜ https://merch.learnlinux.tv
• Become a Channel Member ➜ https://learnlinux.link/member
• Become a Patron ➜ https://learnlinux.link/patron
• 5% discount on LPI exam vouchers ➜ https://learnlinux.link/lpi-voucher
• Check out my latest book ➜ https://ubuntuserverbook.com
• Grab an awesome Pi-powered KVM ➜ https://learnlinux.link/tinypilot
• Jay's Gear - Server, Computer and Video Production Stuff ➜ https://learnlinux.link/amazon
Note: Royalties and/or commission is earned from each of the above links

#*⏰ TIME CODES*
00:00 - Intro
01:08 - The alias command
03:27 - Removing an alias
04:46 - Alias example 1: Simplify the output of the df command
07:14 - Alias example 2: Simplify the output of the mount command
08:31 - Alias example 3: Showing your external IP
09:22 - Alias example 4: Simplifying the installation of packages
10:47 - Alias example 5: Simplifying the command for upgrading packages
11:53 - Alias example 6: Running an Internet speed test
13:36 - Alias example 7: Checking CPU and memory usage
14:51 - Retaining aliases even after closing your session

Video Specific Links
Official blog post for this video ➜ https://www.learnlinux.tv/?p=1054

Stand-Alone Tutorials
• OpenSSH Guide ➜ https://linux.video/ssh
• How to better secure OpenSSH ➜ https://linux.video/secure-ssh
• 10 Linux Terminal Tips and Tricks to Enhance Your Workflow ➜ https://linux.video/cli-tricks-1
• Over 15 Terminal Tricks You Should Learn ➜ https://linux.video/cli-tricks-2

Full Courses from Learn Linux TV
• Linux Crash Course series ➜ https://linux.video/cc
• Learn how to exit use tmux ➜ https://linux.video/tmux
• Learn how to use vim ➜ https://linux.video/vim
• Bash Scripting Series ➜ https://linux.video/bash
• Proxmox VE Cluster Full Course ➜ https://linux.video/pve
• Learn Ansible ➜ https://linux.video/ansible

🌐 LEARN LINUX TV ON THE WEB
• Main site ➜ https://www.learnlinux.tv
• Community ➜ https://community.learnlinux.tv
• Official Github Account ➜ https://github.com/LearnLinuxTV
• Enterprise Linux Security Podcast ➜ https://enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ https://thehomelab.show
• Jay on Udemy ➜ https://www.udemy.com/user/jay-lacroix-3
• Jay on Twitter ➜ https://x.com/JayTheLinuxGuy
• Content Ethics ➜ https://www.learnlinux.tv/content-ethics
• Request Assistance ➜ https://www.learnlinux.tv/request-ass...

⚠️ DISCLAIMER
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.

#bash #linux #cli


Смотрите видео Linux Crash Course - Bash Aliases онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Learn Linux TV 06 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 26,649 раз и оно понравилось 1.3 тысяч людям.