This Bash Trick Makes cd Much More Useful! @LearnLinuxTV
This Bash Trick Makes cd Much More Useful!  @LearnLinuxTV
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
This Bash Trick Makes cd Much More Useful!What Is an Immutable Linux Distro? (And Should You Use One?)UFW Made Easy: Complete Getting Started GuideHow to Automate Linux Backups Using rsync and systemdEasily Install Docker on Linux and Run Your First ContainerSwitch Your PC to Linux With My Latest Book!Linux Troubleshooting with AI: Practical Tips Every Admin Should KnowNixOS Review: The Most Powerful Linux Distro in 2026?Alacritty: A GPU-Accelerated Terminal for LinuxSelf-Publishing a Tech Book on Leanpub: My Honest ExperienceEasy Storage Pool Setup  Wipe Disks & Create Volume #linuxChange Your Desktop Environment in Debian – Complete Guide
Learn Linux TV |

This Bash Trick Makes cd Much More Useful!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER