New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

change directory


Post Reply New Thread Subscribe

 
Thread Tools
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
Hi,

On terminal every i type in 'pwd' it displays the word dropbox before my user ID, is there anyway i can reverse this?

Any help would be appreicated

#completenovice
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,756
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Just to clarify, if I execute pwd in my home directory, I get what you'd expect: /Users/vansmith. Are you saying that you get something similar to the following: /Users/dropboxvansmith?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
Yes I get /Users/jordanHarris/Dropbox, i attempted to link my documents with dropbox by typing in cd dropbox into terminal.

I just want to revert back to how it was before i tampered with it
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,756
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
pwd is doing what it should - you're in your Dropbox folder. If you changed into the Dropbox folder, that would become your current working directory.

I'm still unsure what you did. What do you mean by "linking" your documents with Dropbox?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
This is the two lines i put into terminal in order to make dropbox my default documents folder:
jordanHarris$ cd dropbox
jc-mac-pro:dropbox jordanHarris$ -s~/Documents/ Documents
-bash: -s~/Documents/: No such file or directory
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,756
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You're missing part of a command there. The -s at the beginning is called a parameter or a switch. Think of it as something that augments a command. With that said, my guess is that you meant to execute the following:
Code:
ln -s ~/Documents/ Documents
Might I ask what it is that you're trying to accomplish?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
I saw a youtube clip of how to make Dropbox your default document folder so i could have documents on multiple devices and they would sync automatically.

That was the code that was displayed on the screen and I just copied it, pretty stupid thing to do.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,756
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You'd have to delete your Documents folder and then symlink it to ~/Dropbox which I'd highly recommend against doing. Although possible, note that content you don't necessarily create may be stored in ~/Documents (using myself as an example, I have MS Office and Civ4 data stored there).

Why not just save things to your Dropbox folder? Wouldn't that be much easier?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
That's what i've began doing, makes sense.

Just want to know whether i've done some irreparable damage or interfered with the settings that will affect the performance of the computer?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,756
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by jch57 View Post
That's what i've began doing, makes sense.

Just want to know whether i've done some irreparable damage or interfered with the settings that will affect the performance of the computer?
The commands you entered above are as follows (quoted for ease of explanation):
Quote:
Originally Posted by jch57 View Post
jordanHarris$ cd dropbox
jc-mac-pro:dropbox jordanHarris$ -s~/Documents/ Documents
-bash: -s~/Documents/: No such file or directory
The first one (cd dropbox) simply changes the directory which is akin to opening a folder in Finder. The second command (-s~/Documents/ Documents) isn't actually a command so nothing happened.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
jch57

 
Member Since: Dec 13, 2011
Posts: 6
jch57 is on a distinguished road

jch57 is offline
That's put my mind at rest. Many thanks for your swift assistance, I won't be trying anything like that again without proper help.

Thanks Again
QUOTE Thanks

Post Reply New Thread Subscribe


« Have I restored eMac to factory settings? | Everything's screwed. »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
change resolution in only one app FireBurt OS X - Operating System 2 02-10-2011 09:12 PM
changing directory in Mac Terminal? volterony Apple Notebooks 5 11-06-2010 12:36 PM
Change directory to flash drive georgepag OS X - Operating System 1 10-24-2010 10:04 PM
Removing Keychain login message hobblyjig OS X - Operating System 11 06-02-2010 07:14 PM
File Associations - Change All Not Working!? SunPro02 OS X - Operating System 2 06-28-2007 02:42 PM

All times are GMT -4. The time now is 08:46 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?