GeeXboxに日付が表示されませんか?

GeeXboxに日付が表示されませんか?

最近、WinSCPを介してGeeXboxに接続しようとしましたが、解析lsできない出力を示すエラーが発生しました。

明らかに私のものにはlsタイムスタンプは含まれていません!原因は何で、どのように解決できますか?下記のサンプル出力をご覧ください。

$ ls -la
total 96
drwxrwxr-x   17 root     root          4096 .
drwxrwxr-x   17 root     root          4096 ..
lrwxrwxrwx    1 root     root             7 bin -> usr/bin
-rw-rw-r--    1 root     root         39779 config
drwxr-xr-x   13 root     root          3980 dev
drwxrwxr-x   29 root     root          4096 etc

私の特別ls --helpオファーは次のとおりです。

$ ls --help
BusyBox v1.23.0.git (2014-05-19 13:33:13 IDT) multi-call binary.

Usage: ls [-1AaCxdlinshrSXv] [-w WIDTH] [FILE]...

List directory contents

    -1      One column output
    -a      Include entries which start with .
    -A      Like -a, but exclude . and ..
    -C      List by columns
    -x      List by lines
    -d      List directory entries instead of contents
    -l      Long listing format
    -i      List inode numbers
    -n      List numeric UIDs and GIDs instead of names
    -s      List allocated blocks
    -h      List sizes in human readable format (1K 243M 2G)
    -r      Sort in reverse order
    -S      Sort by size
    -X      Sort by extension
    -v      Sort by version
    -w N    Assume the terminal is N columns wide
    --color[={always,never,auto}]   Control coloring

ベストアンサー1

一般的に「専用デバイス」であるシステムは BusyBox というツールを使用します。以下についてもっと読むことができます。BusyBoxプロジェクトしかし、簡単に言えば、このプロジェクトは、lsなどの一般的なツールの合理化されたバージョンを提供します。

BusyBoxを使用するXBMCのインストールにはlsls -l-e

# ls --help
BusyBox v1.21.0 (2013-01-22 19:16:54 CET) multi-call binary.

Usage: ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...

List directory contents

    -1  One column output
    -a  Include entries which start with .
    -A  Like -a, but exclude . and ..
    -C  List by columns
    -x  List by lines
    -d  List directory entries instead of contents
    -L  Follow symlinks
    -H  Follow symlinks on command line
    -R  Recurse
    -p  Append / to dir entries
    -F  Append indicator (one of */=@|) to entries
    -l  Long listing format
    -i  List inode numbers
    -n  List numeric UIDs and GIDs instead of names
    -s  List allocated blocks
    -e  List full date and time
    -h  List sizes in human readable format (1K 243M 2G)
    -r  Sort in reverse order
    -S  Sort by size
    -X  Sort by extension
    -v  Sort by version
    -c  With -l: sort by ctime
    -t  With -l: sort by mtime
    -u  With -l: sort by atime
    -w N    Assume the terminal is N columns wide
    --color[={always,never,auto}]   Control coloring

だから私はあなたが2つのシナリオのうちの1つを経験していると仮定します。

  1. あなたのBusyBoxバージョンには、出力にタイムスタンプは含まれていません-l。ところで、これが本当かどうか疑われます。
  2. mountこの情報を追跡する必要があるオーバーヘッドのため、ファイルシステムではオプションでタイムスタンプ追跡が無効になりました。

noatimeたとえば、ファイルシステムでアクセス時間追跡を無効にするオプションがあります。

$ mount -v
/dev/mmcblk0p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

おすすめ記事