linux:linux_shell
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:linux_shell [2025/01/21 07:40] – created azman | linux:linux_shell [2025/01/21 08:11] (current) – azman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Linux Shell Stuff ====== | + | ====== Linux Shell ====== |
Useful command-line stuff. | Useful command-line stuff. | ||
+ | |||
+ | ===== Raw Disk Data ===== | ||
+ | |||
+ | Using '' | ||
+ | |||
+ | <file text dd_size.txt> | ||
+ | - note on byte-size & sector size (for 512-bytes sector size) | ||
+ | 01M: | ||
+ | 01G: 1073741824 | ||
+ | 10G: 10737418240 | ||
+ | 50G: 53687091200 | ||
+ | 80G: 85899345920 | ||
+ | </ | ||
===== File Management ===== | ===== File Management ===== | ||
Line 8: | Line 21: | ||
<code bash> | <code bash> | ||
- | find . -type d -empty -print | + | $ find . -type d -empty -print |
- | find . -type d -empty -delete | + | $ find . -type d -empty -delete |
- | find -type f \( -name " | + | $ find -type f \( -name " |
- | find -type f \( -name " | + | $ find -type f \( -name " |
</ | </ | ||
linux/linux_shell.1737416441.txt.gz · Last modified: by azman