The gMan nixWiki

Because the mind is made of Teflon...

User Tools

Site Tools


general_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general_commands [2024/01/01 19:00] – [apt] gmangeneral_commands [2024/06/19 22:27] (current) gman
Line 25: Line 25:
  
 Running ''arp'' at the command line will print the arp table (shows the IPs mapped to MAC addresses). Running ''arp'' at the command line will print the arp table (shows the IPs mapped to MAC addresses).
 +
 +----
  
 ===== check distro ===== ===== check distro =====
Line 41: Line 43:
  
 pending pending
 +
 +----
 +
 +===== dd =====
 +
 +==== wipe a disk ====
 +
 +Fill the disk with all zeros (may take a while; it switches every bit to 0):
 +
 +
 +<code>
 +dd if=/dev/zero of=/dev/sdX bs=1M 
 +
 +# replace X with the target drive letter.
 +</code>
 +
 +To secure wipe, populate the entire disk with random data rather than zeros (takes longer):
 +
 +<code>
 +dd if=/dev/urandom of=/dev/sdX bs=1M 
 +
 +# replace X with the target drive letter.
 +</code>
 +
 +Sincd ''dd'' does not have a verbose setting, you can get some visual feedback with this (run each in a separate term window):
 +
 +<code>
 +watch vmstat -d
 +htop
 +</code>
  
 ---- ----
general_commands.1704135631.txt.gz · Last modified: by gman