I have switched to Mac as my main development machine (coming from Fedora) and was just curious as to what people used as there development folder structure. For example in Fedora I always had ~/opt for user programs ~/src for source code I was working on and ~/bin for files I constantly executed. Is there a Mac de facto. What do you guys perfer?
Thanks, Greg
Since version 4.3 Xcode is a single app in your Application Folder. Before 4.3 Xcode was located in /Developer . That has changed, you can find the "developer folder" inside of the app package. Try cd /Applications/Xcode.
The root of the hard drive contains things available to all users, such as Applications and components of the System. The directory at the bottom, called Users is where each person's Home is located. Inside the Users folder you will find your (and if you share your computer, others) Home directory.
Apple File System (APFS), the default file system for Mac computers using macOS 10.13 or later, features strong encryption, space sharing, snapshots, fast directory sizing, and improved file system fundamentals.
“The directory of development organizations, listing 53,750 development organizations, has been prepared to facilitate international cooperation and knowledge sharing in development work, both among civil society organizations, research institutions, governments and the private sector.“ (
I use the directory ~/Developer
as the root of my development-related files. Inside that I have ~/Developer/Code
for code snippets, tutorial code, test ideas, etc. I have a ~/Developer/Projects
directory to hold in-development projects. This contains a few subdirectories, including Archives
for projects I've abandoned, and Current
for current development work. ~/Projects
is also a symlink to ~/Developer/Projects/Current
.
To add to @mipadi, after a recent fresh install of OSX 10.10.2 (Yosemite) I noticed that if you create a ~/Developer
folder, that folder automatically receives a special folder icon (with a hammer on it). This property seems to be an artifact of older versions of Xcode, in which it would automatically create the folder for you.
I have a big messy folder called "code" full of Xcode projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With