Linux/Hard Drive Management

From Dev Wiki
< Linux
Revision as of 04:40, 6 November 2019 by Brodriguez (talk | contribs) (Create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Various commands and tools to manage disks in Linux.


View currently attached drives/devices:

  • lsblk

GUI Hard Drive Management:

  • Use the gparted program.

Copy Files Locally:

  • dd if=<input_location> of=<output_location> status=progress conv=fsync

Copy Files Over a Network:

  • rsync -avh <input_location> <output_location>
  • Note that input/output locations can be a local file path or a network path. If it's a network path, then it takes the format of:
    • <username>@<network_location>:<input_or_output_location>