change directory

Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,946
Reaction score
581
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
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?
 
OP
J
Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,946
Reaction score
581
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
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?
 
OP
J
Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,946
Reaction score
581
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
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?
 
OP
J
Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,946
Reaction score
581
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
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?
 
OP
J
Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,946
Reaction score
581
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
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):
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.
 
OP
J
Joined
Dec 13, 2011
Messages
6
Reaction score
0
Points
1
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
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top