Skip to content

Instantly share code, notes, and snippets.

@carlos-teles
carlos-teles / find_large_files_linux_reverse_sort
Created December 21, 2020 14:01
Find large files on LINUX with reverse sort
find /opt -type f -printf "%s\t%p\n" | sort -rn | less
@carlos-teles
carlos-teles / find_large_files_solaris10_reverse_sort
Created December 21, 2020 14:24
Find large files on SOLARIS 10 with reverse sort
find /opt -type f -print | xargs ls -l | sort -r -n -k 5,5 | head -20
@carlos-teles
carlos-teles / terminal_too_wide_within_Solaris
Created December 21, 2020 14:50
shows the error Terminal too wide within Solaris
stty columns 120
@carlos-teles
carlos-teles / install_oxidized_centos8.html
Last active December 27, 2020 22:19
How to Install oxidized 0.28 on CentOS Linux release 8.3.2011
How to Install oxidized 0.28 on CentOS Linux release 8.3.2011
<a href="https://asciinema.org/a/381341" target="_blank"><img src="https://asciinema.org/a/381341.svg" /></a>
<script id="asciicast-381341" src="https://asciinema.org/a/381341.js" async></script>
@carlos-teles
carlos-teles / mailq-query-postfix.txt
Last active June 30, 2022 19:20
Delete mails from postfix queue
mailq | grep xxxxx\@google.com.br | awk '$7~/@/{print$1}' | while read qid; do postsuper -d $qid; done
mailq | grep MAILER | awk '{print$1}' | while read qid; do postsuper -d $qid; done
mailq | grep MAILER-DAEMON | awk '$7~/@/{print$1}' | while read qid; do postsuper -d $qid; done
@carlos-teles
carlos-teles / Add-another-swap-linux.txt
Last active June 30, 2022 19:19
Add another swap linux
#Verify disk space
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 6.0G 26G 20% /dev/shm
tmpfs 32G 3.2G 29G 11% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda1 48G 3.9G 42G 9% /
/dev/sda2 166G 63M 157G 1% /opt <<<<<Here
/dev/mapper/mpathp1 99G 81G 14G 86% /u01
@carlos-teles
carlos-teles / cicd
Last active December 20, 2022 11:30
cicd
.
@carlos-teles
carlos-teles / dns
Last active December 20, 2022 11:45
dns
.
@carlos-teles
carlos-teles / cron
Last active December 20, 2022 11:48
crontab
https://crontab.guru/
@carlos-teles
carlos-teles / network attack
Created December 20, 2022 12:17
network attack
.