The way hard drives work is when you store a file it is written to sectors, and each sector has a bit of data in the sector and file table to go “this sector, then that sector, then that next sector, etc, etc”. Now as you add and delete files your files start to get into a couple of sectors here, one way over there, then three sectors over here, and so on, and all your files are like that. That means that your HDD’s have to work way harder and slower to access those sectors. That is called File Fragmentation.
Defragmentation, or Defrag/Defragging is the act of moving those sectors so they are continuous and have little or no fragmentation. Better Defragging programs would also use the placement of the files on the disk to make the more important or more commonly used programs on the fastest to access parts of the disk and the slower programs at the slower to access parts of the disk.
It also often came with a popular display option of the work it has done vs what is left to do that you can find a simulation here https://defrag98.com/
Eventually Computers got so powerful and so mutithreaded that they could do this while the computer was running and doing other things and the one that came with the OS was just good enough for people to largely stop doing it manually. With modern SSD’s though this is not necessary as they kind of do their own kind of defrag called TRIM.
The way hard drives work is when you store a file it is written to sectors, and each sector has a bit of data in the sector and file table to go “this sector, then that sector, then that next sector, etc, etc”. Now as you add and delete files your files start to get into a couple of sectors here, one way over there, then three sectors over here, and so on, and all your files are like that. That means that your HDD’s have to work way harder and slower to access those sectors. That is called File Fragmentation.
Defragmentation, or Defrag/Defragging is the act of moving those sectors so they are continuous and have little or no fragmentation. Better Defragging programs would also use the placement of the files on the disk to make the more important or more commonly used programs on the fastest to access parts of the disk and the slower programs at the slower to access parts of the disk.
It also often came with a popular display option of the work it has done vs what is left to do that you can find a simulation here https://defrag98.com/
Eventually Computers got so powerful and so mutithreaded that they could do this while the computer was running and doing other things and the one that came with the OS was just good enough for people to largely stop doing it manually. With modern SSD’s though this is not necessary as they kind of do their own kind of defrag called TRIM.