This article is a 1 minute read
To see hidden files in the Mac Terminal make use of the ls (list directory) command with -a option,
Syntax:
ls -a
Example:
% ls -la
-r-------- 1 code2care staff 7 Mar 19 21:28 .CFUserTextEncoding
-rw-r--r--@ 1 code2care staff 18436 Sep 11 09:53 .DS_Store
drwx------+ 2 code2care staff 64 Sep 10 08:50 .Trash
drwxr-xr-x 15 code2care staff 480 Aug 21 19:18 .android
drwxr-xr-x 4 code2care staff 128 May 23 00:36 .aws
-rw-------@ 1 code2care staff 4412 Sep 9 00:09 .bash_history
drwxr-xr-x 3 code2care staff 96 May 28 12:29 .bitnami
drwxr-xr-x 4 code2care staff 128 Jun 16 18:26 .cache
drwxr-xr-x 3 code2care staff 96 Mar 18 23:10 .config
drwx------ 10 code2care staff 320 Sep 9 14:40 .docker
drwxr-xr-x 8 code2care staff 256 Jun 16 18:26 .eclipse
-rw------- 1 code2care staff 16 Mar 18 18:28 .emulator_console_auth_token
-rw-r--r-- 1 code2care staff 238 Sep 8 10:53 .gitconfig
drwxr-xr-x 9 code2care staff 288 Apr 16 00:00 .gradle
drwx------@ 5 code2care staff 160 Sep 11 09:47 Desktop
drwx------+ 12 code2care staff 384 Sep 7 13:29 Documents
drwx------+ 62 code2care staff 1984 Sep 9 22:24 Downloads
drwxr-xr-x 8 code2care staff 256 Sep 7 16:42 IdeaProjects
drwx------@ 98 code2care staff 3136 Aug 22 10:28 Library
drwx------ 4 code2care staff 128 Dec 25 2021 Movies
drwx------+ 4 code2care staff 128 Dec 25 2021 Music
drwxr-xr-x@ 27 code2care staff 864 Sep 10 08:51 My Files
drwx------+ 6 code2care staff 192 Aug 23 17:19 Pictures
Examples of hidden files
As you may see in the above example, all the files that are hidden start with a dot prefix, and they are denoted by a dash (-) in the file permission at the start,
-rw-r--r--@ 1 code2care staff 18436 Sep 11 09:53 .DS_Store
-rw-------@ 1 code2care staff 4412 Sep 9 00:09 .bash_history
-rw-r--r-- 1 code2care staff 238 Sep 8 10:53 .gitconfig
Examples of hidden directories
All the entries denoted by a letter d as the first letter in the permission and the name starts with a dot are hidden directories,
drwxr-xr-x 3 code2care staff 96 May 28 12:29 .bitnami
drwxr-xr-x 4 code2care staff 128 Jun 16 18:26 .cache
drwxr-xr-x 3 code2care staff 96 Mar 18 23:10 .config
drwx------ 10 code2care staff 320 Sep 9 14:40 .docker

-
Have Questions? Post them here!
More Posts related to MacOS,
- How to Open Finder using Mac Terminal
- How to install maven in macOS using Terminal Command
- How to install iTerm2 Mac Terminal Alternative
- Find Mac version using terminal command
- Zsh Shell: Custom alias that you may find useful
- How to Uninstall Brew on Mac
- Go to Specific file path using Mac Finder
- How to open new tabs macOS Terminal
- fix macOS: The digital signature on the update is missing or invalid. Ventura
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- Closest Alternate to Notepad on Mac
- How to Open Trash on Mac
- How to uninstall Microsoft Outlook on Mac
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- [Vi/Vim] How to move cursor to the start of a line
- macOS 13 Ventura - The New About this Mac Window
- Best Free Gif screen capture app now available for M1 Chip Mac - LICECap
- 30+ Zoom video communications application shortcuts for macOS
- How to create alias in macOS
- How to install Node using Brew on Mac
- How to start/boot macOS in safe mode - Big Sur 11.0, Catalina 10.15, or Mojave 10.14
- Cant find System Preferences... under macOS Ventura Apple Menu?
- Mac turn dark mode on or off using terminal command
- How to Close Safari in Mac using Keyboard shortcut
- How to Upgrade Mac from Monterey to macOS Ventura
More Posts:
- How to change default macOS Terminal Window size - MacOS
- Java code to check Internet Connection on Android Device Programmatically - Android
- wget Command on macOS Terminal - MacOS
- How to hide or remove quick launch left navigation from SharePoint Online Modern site page - SharePoint
- [Error] Microsoft Teams: We're sorry—we've run into an issue. - Microsoft
- Toast not getting displayed Android App - Android
- Get MD5 Hash as Checksum of a String in Python - Python
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio - Android-Studio