You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
[ HELPFUL TIP ] Make efficient photo directories

Author (Read 2026 times)

0 Members and 1 Guest are viewing this topic.

Make efficient photo directories
« on: September 02, 2017, 09:58:46 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Country: 00
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello,

following on from the music A-Z tip.
I learned a new trick for creating the year folders from "The Linux Command Line" book.
To this I then added in months by number, and the A-Z as used for music tip, to create efficient photo directories.

Open your terminal using the icon in the panel, or by holding down Ctrl and Alt keys then pressing t, (Ctrl+Alt+t)

Change to Pictures folder

Code: [Select]
cd Pictures
Type in this code and press enter

Code: [Select]
mkdir -p life-in-pics/{2002..2020}/{1..12}/{A..Z}
Here it makes inside the main Pictures directory, a folder/directory named life-in-pics,  inside this it makes year folders 2002 thru 2020 (future proofing a bit), inside each year it makes month folders numbered as 1 thru 12, inside each month it makes folders A thru Z.
In total the 1 line of code creates 6176 folders in 1 command, forming an efficient structure for the pics.

You can change the, life-in-pics, folder to whatever name you prefer, and alter the years to how you prefer, the 1..12 and A..Z needs to remain the same for it to work in this way.

Additional examples -

If you were making for pics of someone named Bob, and someone named, Karin, it would be like so

Code: [Select]
mkdir -p life-in-pics/Bob/{2002..2020}/{1..12}/{A..Z}
Code: [Select]
mkdir -p life-in-pics/Karin/{2002..2020}/{1..12}/{A..Z}
Inside the, life-in-pics folder/directory, there would be graphically visible 2 folders Bob, and, Karin, inside each of these there will be their own structure by year, month and A-Z each month.

It can also be used for music, documents, videos, or a directory of your own making, just cd (change directory to where you prefer.

I hope it may help someone with organizing their pics, or files, and save you some time. :)
Last Edit: September 02, 2017, 10:23:19 AM by bitsnpcs
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements