Skip to content

touchコマンド(LPIC)

   

touch

ファイルを作成するコマンドです。

サンプル

hello.txtを作る

$ touch hello.txt

タイムスタンプを指定してhello.txtを作る

$ touch --date="2022/8/8 12:00" 8-8.txt 
$ ls -l 8-8.txt 
-rw-r--r-- 1 root root 0 Aug  8 12:00 8-8.txt

関連記事

  1. rmdirコマンド(LPIC)
  2. rmコマンド(LPIC)
  3. mkdirコマンド(LPIC)
  4. mvコマンド(LPIC)
  5. cpコマンド(LPIC)
  6. lsコマンド(LPIC)
  7. LPICレベル1で出てくるLinuxコマンドのまとめ