jreed2132 Posted October 13, 2009 Share Posted October 13, 2009 What command or script do you use to move files from one directory to another? I've found commands for making directories, renaming files, or deleting files, but what is used to move a file? Quote Link to comment Share on other sites More sharing options...
Maq Posted October 13, 2009 Share Posted October 13, 2009 mv I'm sure you could find documentation online... Quote Link to comment Share on other sites More sharing options...
broseph Posted October 13, 2009 Share Posted October 13, 2009 *nix man pages are your FRIEND! you can MOVE: man mv you can COPY: man cp Quote Link to comment Share on other sites More sharing options...
jreed2132 Posted October 13, 2009 Author Share Posted October 13, 2009 Ok, sorry, should have been a little more clear. I want to do this through PHP on a web site. Quote Link to comment Share on other sites More sharing options...
Maq Posted October 13, 2009 Share Posted October 13, 2009 Ok, sorry, should have been a little more clear. I want to do this through PHP on a web site. PHP has a function shell_exec that allows you to, well, execute shell commands. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 13, 2009 Share Posted October 13, 2009 By the way, renaming a file is essentially the same as moving it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.