This article shows how to delete .DS_Store files from the current directory and all its subdirectories on macOS. 1. Delete “.DS_Store” files The below command will delete .DS_Store files from the current directory and all its subdirectories without asking for confirmation. Terminal find . -name ".DS_Store" -type f -delete The command breakdown: find . – […]

Read more How to delete .DS_Store files on macOS

When ssh into a production server, Debian, and noticed there is a warning or error as follows: Terminal manpath: can’t set the locale; make sure $LC_* and $LANG are correct mkyong@test-server:~$ Check the server’s locale; there are warning about the LC_CTYPE and LC_ALL variables. Terminal $ locale locale: Cannot set LC_CTYPE to default locale: No […]

Read more Cannot set LC_CTYPE to default locale: No such file or directory

This article show you how to find all packages installed using Homebrew? 1. brew list Open the Terminal and runs the command brew list to list all the installed packages using Homebrew. Terminal % brew list ==> Formulae aom curl giflib imath libevent libssh2 maven ==> Casks adoptopenjdk rar temurin temurin18 2. brew deps –tree […]

Read more How to find all packages installed using Homebrew?

After upgrading to macOS Big Sur 11, macOS Monterey 12, macOS Ventura 13, etc. Does it seem every upgrading macOS will cause the following error message for the git command? How to fix it? Terminal % git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Solution Open the Terminal, and run this […]

Read more Git on macOS, xcrun: error: invalid active developer path