0

I'm setting up a new Mac running Monterrey 12.4.

I've used the standard method of the following terminal command:

defaults write com.apple.Finder AppleShowAllFiles true; killall Finder

This doesn't allow me to see hidden files in terminal, only in Finder.

How can I always show hidden files when I use ls in the terminal?

1
  • 2
    The fine man page for ls(1) describes the '-a' and '-A' options. Jul 14, 2022 at 2:37

2 Answers 2

1

How can I always show hidden files when I use ls in the terminal?

You could add something like alias ls='ls -a' to one of your startup scripts. Be careful though, changing the 'meaning' of ls might confuse more than it helps, so alias lsa='ls -a' might be preferable.

0

To see the hidden files in the finder you can also use cmd + shift + . (period)

and to check it on the terminal ls -a -a stands for all the files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .