How can I upload an entire folder via FTP Mac Terminal?
In the Terminal app on your Mac, use the mv command to move files or folders from one location to another on the same computer. The mv command moves the file or folder from its old location and puts it in the new location.
In the Terminal app on your Mac, use the cp command to make a copy of a file. The -R flag causes cp to copy the folder and its contents. Note that the folder name does not end with a slash, which would change how cp copies the folder.
Do you have to use ftp
? I like to use scp
(secure copy) when the remote host supports ssh (as so many of them do).
scp -r mydirectory [email protected]:destdir
The -r
means "recursive" so it will recursively copy the entire directory. Replace username
with your username, etc., etc. destdir
is a relative path on the remote server (whatever directory you wind up in if you log in) as long as you don't use a leading slash /
-- then it will be an absolute path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With