Linux Administration
2.52K subscribers
4 files
125 links
Download Telegram
SSL/TLS Strong Encryption: How-To - Apache HTTP Server Version 2.4
https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html
history -c # clear your active shell's history in case you do something stupid like paste a password+newline into your terminal.
Hi all
This is public group created to learn and earn Linux knowledge. Hope henceforth everybody will active and follow Moto of this group.
Show top 50 running processes ordered by highest memory/cpu usage refreshing every 1s

watch -n1 "ps aux --sort=-%mem,-%cpu | head -n 50"
Hi everybody,
You may put your questions/doubt here and those who knows ans, they can explain.
Print an access_log with indicator chart bars under each request line to show the size of the data transfer using log() to keep things "in control".



# awk -v cols=$(tput cols) '{e=int(log($10)*5); print("\x1b[42m" substr($0, 1, e) "\x1b[0m" substr($0, e+1) )}' access_log | less -SR
# tesseract book-text1.jpg



- # You can use the tesseract OCR software to attempt to read text from an image and print it on stdout.
# watch grep [M]Hz /proc/cpuinfo; free; ifconfig <any other command you wanna monitor>
# stat -c "%F"$'\t'"%15s"$'\t'"%n" -- * | awk -F"[\t\.]+" '/^regular file.*\..{1,5}$/{t[$NF]+=$2;x[$NF]++} END {for (s in t){printf("%-5s %4i %12i\n",s,x[s],t[s])}}' | sort -k3n



Command to See what type of files are taking up so much space. output columns = type count
If you want to clean empty directories, find command can make the job easy:

$ find / -type d -empty -exec rmdir {} +

The -type d option searches for directories, -empty select empty ones and -exec rmdir {} executes the rmdir command to delete them. The rmdir command ensures that the directory is empty before deleting it.



Alternatively, you can also use below command to complete the same task:

$ find / -type d -empty -delete