Wednesday, September 16th, 2020 | System
Last Modified: 2024-11-10
View / Clear Logs:
* add new line to end ( backslash n ) inside single quotes
cd /var/www find . -type f -name requests.log -printf '%s %p' find . -type f -name error.log -printf '%s %p' cd /var/www find . -name 'requests.log' -exec sh -c '> {}' \; find . -name 'error.log' -exec sh -c '> {}' \;
Sort logs alphabetically:
find . -type f -name access.log -exec du -bh {} \; | sort -k 2 find . -type f -name requests.log -exec du -bh {} \; | sort -k 2 find . -type f -name error.log -exec du -bh {} \; | sort -k 2
Input Action Output
A collection of snippets and links that have proven useful for development and programming in ColdFusion, JavaScript, jQuery, PHP, Python, Dell, Minecraft, Apple, Mac, Windows, LINUX, Raspberry Pi, Adobe, CSS, and HTML.
©2024 Input Action Output