- Published on
Creating a Hidden Directory Using Terminal on macOS
- Authors

- Name
- Patricia Dumontier
- X
- @polyglotmaster
Creating a Hidden Directory Using Terminal
This guide walks you through creating a .attachments directory on macOS using the Terminal, ideal for organizing PNG files in an MDX project.
Open Terminal:
- Press
Command + Space, type "Terminal," and hit Enter to launch the Terminal app.
- Press
Navigate to Your Project Folder:
- Use the
cdcommand to move to your project directory. For example:cd ~/Documents/ilms-docs - Replace
~/Documents/ilms-docswith the path to your repository. If unsure of the path:- Type
cd(with a space), drag the folder from Finder into Terminal, and press Enter.
- Type
- Use the
Create the
.attachmentsDirectory:- Run this command to create the folder:
mkdir .attachments
- Run this command to create the folder:
Verify It Exists:
- List all files, including hidden ones, to confirm:
ls -a - You should see
.attachmentsin the output.
- List all files, including hidden ones, to confirm:
Move PNG Files (Optional):
- If your PNG files are elsewhere, move them into
.attachments. For example:mv ~/Downloads/feature-branch-with-develop-git-workflow-1-03ac99d9-9d71-42aa-9310-59a5429c074b.png .attachments/ - Replace the source path with the location of your PNGs.
- If your PNG files are elsewhere, move them into