Forrest logo
back to the ls tool

ls:ai:06631

Add the number 1 to the start of each file's name using xargs
$ ls | xargs -I{} mv {} 1{}
try on your machine

Add the number 1 to the start of each file's name using xargs

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:

  • add a number to the start of files using xargs?
back to the ls tool