LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-16-2007, 01:30 PM   #1
pramodmudrakarta
LQ Newbie
 
Registered: Jun 2007
Location: Mumbai, India
Distribution: Gentoo/Debian/Fedora
Posts: 12

Rep: Reputation: 0
Question Determining directory size in FTP


Hi,
Suppose that I am accessing my data on a server via FTP. Is there a way of determining the size of a directory on the server?
sftp doesn't have a "du"-like command too.

Thanks
Pramod
 
Old 07-16-2007, 01:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
directory sizes have nothing to do with networking. moved to Linux - Server. and are you talking about ftp or sftp? they are very different things.
 
Old 07-17-2007, 02:19 AM   #3
pramodmudrakarta
LQ Newbie
 
Registered: Jun 2007
Location: Mumbai, India
Distribution: Gentoo/Debian/Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
Okay, suppose I am using an ftp client like sftp/gftp to access data on a server. There is a certain directory on that server, the size of which I want to find out. I want a method for finding out the size.

Hope I am clear

Pramod
 
Old 07-17-2007, 02:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
as above, sftp is not ftp - you should read up on what they actually are. i thought that the dir command would list this, certianly somethign normally listed in ftp clients.
 
Old 07-17-2007, 08:37 AM   #5
pramodmudrakarta
LQ Newbie
 
Registered: Jun 2007
Location: Mumbai, India
Distribution: Gentoo/Debian/Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
When I mentioned FTP, I did not mean the program "ftp" but the FTP protocol; which is why I put it in capitals.
The size which any ftp-client shows is not the actual size of the folder. I want to determine the actual size of the folder.

Pramod
 
  


Reply

Tags
directory, ftp, size


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
Determining kernel ring buffer size jsteffe Linux - General 1 03-07-2007 04:00 PM
Determining directory sizes aquaboot Linux - Newbie 2 01-02-2006 11:39 AM
determining directory size supersucker Linux - Newbie 2 05-12-2005 12:47 PM
tput - determining window size subu_s Programming 2 12-06-2004 10:46 PM
SuSE 8.1 ftp complete directory tree size? cav Linux - General 2 04-01-2003 12:44 PM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration