Jump to content

Linux

From Costa's Wiki
Revision as of 17:42, 19 May 2022 by 172.17.0.1 (talk)
Copy directories without content
rsync -av -f"+ */" -f"- *" "$source" "$target"
Delete Files older Than
find /var/log -name "*.log" -type f -mtime +30 -delete <br>
find /var/log -type d -mtime +30 -exec rm -rf {} \;
How to print a file, excluding comments and blank lines, using grep
grep -v '^$\|^#\|^\s*\#' filename | grep -v "^[[:space:]]*$" | more
Audiofile operations
LVM operations
SSL Certificate with SAN