On Fri, 27 Jul 2012 10:55:24 +0200, Jeremy MAURO wrote: > On my debian box ( Debian: 5.0.10/openssh-server: 1:5.1p1-5) I see the > wierd behavior:
(...) > sftp> ls -l old > -rw-r--r-- 1 user 100 9802 Jul 17 09:57 > 20120717_full_delhaizedirect_categories.zip (...) > sftp> ls -l -h old > -rw-r--r-- 0 1047 100 9.6K Jul 17 11:57 > old/20120717_full_delhaizedirect_categories.zip (...) > As you can see there a date difference. (...) Yes, there's a shift of "+0200" hours when using "-h" from sftp ls built-in command. In my lenny systems (clients and servers) there's not such a flag for sftp client: sftp> ls -lh ls: Invalid flag -h > Why do I see the difference with sftp and I don't see any difference > when I am logging with ssh on the server (...) > # ls -l old/ > total 29801 > -rw-r--r-- 1 user users 9802 jui 17 11:57 > 20120717_full_delhaizedirect_categories.zip (...) > # ls -l -h > old/ total 30M > -rw-r--r-- 1 user users 9,6K jui 17 11:57 > 20120717_full_delhaizedirect_categories.zip (...) Different commands, different libraries, I guess. But I'm curious about the difference between "ls -l" and "ls -lh" when both are executed from sftp. Maybe is that the human readeable flag uses the local time of the host instead? :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/juuahs$2bd$6...@dough.gmane.org