how to locate "~/.config"

Hi,


I'm trying to use Visual Studio for Mac but I am unable to download the android SDK along with the general installation as it keeps popping up with

Unable to install Android components due to wrong permissions

Please change the permissions of the "~/.config" folder so a regular user has read and write access to it.


I've tried to find it via the go function and can't so wondering if there's any help for this.. i'm interning to help with an android app so is sorta required to have the android SDKs etc.


Thanks!

MacBook Pro Retina

Posted on Apr 20, 2021 5:14 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 20, 2021 1:48 PM

~ is just the $HOME folder. Not the Library folder.


Fro an Applications -> Utilities -> Terminal session

/bin/ls -la $HOME

and look for .config


If it does not exist, then

/bin/mkdir -p $HOME/.config


If it does exist, then the file owner should be your Unix short name

whoami

and staff

the permissions should have owner read/write/execute (rwx) as the 2nd, 3rd and 4th letters of the permission string starting in column 1. If it is truly a folder, then the first column will be a 'd' for directory.

drwx------ 9 me staff 288 Feb 15 15:55 .config/

The other fields may or be other combinations of rwx or they may be dashes like my above example

7 replies
Question marked as Top-ranking reply

Apr 20, 2021 1:48 PM in response to september_____

~ is just the $HOME folder. Not the Library folder.


Fro an Applications -> Utilities -> Terminal session

/bin/ls -la $HOME

and look for .config


If it does not exist, then

/bin/mkdir -p $HOME/.config


If it does exist, then the file owner should be your Unix short name

whoami

and staff

the permissions should have owner read/write/execute (rwx) as the 2nd, 3rd and 4th letters of the permission string starting in column 1. If it is truly a folder, then the first column will be a 'd' for directory.

drwx------ 9 me staff 288 Feb 15 15:55 .config/

The other fields may or be other combinations of rwx or they may be dashes like my above example

Apr 20, 2021 8:08 PM in response to BDAqua

Hi,


i managed to figure it out today!


~ means it’s hidden


i unhid my folders (cmd shift . ) and my .config folder was showing but it had a block on it (red circle with a white line ) which I renamed. I had to create a new folder with the name .config and then it allowed me to finish the installation!


thanks everyone for the help! I’ve attached a pic of the issue

Apr 20, 2021 7:14 AM in response to september_____

The tilde means it's in the hidden Home>Library folder, them the leading dot mens he file is hidden.


Show hidden files in OSX Finder


Open the Terminal and type or copy/paste:


defaults write com.apple.finder AppleShowAllFiles -bool true


Reverting to the default of NOT showing hidden files:


defaults write com.apple.finder AppleShowAllFiles -bool false


*Restart or Force Quit Finder required to take effect.*

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to locate "~/.config"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.