Solved

ftp moving a folder with winscp without moving back and forth

Posted on 2014-12-09
5
173 Views
Last Modified: 2014-12-25
without telling me to
save local on windows and upload after to the new folder. Direct moving can be disabled on the linux server.

using winscp for windows with ftp login on a shared linux server

I want to move a folder to another folder

I can not do other login other than ftp

Please do not suggest other types of logins.
0
Comment
Question by:rgb192
5 Comments
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40489151
Once connected, in WinSCP type ctrl-t to get a console window. If that works you can:

pwd
cd /some/folder
mv subfolder1 subfolder2

then just close the console window and close the session.
0
 

Author Comment

by:rgb192
ID: 40490241
/$ pwd
257 "/" is your current location
/$ mv others public_html
500 Unknown command

Open in new window


I want to move 'others' folder
to public_html

because 'others' folder is not visible on the internet browser. Only public_html is accessible and visible.


UPDATE:

the only command that works for me is
pwd
/$ pwd
257 "/" is your current location
/$ cd public_html
500 Unknown command
/$ ls
500 Unknown command
/$ dir
500 Unknown command
/$ pwd
257 "/" is your current location

Open in new window

0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40490413
Who is managing the ftp server? what type of ftp server is running?

Is there a firewall between your system and the network? Some application firewalls will allow / block certain application commands.
0
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 40490712
Maybe I missed something, but using the GUI is not an option? Just drag and drop 'others' onto 'public_html' seems to work without a hitch (either in Commander mode or Explorer mode, using the directory tree for example).

Anyway, using the terminal/console (Ctrl+T) the below also works for me, and possibly will show you a better error message if there's something else going on like a permissions problem.

Type:
rnfr others

Open in new window

response should be
350 File exists, ready for destination name.

Open in new window

then type:
rnto public_html/others

Open in new window

response should be:
250 RNTO command successful.

Open in new window

and you should be good to go...
capture
0
 

Author Closing Comment

by:rgb192
ID: 40517621
Thanks for documentation.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now