FTP command line - magic numbers | undocumented features

G

Guest

if you "dir" after you have logon through command line I get something like
this:

-rw-r--r-- 1 john none 3159 Dec 5 10:32 ftp.vbs
-rw-r--r-- 1 john none 2023 Nov 23 09:02 help2.vbs
-rw-r--r-- 1 john none 2995 Nov 23 09:02 scripthelp.vbs
drwxr-xr-x 2 john none 4096 Dec 6 12:24 test

My question is in relation to the "1 john none" bit, what does the 1
actually means? I believe 1 represents a file and 2 represent a folder, but I
am not 100% sure, then I think john is the file owner (again not sure) and
finally "none" I have absolutely no idea at all.

Does anybody have any suggestion where I can find this information or have
any info regarding any of this data?

Thanks in advance

JT.
 
S

Stan Brown

Wed, 7 Dec 2005 04:15:02 -0800 from John
if you "dir" after you have logon through command line I get something like
this:

-rw-r--r-- 1 john none 3159 Dec 5 10:32 ftp.vbs
-rw-r--r-- 1 john none 2023 Nov 23 09:02 help2.vbs
-rw-r--r-- 1 john none 2995 Nov 23 09:02 scripthelp.vbs
drwxr-xr-x 2 john none 4096 Dec 6 12:24 test

My question is in relation to the "1 john none" bit, what does the 1
actually means? I believe 1 represents a file and 2 represent a folder, but I
am not 100% sure, then I think john is the file owner (again not sure) and
finally "none" I have absolutely no idea at all.

Does anybody have any suggestion where I can find this information or have
any info regarding any of this data?

It looks very much like the output of the UNIX "ls" command
(equivalent of XP's command-line "dir"). That doesn't necessarily
mean the remote system is UNIX; some ftp programs filter everything
through a UNIX-like interface.

The numbers you refer to are file sizes. I'm guessing they're in
allocation units rather than bytes, since I've never seen a 2-byte
directory, but the size of the allocation unit is different on
different systems.

The first character on each line tells whether it's a file ("-") or
directory ("d", "folder" to XP users). Next are permissions. I
believe "john" is the user name that created the file, but I can't
remember what "none" is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top