Hi Team,
Could you please let me know ,how to find the file creation date time in SFTP server.
i tred like , ls -ltr command only availble and not available like ls --full-time test.txt
please help?
Thanks
Hi Team,
Could you please let me know ,how to find the file creation date time in SFTP server.
i tred like , ls -ltr command only availble and not available like ls --full-time test.txt
please help?
Thanks
If the time stamp supplied by sftp
's ls -l
is not sufficient for you, you may need to fallback to ssh
opening a session to the target host and issuing your ls --full-time
command. Please be aware that not all *nix systems provide the file creation date/time.
In addition to what RudiC has already said, please also be aware that not all versions of the ls
utility have a --full-time
option.
To be able to answer your question we'd first have to know what operating system is running on the SFTP server and the filesystem type on which the files you want to examine reside on that server.
thanks Rudic... tried using SSH command it is not working as getting the below error after type the password.
"PTY allocation request failed on channel 0"
Works for me. Show what you did.
$ssh username@hostname
after that enter..then it will ask the password and typed it is not working
Did that ever succeed before?
No obvious solution to the problem. Try
ssh -t user@host
or ssh -tt user@host
ssh user@host ls -l test.txt
ssh -v user@host
(up to three v
s)Thanks,i am going to use SSH to get the file creation time.
and it is working fine. Thanks a lot.