linux:linux_shell
Table of Contents
Linux Shell
Useful command-line stuff.
Raw Disk Data
Using dd
$ dd if=ifile of=ofile skip=offs count=size status=progress
where skip
and count
values are in sector counts.
- dd_size.txt
- note on byte-size & sector size (for 512-bytes sector size) 01M: 1048576byte @ 000002048sect 01G: 1073741824 @ 002097152 10G: 10737418240 @ 020971520 50G: 53687091200 @ 104857600 80G: 85899345920 @ 167772160
File Management
Using find
… dumped
$ find . -type d -empty -print $ find . -type d -empty -delete $ find -type f \( -name "*zip" -o -name "*tar" -o -name "*gz" \) -size +1M -delete $ find -type f \( -name "*zip" -o -name "*tar" -o -name "*gz" \) -size +1M -exec rm {} +
linux/linux_shell.txt · Last modified: by azman