Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Show hidden files and folders within Mac terminal

I can’t believe I can’t find a good solution… I have a hidden folder named .venv that I would like to show in my Mac OS Monterey 12.3.1 terminal output.

I’ve tried:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

but when I open the terminal in the directory containing .venv and type ls, the hidden folder is not returned. What gives?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Have you tried using the -a flag for ls?

$ ls -a

ls itself usually ignores entries starting with ‘.’, and the -a or --all flag prevents that.

Use ls --help in your terminal to review all available flags.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading