Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルが最後に変更されてからの時間を秒単位で取得する必要があります。 ls -lそれを示していません。
ls -l
BASH では、これを最後に変更してからの秒数に使用します。
expr `date +%s` - `stat -c %Y /home/user/my_file`