A simple Bash customization that automatically runs `ls` after every `cd` command by overriding `cd` in `.bashrc` with a custom function. The function uses `builtin cd` to avoid recursion, supports a fallback to `$HOME`, and runs a colorized `ls -lh -F` listing. A bonus `extract` function is also covered, which auto-detects

3m read timeFrom allthingsopen.org
Post cover image
Table of contents
Stop typing ls after every directory change and let this Bash function do it for you.Key takeawaysMore from Learn Linux TVAbout the Author

Sort: