Aplikace v terminálu
Kopírování/Vypalování CD/DVD (macos 13.5)
- Terminál: vytvořit iso soubor (dvd_text je název disku, path-to-folder vypálí obsah složky, ne složku samotnou)
~ % hdiutil makehybrid -udf -udf-volume-name dvd_text -o dvd_name.iso path/to/folder
~ % Creating hybrid image..........................................................
- Finder: iso soubor -- pravá myš -- Vypálit na disk... -- Vypálit
Refresh disk
- prosté čtení
sudo cat /dev/rdisk0 > /dev/null
- se zobrazením času v sekundach
sudo time cat /dev/rdisk0 > /dev/null
- příkazem bad block
sudo badblocks -b 4096 -p 1 -c 32768 /dev/rdisk0
Vysvětlení: -b 4096 : Sets the block size to 4096 bytes. This can improve the speed at which the tool operates.
-p 1 : Tells it to perform one pass. If you want to perform more than one pass, set this number higher.
-c 32768 : Tells it to test 32768 blocks at a time. The default is 10. Telling it to test more at once can take up more memory, however. If you’re running a lower-memory system (less than 2GB RAM), set this to 8192.
(-nsv “n” parameter says to use non-destructive method (to not destroy the data), “s” is for enabling progress tracking and “v” is for showing it on the screen (verbose mode), so that you can see if the program got “stuck”.)
Nastavení datumu vytvoření souboru
Formát datumu je v americké notaci: "mm/dd/rr"
SetFile -d "01/01/25" file
SetFile -d "01/01/2025 20:20" file