Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-23-2004, 10:42 AM   #1
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?

Old 08-23-2004, 02:13 PM   #2
jim mcnamara
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
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49

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 - 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!

Jim McNamara


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 PM.

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