LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2004, 10:42 AM   #1
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
ftp CLI question


Ladies and Gentlemen,

Since graphical ftp programs are able to send directories, I'd bet there is a command or argument to get or mget to send directories. When I try to put a directory (say /home/jim/installs I get the message "/home/jim/installs not a regular file" ,and it says the same if I tell it to put or mput /home/jim/installs/). I know I can go within a the directory and mput *, but I would like to make it nice and clean, and get everything to go in one command.

man ftp and google searches didn't point me in any helpful directions - can somebody help me out please?

Thanks,
JimBass
 
Old 08-23-2004, 02:13 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
Unless I misunderstand -

What those ftp programs do is to create the directory remotely, then populate it with files as the files are moved over.

Here's why - file systems 'number' each file with something called an inode (gross oversimplification). This number could already be in use on the system you are sending the files to. If you simply plopped your directory file in there, it would point to already existing files. You would break the file system.

The inode is unique within a given file system. one physical file = one inode.
 
Old 08-23-2004, 02:26 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Jim,

Very good of you to answer, but I have to raise 1 issue with you:

I am Jim McNamara!

That's great though, Jim McNamara asks a question, and Jim McNamara answers the question. If we were John Smith or Bob Jones I would accept it easily. Are you the guy that owns jimmcnamara.com - I'm looking for him!

I had continued to research, and didn't find anything as short and simple as your answer, but came to understand that there seemed to be no way to move directories without the aid of a non-CLI client. That's a drag, as I am moving multiple websites from server to server, and they don't run x. I'll have to actually do some work, rather than select /var/www/html and be done with it. Oh well.

Thanks for the help in any case!

Peace
Jim McNamara
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp question blackzone Linux - Networking 2 09-14-2004 01:58 AM
simple CLI question about size of HD? Lleb_KCir Linux - General 4 06-10-2004 10:00 PM
Simple Newb Question: How do I check what version of Redhat is Installed from the CLI praefex Linux - General 1 01-27-2004 08:30 PM
cli:rpm question king_nothingzzz Linux - Software 2 01-16-2004 01:54 AM
CLI question SSA Linux - Newbie 2 01-19-2002 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration