The KIO KDE equivalent:
$ kioclient stat sftp://localhost/usr/src NAME src SIZE 0 FILE_TYPE 0040000 USER 0 GROUP 0 ACCESS 0755 MODIFICATION_TIME Sun Nov 3 13:14:31 2024 ACCESS_TIME Sun Nov 24 20:10:37 2024 Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalThe KIO KDE equivalent:
$ kioclient stat sftp://localhost/usr/src NAME src SIZE 0 FILE_TYPE 0040000 USER 0 GROUP 0 ACCESS 0755 MODIFICATION_TIME Sun Nov 3 13:14:31 2024 ACCESS_TIME Sun Nov 24 20:10:37 2024 The KIO KDE equivalent:
$ kioclient stat sftp://localhost/usr/src NAME src SIZE 0 FILE_TYPE 0040000 USER 0 GROUP 0 ACCESS 0755 MODIFICATION_TIME Sun Nov 3 13:14:31 2024 ACCESS_TIME Sun Nov 24 20:10:37 2024 $ sshfs localhost:/usr mnt $ ls --full-time mnt total 116 drwxr-xr-x 1 root root 60478 2024-12-17 06:12:02.000000000 +0000 bin/ drwxr-xr-x 1 root root 0 2024-11-03 13:06:44.000000000 +0000 games/ drwxr-xr-x 1 root root 4166 2024-12-15 13:01:36.000000000 +0000 include/ drwxr-xr-x 1 root root 2636 2024-12-11 19:47:15.000000000 +0000 lib/ drwxr-xr-x 1 root root 1626 2024-12-06 07:54:35.000000000 +0000 lib32/ drwxr-xr-x 1 root root 40 2024-12-06 07:54:40.000000000 +0000 lib64/ drwxr-xr-x 1 root root 6312 2024-12-17 06:12:15.000000000 +0000 libexec/ drwxr-xr-x 1 root root 1728 2024-12-06 07:54:38.000000000 +0000 libx32/ drwxr-xr-x 1 root root 72 2021-06-27 07:13:26.000000000 +0100 local/ drwxr-xr-x 1 root root 12014 2024-12-17 06:12:15.000000000 +0000 sbin/ drwxr-xr-x 1 root root 6646 2024-12-13 12:56:11.000000000 +0000 share/ drwxr-xr-x 1 root root 0 2024-11-03 13:14:31.000000000 +0000 src/ $ ls --time=birth -l mnt total 116 drwxr-xr-x 1 root root 60478 ? bin/ drwxr-xr-x 1 root root 0 ? games/ drwxr-xr-x 1 root root 4166 ? include/ drwxr-xr-x 1 root root 2636 ? lib/ drwxr-xr-x 1 root root 1626 ? lib32/ drwxr-xr-x 1 root root 40 ? lib64/ drwxr-xr-x 1 root root 6312 ? libexec/ drwxr-xr-x 1 root root 1728 ? libx32/ drwxr-xr-x 1 root root 72 ? local/ drwxr-xr-x 1 root root 12014 ? sbin/ drwxr-xr-x 1 root root 6646 ? share/ drwxr-xr-x 1 root root 0 ? src/ Or Gnome I/O (as you'd use in nautilus, Gnome's default file manager for instance) and its gio CLI interface:
$ gio mount sftp://localhost/usr $ gio list -a time sftp://localhost/usr bin 60486 (directory) time::modified=1734422749 time::access=1734422773 sbin 12014 (directory) time::modified=1734415935 time::access=1734415955 lib 2636 (directory) time::modified=1733946435 time::access=1734415801 lib32 1626 (directory) time::modified=1733471675 time::access=1734415801 lib64 40 (directory) time::modified=1733471680 time::access=1734036576 libx32 1728 (directory) time::modified=1733471678 time::access=1734415801 share 6646 (directory) time::modified=1734094571 time::access=1734277015 games 0 (directory) time::modified=1730639204 time::access=1732375138 include 4166 (directory) time::modified=1734267696 time::access=1734330298 src 0 (directory) time::modified=1730639671 time::access=1732479037 libexec 6312 (directory) time::modified=1734415935 time::access=1734415955 local 72 (directory) time::modified=1624774406 time::access=1732384794 $ gio info sftp://localhost/usr/src display name: src edit name: src name: src type: directory size: 0 uri: sftp://localhost/usr/src local path: /run/user/1000/gvfs/sftp:host=localhost/usr/src unix mount: gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 attributes: standard::type: 2 standard::is-symlink: FALSE standard::name: src standard::display-name: src standard::edit-name: src standard::icon: inode-directory, folder, inode-directory-symbolic, folder-symbolic standard::content-type: inode/directory standard::fast-content-type: inode/directory standard::size: 0 standard::symbolic-icon: inode-directory-symbolic, folder-symbolic, inode-directory, folder etag::value: 1730639671 id::filesystem: sftp:host=localhost access::can-read: TRUE access::can-execute: TRUE access::can-trash: FALSE time::modified: 1730639671 time::access: 1732479037 unix::mode: 16877 unix::uid: 0 unix::gid: 0 $ ls -l --full-time /run/user/1000/gvfs/sftp:host=localhost/usr total 97 drwxr-xr-x 1 chazelas chazelas 60486 2024-12-17 08:05:49.000000000 +0000 bin/ drwxr-xr-x 1 chazelas chazelas 0 2024-11-03 13:06:44.000000000 +0000 games/ drwxr-xr-x 1 chazelas chazelas 4166 2024-12-15 13:01:36.000000000 +0000 include/ drwxr-xr-x 1 chazelas chazelas 2636 2024-12-11 19:47:15.000000000 +0000 lib/ drwxr-xr-x 1 chazelas chazelas 1626 2024-12-06 07:54:35.000000000 +0000 lib32/ drwxr-xr-x 1 chazelas chazelas 40 2024-12-06 07:54:40.000000000 +0000 lib64/ drwxr-xr-x 1 chazelas chazelas 6312 2024-12-17 06:12:15.000000000 +0000 libexec/ drwxr-xr-x 1 chazelas chazelas 1728 2024-12-06 07:54:38.000000000 +0000 libx32/ drwxr-xr-x 1 chazelas chazelas 72 2021-06-27 07:13:26.000000000 +0100 local/ drwxr-xr-x 1 chazelas chazelas 12014 2024-12-17 06:12:15.000000000 +0000 sbin/ drwxr-xr-x 1 chazelas chazelas 6646 2024-12-13 12:56:11.000000000 +0000 share/ drwxr-xr-x 1 chazelas chazelas 0 2024-11-03 13:14:31.000000000 +0000 src/ $ sshfs localhost:/usr mnt $ ls --full-time mnt total 116 drwxr-xr-x 1 root root 60478 2024-12-17 06:12:02.000000000 +0000 bin/ drwxr-xr-x 1 root root 0 2024-11-03 13:06:44.000000000 +0000 games/ drwxr-xr-x 1 root root 4166 2024-12-15 13:01:36.000000000 +0000 include/ drwxr-xr-x 1 root root 2636 2024-12-11 19:47:15.000000000 +0000 lib/ drwxr-xr-x 1 root root 1626 2024-12-06 07:54:35.000000000 +0000 lib32/ drwxr-xr-x 1 root root 40 2024-12-06 07:54:40.000000000 +0000 lib64/ drwxr-xr-x 1 root root 6312 2024-12-17 06:12:15.000000000 +0000 libexec/ drwxr-xr-x 1 root root 1728 2024-12-06 07:54:38.000000000 +0000 libx32/ drwxr-xr-x 1 root root 72 2021-06-27 07:13:26.000000000 +0100 local/ drwxr-xr-x 1 root root 12014 2024-12-17 06:12:15.000000000 +0000 sbin/ drwxr-xr-x 1 root root 6646 2024-12-13 12:56:11.000000000 +0000 share/ drwxr-xr-x 1 root root 0 2024-11-03 13:14:31.000000000 +0000 src/ $ ls --time=birth -l mnt total 116 drwxr-xr-x 1 root root 60478 ? bin/ drwxr-xr-x 1 root root 0 ? games/ drwxr-xr-x 1 root root 4166 ? include/ drwxr-xr-x 1 root root 2636 ? lib/ drwxr-xr-x 1 root root 1626 ? lib32/ drwxr-xr-x 1 root root 40 ? lib64/ drwxr-xr-x 1 root root 6312 ? libexec/ drwxr-xr-x 1 root root 1728 ? libx32/ drwxr-xr-x 1 root root 72 ? local/ drwxr-xr-x 1 root root 12014 ? sbin/ drwxr-xr-x 1 root root 6646 ? share/ drwxr-xr-x 1 root root 0 ? src/ $ sshfs localhost:/usr mnt $ ls --full-time mnt total 116 drwxr-xr-x 1 root root 60478 2024-12-17 06:12:02.000000000 +0000 bin/ drwxr-xr-x 1 root root 0 2024-11-03 13:06:44.000000000 +0000 games/ drwxr-xr-x 1 root root 4166 2024-12-15 13:01:36.000000000 +0000 include/ drwxr-xr-x 1 root root 2636 2024-12-11 19:47:15.000000000 +0000 lib/ drwxr-xr-x 1 root root 1626 2024-12-06 07:54:35.000000000 +0000 lib32/ drwxr-xr-x 1 root root 40 2024-12-06 07:54:40.000000000 +0000 lib64/ drwxr-xr-x 1 root root 6312 2024-12-17 06:12:15.000000000 +0000 libexec/ drwxr-xr-x 1 root root 1728 2024-12-06 07:54:38.000000000 +0000 libx32/ drwxr-xr-x 1 root root 72 2021-06-27 07:13:26.000000000 +0100 local/ drwxr-xr-x 1 root root 12014 2024-12-17 06:12:15.000000000 +0000 sbin/ drwxr-xr-x 1 root root 6646 2024-12-13 12:56:11.000000000 +0000 share/ drwxr-xr-x 1 root root 0 2024-11-03 13:14:31.000000000 +0000 src/ $ ls --time=birth -l mnt total 116 drwxr-xr-x 1 root root 60478 ? bin/ drwxr-xr-x 1 root root 0 ? games/ drwxr-xr-x 1 root root 4166 ? include/ drwxr-xr-x 1 root root 2636 ? lib/ drwxr-xr-x 1 root root 1626 ? lib32/ drwxr-xr-x 1 root root 40 ? lib64/ drwxr-xr-x 1 root root 6312 ? libexec/ drwxr-xr-x 1 root root 1728 ? libx32/ drwxr-xr-x 1 root root 72 ? local/ drwxr-xr-x 1 root root 12014 ? sbin/ drwxr-xr-x 1 root root 6646 ? share/ drwxr-xr-x 1 root root 0 ? src/ Or Gnome I/O (as you'd use in nautilus, Gnome's default file manager for instance) and its gio CLI interface:
$ gio mount sftp://localhost/usr $ gio list -a time sftp://localhost/usr bin 60486 (directory) time::modified=1734422749 time::access=1734422773 sbin 12014 (directory) time::modified=1734415935 time::access=1734415955 lib 2636 (directory) time::modified=1733946435 time::access=1734415801 lib32 1626 (directory) time::modified=1733471675 time::access=1734415801 lib64 40 (directory) time::modified=1733471680 time::access=1734036576 libx32 1728 (directory) time::modified=1733471678 time::access=1734415801 share 6646 (directory) time::modified=1734094571 time::access=1734277015 games 0 (directory) time::modified=1730639204 time::access=1732375138 include 4166 (directory) time::modified=1734267696 time::access=1734330298 src 0 (directory) time::modified=1730639671 time::access=1732479037 libexec 6312 (directory) time::modified=1734415935 time::access=1734415955 local 72 (directory) time::modified=1624774406 time::access=1732384794 $ gio info sftp://localhost/usr/src display name: src edit name: src name: src type: directory size: 0 uri: sftp://localhost/usr/src local path: /run/user/1000/gvfs/sftp:host=localhost/usr/src unix mount: gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 attributes: standard::type: 2 standard::is-symlink: FALSE standard::name: src standard::display-name: src standard::edit-name: src standard::icon: inode-directory, folder, inode-directory-symbolic, folder-symbolic standard::content-type: inode/directory standard::fast-content-type: inode/directory standard::size: 0 standard::symbolic-icon: inode-directory-symbolic, folder-symbolic, inode-directory, folder etag::value: 1730639671 id::filesystem: sftp:host=localhost access::can-read: TRUE access::can-execute: TRUE access::can-trash: FALSE time::modified: 1730639671 time::access: 1732479037 unix::mode: 16877 unix::uid: 0 unix::gid: 0 $ ls -l --full-time /run/user/1000/gvfs/sftp:host=localhost/usr total 97 drwxr-xr-x 1 chazelas chazelas 60486 2024-12-17 08:05:49.000000000 +0000 bin/ drwxr-xr-x 1 chazelas chazelas 0 2024-11-03 13:06:44.000000000 +0000 games/ drwxr-xr-x 1 chazelas chazelas 4166 2024-12-15 13:01:36.000000000 +0000 include/ drwxr-xr-x 1 chazelas chazelas 2636 2024-12-11 19:47:15.000000000 +0000 lib/ drwxr-xr-x 1 chazelas chazelas 1626 2024-12-06 07:54:35.000000000 +0000 lib32/ drwxr-xr-x 1 chazelas chazelas 40 2024-12-06 07:54:40.000000000 +0000 lib64/ drwxr-xr-x 1 chazelas chazelas 6312 2024-12-17 06:12:15.000000000 +0000 libexec/ drwxr-xr-x 1 chazelas chazelas 1728 2024-12-06 07:54:38.000000000 +0000 libx32/ drwxr-xr-x 1 chazelas chazelas 72 2021-06-27 07:13:26.000000000 +0100 local/ drwxr-xr-x 1 chazelas chazelas 12014 2024-12-17 06:12:15.000000000 +0000 sbin/ drwxr-xr-x 1 chazelas chazelas 6646 2024-12-13 12:56:11.000000000 +0000 share/ drwxr-xr-x 1 chazelas chazelas 0 2024-11-03 13:14:31.000000000 +0000 src/ For instance, with lftp (which supports a large number of file transfer protocols including SFTP), you can use its cls command which does the formatting client-side and has a --time-style option à la GNU ls:
yafc (FTP and SFTP client) has a filetime command which gives the last modification time with second precision:
yafc chazelas@localhost:/usr> filetime src src: Sun Nov 3 13:14:31 2024 Or you can use the Net::SFTP::Foreign perl module:
For instance, with lftp, you can use its cls which does the formatting client-side and has a --time-style option à la GNU ls:
Or the Net::SFTP::Foreign perl module:
For instance, with lftp (which supports a large number of file transfer protocols including SFTP), you can use its cls command which does the formatting client-side and has a --time-style option à la GNU ls:
yafc (FTP and SFTP client) has a filetime command which gives the last modification time with second precision:
yafc chazelas@localhost:/usr> filetime src src: Sun Nov 3 13:14:31 2024 Or you can use the Net::SFTP::Foreign perl module: