Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

How to do a move in FTP

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 06-29-2005
steiner steiner is offline
Registered User
Join Date: Jul 2003
Last Activity: 8 May 2015, 10:07 AM EDT
Location: Saint-Avold - France
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
How to do a move in FTP


I need to do a move for a file when I am connected to a server with Ftp.

Is that possible ???

Sponsored Links
Old Unix and Linux 06-29-2005
vino's Unix or Linux Image
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
Join Date: Feb 2005
Last Activity: 8 February 2016, 5:12 PM EST
Location: Sydney, Down Under
Posts: 2,848
Thanks: 0
Thanked 13 Times in 13 Posts
Two possible situations in this case.

1. You want to move the file you just transferred.
2. You want to move a file which was not transferred.

For 1. you can ftp as follows

get/put original.file.name new.file.name

i.e. you can decide what name to want to save it as. If, new.file.name is not provided, original.file.name is picked up.

For case 2. I dont know.. Linux

Sponsored Links
Old Unix and Linux 06-29-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
Join Date: Mar 2005
Last Activity: 3 October 2016, 6:30 AM EDT
Location: classification algos
Posts: 3,206
Thanks: 19
Thanked 30 Times in 27 Posts
i presume u r concerned about a move(rename)

you have rename command in FTP (standards)


you will have rename command there
Old Unix and Linux 06-29-2005
zylwyz's Unix or Linux Image
zylwyz zylwyz is offline
Registered User
Join Date: Jun 2005
Last Activity: 15 May 2006, 12:33 PM EDT
Location: I'm living in Unix :)
Posts: 53
Thanks: 0
Thanked 2 Times in 1 Post

You can use and this too:
$ ftp
ftp > open site.com
lcd ~/uploads # local navigation
put file.c
get file.c
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Awk & Move moe458 Shell Programming and Scripting 7 10-14-2010 03:20 PM
need to move files of particular day from one dir to another dir ss_ss Shell Programming and Scripting 3 03-28-2009 05:56 PM
scan and move tjmannonline UNIX for Dummies Questions & Answers 3 03-10-2009 06:21 AM
move in ksh mqasim Shell Programming and Scripting 1 11-12-2008 03:35 PM
move from an HP box to Sun Box luker UNIX Benchmarks 4 08-06-2005 05:44 AM

All times are GMT -4. The time now is 03:08 PM.