Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

our FTP server is close to full and I want to figure out what's taking up the most space - is there a way to write a script or use some software or something to list all files in order of size from greatest to smallest? It is a linux server. I have FTP access but no SSH access at the moment.

share|improve this question
Do you only have access to the server via FTP? Or can you login to it? What kind of system is it? Windows? Linux? AIX? Solaris? HP-UX? OS/2? – MikeyB Jul 27 '11 at 15:23
I have FTP access. It is a Linux server. I do not have SSH access. – mheavers Jul 27 '11 at 15:25

1 Answer 1

up vote 2 down vote accepted

From your FTP client, run:

ls -alR

capture the output and parse it as you please.

share|improve this answer
I get a blank response. 500 unknown command – mheavers Jul 27 '11 at 18:37
Then the FTP server doesn't support it. Easiest way is to get in touch with the admins of the server and just ask them for, say, the output of df -k. – MikeyB Jul 27 '11 at 18:39
ok, thanks for your help – mheavers Jul 27 '11 at 18:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.