逆引きUNIXコマンド/atime,ctime,mtimeの取得・ls,stat
の編集
Top
/
逆引きUNIXコマンド
/
atime,ctime,mtimeの取得・ls,stat
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
#navi(../) * atime,ctime,mtimeの取得方法 [#m963692b] lsとstatコマンドを使用してatime, ctime, mtimeを表示してみます。 #contents #htmlinsertpcsp(linux_ads_top.html,linux-sp.html) * atime, ctime, mtimeとは? [#jc3d9cfa] atime, ctime, mtimeについて以下に記します。 :atime|''a''ccess ''time'' (アクセスした日時) :ctime|''c''hange ''time'' (ステータス変更を行った日時) :mtime|''m''odify ''time'' (データ変更を行った日時) * lsコマンドでatime, ctime, mtimeを確認 [#g8069774] - atime ls -lu - ctime ls -lc - mtime ls -l * statコマンドで確認 [#ccae0164] statコマンドで確認する場合は、以下の構文になります。 stat ファイル名 実際の実行例です。 sakura@ubuntu:~$ stat sakura.txt File: `sakura.txt' Size: 36 Blocks: 8 IO Block: 4096 通常ファイル Device: fc00h/64512d Inode: 658940 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ sakura) Gid: ( 1000/ sakura) Access: 2013-09-28 01:28:21.544796664 +0900 Modify: 2013-09-28 01:28:21.544796664 +0900 Change: 2013-09-28 01:28:21.548796598 +0900 Birth: - sakura@ubuntu:~$ 以上、atime,ctime,mtimeについてでした。 #htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
タイムスタンプを変更しない
#navi(../) * atime,ctime,mtimeの取得方法 [#m963692b] lsとstatコマンドを使用してatime, ctime, mtimeを表示してみます。 #contents #htmlinsertpcsp(linux_ads_top.html,linux-sp.html) * atime, ctime, mtimeとは? [#jc3d9cfa] atime, ctime, mtimeについて以下に記します。 :atime|''a''ccess ''time'' (アクセスした日時) :ctime|''c''hange ''time'' (ステータス変更を行った日時) :mtime|''m''odify ''time'' (データ変更を行った日時) * lsコマンドでatime, ctime, mtimeを確認 [#g8069774] - atime ls -lu - ctime ls -lc - mtime ls -l * statコマンドで確認 [#ccae0164] statコマンドで確認する場合は、以下の構文になります。 stat ファイル名 実際の実行例です。 sakura@ubuntu:~$ stat sakura.txt File: `sakura.txt' Size: 36 Blocks: 8 IO Block: 4096 通常ファイル Device: fc00h/64512d Inode: 658940 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ sakura) Gid: ( 1000/ sakura) Access: 2013-09-28 01:28:21.544796664 +0900 Modify: 2013-09-28 01:28:21.544796664 +0900 Change: 2013-09-28 01:28:21.548796598 +0900 Birth: - sakura@ubuntu:~$ 以上、atime,ctime,mtimeについてでした。 #htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
テキスト整形のルールを表示する