Forrest logo
back to the cp tool

cp:ai:d72ae

Copy the latest file in the current directory to home dir
$ cp $(ls -t | head -1) ~/
try on your machine

Copy the latest file in the current directory to home dir

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • Copy the latest file in the current directory to home dir?
back to the cp tool