講師Xこと鯨井貴博です音譜


touchコマンド
-------
touchコマンドは、以下の2つの機能を持っております。
①空ファイル(ファイルサイズ0)を作成する
②ファイルのタイムスタンプを変更する


実行結果
-------
①空ファイル作成
[root@lppc21 test]# touch testfile
[root@lppc21 test]# ls -l testfile
-rw-r--r--. 1 root root 0 9月 3 14:57 2013 testfile
②タイムスタンプ変更
[root@lppc21 test]# touch -t 202001010000 testfile
[root@lppc21 test]# ls -l testfile
-rw-r--r--. 1 root root 0 1月 1 00:00 2020 testfile