简体   繁体   中英

Cant find folder in MAC Terminal

I need to install cocoa pods. So, to create Pods file I need to access to the folder where the app is. But ls can't find it, as proven in this screenshot.

I am not very experienced in Unix, searching in the net I did ls -a to see if it is hidden, but no result.

Anybody could help me?

Thank you.

The cd command doesn't allow spaces. You cd -ed to your "iOS" folder, not your "iOS Apps" folder, as seen in the Terminal prompt in your screenshot ( Admins-iMac:iOS admin$ instead of Admins-iMac:iOS Apps admin$ ). Use a backslash ( \\ ) to escape the space:

cd iOS\ Apps

You will see your folder

EDIT (in response to @l00phole's comment)

You can also use quotation marks to delimit paths with spaces

cd "iOS Apps"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM