Unix Command Line Question

moz


Joined
Mar 1, 2005
Messages
30
Reaction score
0
Points
6
Location
Liverpool
Your Mac's Specs
G4 ibook 1.33, 512 ram, 80gig hd, bluetooth and airport
Hi all,

Say I have downloaded a file from the net and I want to move it from the desktop to the \keystore\cacaerts folder, instead of drag and dropping the file, is there a command I can type into the Terminal tool instead?

Cheers

Mark
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
cd ~/Desktop
mv filename ~/keystore/cacaerts/filename

Notice the direction of the slashes...
mv = move file
 
OP
M

moz


Joined
Mar 1, 2005
Messages
30
Reaction score
0
Points
6
Location
Liverpool
Your Mac's Specs
G4 ibook 1.33, 512 ram, 80gig hd, bluetooth and airport
cradom said:
cd ~/Desktop
mv filename ~/keystore/cacaerts/filename

Notice the direction of the slashes...
mv = move file

Thats great, thankyou!
 
Joined
Apr 3, 2006
Messages
202
Reaction score
0
Points
16
Your Mac's Specs
iMac Intel Core Duo 17" A Little Piece Of Heaven
It can also be done with the automator, so if you have to move files on a daily basis than that might be easier, and less tedious.
 
Joined
Jun 25, 2004
Messages
1,779
Reaction score
65
Points
48
Location
Luxemburg, Europe
Your Mac's Specs
PowerMac G5 Dual 2GHz (June 2004), 2.5GB, Airport, black 5G iPod 30GB, white MacBook 2.0 2GB
Why not simply tell Safari (or whatever browser you use) to store downloaded files in the folder you want?

Doesn't require any terminal command, nor Automator action. :cool:

And, honestly...if you don't know what you do in Terminal (which I assume, as cd and mv are VERY basic commands any UNIX or Linux user knows by heart), drag & drop is the way to go. It's easy, intuitive and not very dangerous.
You type something wrong in Terminal, and might end up with loosing your file.
 

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