Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
January 23, 2018, 09:05:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: pwd  (Read 2712 times)
jonthornham
Full Member
***
Posts: 169



WWW Email
pwd
« on: October 19, 2009, 09:28:17 PM »

How do you change your current working directory in terminal? Mine says

Code: (Objective-C)
Last login: Mon Oct 19 20:57:15 on ttys000
Macintosh-7:~ jonthornham$ pwd
/Users/jonthornham
Macintosh-7:~ jonthornham$

Thanks,

Jon
Logged

Jon Thornham
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #1 on: October 19, 2009, 09:41:21 PM »

Use the cd (change directory) command:

Code: (Objective-C)
$ pwd
/Users/steve_kochan
$ cd /Users
$ pwd
/Users
$

Cheers,

Steve Kochan
Logged
jonthornham
Full Member
***
Posts: 169



WWW Email
« Reply #2 on: October 19, 2009, 11:51:37 PM »

I am assuming the Terminal does not like spaces in folder titles? Is there anyway around it without changing the name of the folder?

Code: (Objective-C)
/Users/jonthornham/Jon/Thornham Incorporated/iPhone Development/Books/Programming in Objective-C 2.0/Chapter 16/Program 16.1/build/Debug

I get this error

Code: (Objective-C)
-bash: cd: /Users/jonthornham/Jon/Thornham: No such file or directory

Thanks,

Jon
Logged

Jon Thornham
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #3 on: October 20, 2009, 04:32:12 AM »

Put the folder name inside a pair of quotes (either single '...' or double "..." will do).

Cheers,

Steve Kochan
P.S. You can always read my shell programming book ("Unix Shell Programming") if you really want to learn this stuff.   Grin

Logged
toby
Full Member
***
Posts: 104


« Reply #4 on: October 20, 2009, 07:32:35 AM »

Steve Kochan
P.S. You can always read my shell programming book ("Unix Shell Programming") if you really want to learn this stuff.   Grin

Sweet Smiley i need to learn this stuff sometime soonish
Logged
jonthornham
Full Member
***
Posts: 169



WWW Email
« Reply #5 on: October 20, 2009, 02:12:09 PM »

Thanks for the help. How important is this to an iPhone programmer on a 1 to 10?

Jon
Logged

Jon Thornham
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #6 on: October 21, 2009, 10:29:24 AM »

Maybe 3-4.  Since OS X is based on Unix, it never hurts to have extra skills to help speed up the development process.  I still do many tasks in Terminal, but that's based on my extensive Unix background.

Cheers,

Steve Kochan
« Last Edit: October 21, 2009, 11:33:39 AM by skochan » Logged
jonthornham
Full Member
***
Posts: 169



WWW Email
« Reply #7 on: October 21, 2009, 01:03:27 PM »

Thanks for the help. I'll have to take a look at the book.

Jon
Logged

Jon Thornham
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.