Read more

How to move all files in a folder to a new subfolder

Emanuel
September 12, 2017Software engineer at makandra GmbH

Let's say you have a folder images and want to to move all files in there to a new subfolder public.

cd images
mkdir public
mv !(public) public
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

The !(public) excludes the new subfolder itself from being moved.

Posted by Emanuel to makandra dev (2017-09-12 10:14)