This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Copy this Regular Expression into Find / Replace: | |
| \r\n|\n|\r | |
| Then click 'Replace All' and bye bye line breaks. | |
| [note] make sure there is no white space before or after the expression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find / -type f -perm /a+x -exec chmod 0644 {} \; | |
| find / -type d -perm /a+x -exec chmod 0755 {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Find top 20 largest files starting at root directory | |
| du --exclude=/proc* -a / | sort -n -r | head -n 20 | |
| List the size of of the folders in the current directory | |
| du -hsx * | sort -rh | head -10 | |
| Checks processes that are keeping deleted files open | |
| lsof -s | grep deleted | sort -k 8 | |
| Check rotation of error logs ... as it is not working large files are being created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :1,$d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grant all privileges on *.* to root@localhost identified by 'the password' with grant option; | |
| flush privileges; |
OlderNewer