Command to create files with a future date do not show up in history

I ran this command to create a file with a file date of 2038.

However, history does not show the command.

touch -a -m -t 203801181205.09 tgs.txt

I thought that was interesting.

What do you think?

what do you mean, "history does not show the command?"

if I type history, I get

...
2146  man touch
2147  touch -a -m -t 203801181205.09 tgs.txt
2148  ll
...

ls -l

-rw-rw-r-- 1 user user 0 Jan 18 2038 tgs.txt

stat tgs.txt

  File: tgs.txt
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 802h/2050d	Inode: 29757843    Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)
Access: 2038-01-18 12:05:09.000000000 -0700
Modify: 2038-01-18 12:05:09.000000000 -0700
Change: 2020-07-31 11:35:51.832024236 -0700
 Birth: -

All seem ok to me.

1 Like

Now it is working for me.

Maybe I had two terminals open?