This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| comp:commands [2023/04/17 02:10] – [Copy files between servers] Bernard Condrau | comp:commands [2026/07/19 17:24] (current) – [Copy all files except some in all sub directories] Bernard Condrau | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| - Copy from cloud< | - Copy from cloud< | ||
| ===== File Management ===== | ===== File Management ===== | ||
| + | |||
| + | ==== Read very large text file ==== | ||
| + | tail -n 100 ./ | ||
| + | head -n 100 ./ | ||
| ==== Copy all files except some in all sub directories ==== | ==== Copy all files except some in all sub directories ==== | ||
| Line 52: | Line 56: | ||
| ==== Determine size of a folder path ==== | ==== Determine size of a folder path ==== | ||
| du -hs | du -hs | ||
| + | |||
| + | ==== Find size of all sub-directories (only 1 level) ==== | ||
| + | find -maxdepth 1 -type d -path ./proc -prune -o -exec du -hs " | ||
| ==== Change permissions for all files in a directory tree ==== | ==== Change permissions for all files in a directory tree ==== | ||