Uploaded January 2026 | Updated November 2026, 15 hours ago
π Linux Foundation Cyber Week - save up to 65% on certifications and training, ends December 4: learnlinux.link/lf-bf
Did you know you can make Bash automatically run ls every time you use cd? In this video, I show a simple but powerful Bash trick that improves your Linux command-line workflow by automatically listing files whenever you change directories.
We start by creating a custom cd function in Bash, then I walk through exactly how it works so you understand whatβs happening behind the scenes. This approach helps you learn more about Bash functions, shell behavior, and how to customize your terminal in a practical, real-world way. Once youβve set this up, navigating directories becomes faster and more informative, especially when working in complex file structures.
As a bonus, I also demonstrate how to create a reusable extract function that can automatically unpack many common archive formats from the command line, saving you even more time.
If youβre looking for useful Bash tips, want to customize your Linux terminal, or enjoy learning small tricks that improve productivity, this video is for you.
π *If this video helped you out, buy Jay a coffee* β learnlinux.link/donate
*Linux Stuff*
- LLTV Merch Shop: learnlinux.link/shop
- Become a Patron: learnlinux.link/patron
- "Linux Troubleshooting Strategies" e-book: learnlinux.link/troubleshooting-ebook
- Linode Starter Credit: learnlinux.link/linode
- Learn Ansible: linux.video/ansible
- Save 30% on Linux Foundation Courses & Certs: learnlinux.link/get-certified
*π Video-specific Links*
- "cd" Function code β learnlinux.link/cd-function
- "extract" Function code β learnlinux.link/extract-function
π *Time Codes*
00:00 β Bash Trick: Auto-ls When Changing Directories
01:25 β Override cd with a Custom Bash Function
05:20 β Support Learn Linux TV and grab some Linux Swag
06:45 β Bonus: Create an extract Function in Bash
*Learn Linux TV*
_Your $HOME For Linux-Related Fun and Learning_
- Official website: learnlinux.tv
- Community Forums: community.learnlinux.tv
- Official Subreddit: learnlinux.link/reddit
- Facebook Community: learnlinux.link/facebook-group
- Professional Consulting with Jay: learnlinux.link/help
- More about Jay: learnlinux.link/jay
*Affiliate and Content Ethics*
Some links in this description are affiliate links. If you purchase through them, Learn Linux TV may earn a commission at no additional cost to you. This helps keep the content flowing.
learnlinux.tv/content-ethics
*Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for damages resulting from its use. Always ensure you have proper permission, follow organizational policies, protect important data, and comply with applicable laws.
#Linux #commandline #linuxterminal
π Linux Foundation Cyber Week - save up to 65% on certifications and training, ends December 4: learnlinux.link/lf-bf
Did you know you can make Bash automatically run ls every time you use cd? In this video, I show a simple but powerful Bash trick that improves your Linux command-line workflow by automatically listing files whenever you change directories.
We start by creating a custom cd function in Bash, then I walk through exactly how it works so you understand whatβs happening behind the scenes. This approach helps you learn more about Bash functions, shell behavior, and how to customize your terminal in a practical, real-world way. Once youβve set this up, navigating directories becomes faster and more informative, especially when working in complex file structures.
As a bonus, I also demonstrate how to create a reusable extract function that can automatically unpack many common archive formats from the command line, saving you even more time.
If youβre looking for useful Bash tips, want to customize your Linux terminal, or enjoy learning small tricks that improve productivity, this video is for you.
π *If this video helped you out, buy Jay a coffee* β learnlinux.link/donate
*Linux Stuff*
- LLTV Merch Shop: learnlinux.link/shop
- Become a Patron: learnlinux.link/patron
- "Linux Troubleshooting Strategies" e-book: learnlinux.link/troubleshooting-ebook
- Linode Starter Credit: learnlinux.link/linode
- Learn Ansible: linux.video/ansible
- Save 30% on Linux Foundation Courses & Certs: learnlinux.link/get-certified
*π Video-specific Links*
- "cd" Function code β learnlinux.link/cd-function
- "extract" Function code β learnlinux.link/extract-function
π *Time Codes*
00:00 β Bash Trick: Auto-ls When Changing Directories
01:25 β Override cd with a Custom Bash Function
05:20 β Support Learn Linux TV and grab some Linux Swag
06:45 β Bonus: Create an extract Function in Bash
*Learn Linux TV*
_Your $HOME For Linux-Related Fun and Learning_
- Official website: learnlinux.tv
- Community Forums: community.learnlinux.tv
- Official Subreddit: learnlinux.link/reddit
- Facebook Community: learnlinux.link/facebook-group
- Professional Consulting with Jay: learnlinux.link/help
- More about Jay: learnlinux.link/jay
*Affiliate and Content Ethics*
Some links in this description are affiliate links. If you purchase through them, Learn Linux TV may earn a commission at no additional cost to you. This helps keep the content flowing.
learnlinux.tv/content-ethics
*Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for damages resulting from its use. Always ensure you have proper permission, follow organizational policies, protect important data, and comply with applicable laws.
#Linux #commandline #linuxterminal










