Have you ever had to create a large series of folders, perhaps for a new project, new client, or just as part of organizing your massively large and massively disorganized hard drive? In the Finder, it’s trivial to create a new folder—just press Shift-Command-N. But if you’ve got 10 or 20 or 30 folders to create, the process can get tedious—create the folder, rename it, create the next, rename it, repeat until done. Ugh. Using Terminal, however, you can greatly simplify this task, as you can easily combine the ‘create’ and ‘rename’ steps into one action.
Locate All of Your Photographs. Start with your computer and try to locate every single picture. It’s quite easy to make a photo book on your Mac, using Apple’s Photos app, which is located in the Applications folder. ( Learn more about Apple’s photo books and other print. This video will show you how to create a shared network folder on your Mac.This is useful if you want to have a shared hard drive on your network which acts.
In Terminal, you use the command
mkdir to create new directories (folders). For instance,
mkdir “My Folder” will create a folder named My Folder in the current directory. But
mkdir is actually more powerful than that, as it will accept multiple new folder names on the input line. For instance, consider this command:
Back on the left side of the screen, type “change type” into the search box and then drag “Change Type of Images” to the right-hand side of the screen. There is a drop-down here, too. Change that to “JPEG.”. In the menu bar, click File Save and then enter a name for your quick action. Finally, click “Save” to complete the process. Preview – This will launch Preview, a photo editing app. Your Mac will temporarily name the image file as Untitled until you change it to a different file name. Other Location – This will allow you to navigate outside of the locations previously listed to a folder of your choice. You can save to an existing folder or create a new one.
The above will create three new folders with the ever-so-useful names of My Folder, My Other Folder, and Not That Folder. Note the quote marks around each name—you’ll need those if your folder names contain spaces. Alternatively, you can put a backslash before each space and skip the quotes, but I find it easier (and more visually obvious) to use the quotes. Unless you specify the full path to each folder,
mkdir will create them in the current directory—so remember to use
cd /path/to/destination before creating your new folders.
So what if you have a lot of folders to create? Start by making a text file containing the name of each folder to be created—one entry per line, and any folder name with spaces must be enclosed in quotes (or use backslashes, as explained above). Once you have this file created, place it in the folder where you’d like all the new folders to go, then
cd to that same folder in Terminal. Then type this command (assuming you’ve named your file
Each entry in the file will be created as a folder in the current directory. (For the Unix purists, you can also use
<dirlist xargs mkdir instead, but I find the
cat version easier to comprehend.)
Finally, what if you’d like to create a selection of folders, all with the same base but a varying suffix? For example, Project A, Project B, Project C, etc. Try this command:
You’re not restricted to single letters, of course—anything you want can go within the curly brackets. Just remember that if you want spaces in the suffixes, you’ll need to enclose them in quotes, too:
And yes, I know there are a bunch of ways to do this stuff using GUI tools—including Automator, among others. However, it’s Geeky Friday, and none of those GUI tools will help you much if you’re trying to do this work over a remote connection.
If you take a lot of screenshots on a Mac, you might end up with a cluttered desktop. This is because Macs automatically save your screenshots on the desktop. They are also saved as PNG files instead of the more widely used JPEG format. If you want to know how to change where screenshots are saved on a Mac, and the format they are saved in, just follow the steps below:
Where Do Screenshots Go on a Mac?
When you use keyboard shortcuts like Command + Shift + 3, your screenshots are automatically saved to the desktop. You can also right-click the floating thumbnail, which lets you save the screenshot to Documents or Clipboard.
How to Change Where Screenshots are Saved on a Mac
There are two ways to change the defaultscreenshot save directory on a Mac, depending on your operating system. Theeasier way is through the Screenshot app in macOS Mojave. For mac OS HighSierra or earlier, you have to use Terminal, an app for entering commandprompts to control your Mac. Below are the steps for each operating system.
How to Change Where Screenshots are Saved in macOS Mojave or Later
- Go to the Utilities folder and open the Screenshot app. You can also open the Screenshot app by pressing Command + Shift + 5.
- Click Options.The top tile of the menu will show your Save to options:
- Desktop – This is the default setting which saves the screenshot with the following time format: Screen Shot [date] at [time].
- Documents – This will save the screenshot to your Documents folder with the time and date as the file name.
- Clipboard – This will allow you to paste the screenshot to another app which can edit or view images.
- Mail – This lets you compose a new email in the Mail app with the screenshot attached.
- Messages – This will attach the screenshot to a message which you can send to a contact.
- Preview – This will launch Preview, a photo editing app. Your Mac will temporarily name the image file as Untitled until you change it to a different file name.
- Other Location – This will allow you to navigate outside of the locations previously listed to a folder of your choice. You can save to an existing folder or create a new one.
- Choose a Save To option. Your Mac will remember the last one you have selected and will apply this to subsequent screenshots.
How To Create A New Photo Folder On Mac
How to Change the Default Screenshot Save Location in macOS High Sierra or Earlier
- Open Terminal. You can find the Terminal app in the Utilities folder.
- Type the following command, followed by a space:
Note: Make sure to put a space after the word location, otherwise the command won’t work.
- Drag the folder you want to save to into the Terminal command box. You will see that the file path will now be inserted as another command line in Terminal.
- Press Enter on your keyboard.
- Then type the following command:
- Press Enter or Return. The next time you take a screenshot, it will be saved to the new folder you have created instead of the desktop.
How to Change a Screenshot to JPG and Other File Formats
How To Create Folder For Pictures On Mac
By default, Macs save screenshots as PNG files, which are usually larger than JPG files. Both can be used for social media, but JPGs are more universally accepted. To save a screenshot as a JPG, use the Terminal to override the default format setting.
- Open Terminal.
- Type the following command, followed by a space: You can also choose to save your screenshots as other formats by default. You can save them as PDF files if you want to edit or open the image in Adobe. You can save them as TIFF files if you want to retain their original image data even after manipulating the image. Or you can save them as GIF files if you want the image to load quickly on the web. Just choose any of the following commands, followed by a space:
Note: Make sure to put a space after the file type, otherwise the command won’t work.
- Hit Enter. The command will be saved to Terminal.
- Test to see if the default option has been changed. Take a screenshot then right-click on the image. Choose Get Info from the contextual menu, then check what is written under “Kind” in the General section.
Once you know how to change the default screenshot settings on your Mac, you’ll be able to customize and improve the way you work with screenshots. Taking a screenshot on a Mac also takes some getting used to, especially for Windows users who are used to hitting the Print Screen key. If you need to improve your screenshot skills, check out our article about how to take a screenshot on a Mac.
HelloTech editors choose the products and services we write about. When you buy through our links, we may earn a commission.