The touch Command
Examples
[root@academy F1]# ls
[root@academy F1]# touch file.txt
[root@academy F1]# ls
file.txt
[root@academy F1]# cat file.txt
[root@academy F1]#[root@academy F1]# stat file.txt
File: ‘file.txt’
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 17214607 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2023-12-22 16:59:08.967907744 +0330
Modify: 2023-12-22 16:59:08.967907744 +0330
Change: 2023-12-22 16:59:08.967907744 +0330
Birth: -
[root@academy F1]# touch -c file.txt
[root@academy F1]# stat file.txt
File: ‘file.txt’
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 17214607 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2023-12-22 17:01:49.269906649 +0330
Modify: 2023-12-22 17:01:49.269906649 +0330
Change: 2023-12-22 17:01:49.269906649 +0330
Birth: -
[root@academy F1]#Last updated