tlw
ryecatchermark
I heard that it is not safe to defrag a SSD drive???
Not actually unsafe unless the disk is nearing the "wear out point". I have seen stuff claiming Windows does defrag an SSD once a month if system restore is switched on, but everything else I've seen says Windows doesn't automatically defrag an SSD.
Whether you can defrag an SSD "manually" from a command prompt I don't know. Never tried it and not going to. As SuperG says thanks to how an SSD (and the TRIM function) work fragmentation basically isn't an issue. If you think it might be worth a try copying all the data from the SSD to another drive, fast-formating the SSD then copying the data back should achieve pretty much the same thing without the lots of write operations defraggers use as they shuffle the bits around.
Fragmentation is not a concept that is actually relevant in the realm of SSD's.
By comparison, in traditional spinning HDD's, the read/write heads have to seek out the positions of the data on the physical spinning disk platter to do their thing. Overall, this time adds up, and contributes to the physical limits on HDD data throughput.
For the SSD's, it takes nanoseconds to grab the fragments, so it becomes a non-issue