general_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
general_commands [2024/01/01 18:56] – [apt] gman | general_commands [2024/06/19 22:27] (current) – gman | ||
---|---|---|---|
Line 19: | Line 19: | ||
apt update && apt full-upgrade -y && apt autoremove && apt autoclean | apt update && apt full-upgrade -y && apt autoremove && apt autoclean | ||
</ | </ | ||
+ | |||
+ | ---- | ||
===== arp ===== | ===== arp ===== | ||
Running '' | Running '' | ||
+ | |||
+ | ---- | ||
===== check distro ===== | ===== check distro ===== | ||
Line 39: | Line 43: | ||
pending | pending | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== dd ===== | ||
+ | |||
+ | ==== wipe a disk ==== | ||
+ | |||
+ | Fill the disk with all zeros (may take a while; it switches every bit to 0): | ||
+ | |||
+ | |||
+ | < | ||
+ | dd if=/ | ||
+ | |||
+ | # replace X with the target drive letter. | ||
+ | </ | ||
+ | |||
+ | To secure wipe, populate the entire disk with random data rather than zeros (takes longer): | ||
+ | |||
+ | < | ||
+ | dd if=/ | ||
+ | |||
+ | # replace X with the target drive letter. | ||
+ | </ | ||
+ | |||
+ | Sincd '' | ||
+ | |||
+ | < | ||
+ | watch vmstat -d | ||
+ | htop | ||
+ | </ | ||
---- | ---- |
general_commands.1704135398.txt.gz · Last modified: by gman