Daily scripts

Good day to all! The Linux command line is very powerful, but many commands have to be typed the same thing from time to time, and the arguments often take up most of the command line. If you agree, welcome.

I have accumulated a list of scripts that I use every day and I am interested in sharing my best practices with society and less experienced comrades, as well as learning from more experienced sympathizers and supplementing them.

Many scripts have accumulated:

1. textfind - a script from the publication: habrahabr.ru/post/135497 - very useful in conjunction with Suricata / Snort as IPS.
2. lschanged- a list of the 5 last modified files - useful if you are distracted and need to remember what files you worked on.
3. prettyuser - a very useful script, if you installed any software that came with a "preinstalled" user on top of the system, it’s convenient to see which groups it is in.
4. memhungry - sometimes it’s useful to find out how much memory a particular process is eating.
And many others ...

Recently, I often have to transfer these scripts between new, only installed systems. Therefore, I created a repository on github , in which I systematize all my scripts that I use every day. The idea is to create a repo in which to concentrate the most convenient and useful scripts.

I try to supplement the list every day, correcting my scripts and their inconveniences. Therefore, the repository will be updated frequently.

I also have a number of scripts that allow me to evaluate the system load using netstat:

netstat -na | grep ":80\ " | wc -l
netstat -na | grep ":80\ " | grep SYN_RCVD | wc -l
netstat -na | grep ":80\ " | grep ESTAB | wc -l

etc.

Additions, criticism and bug fixes in scripts are very welcome. Most of the scripts are taken from commandlinefu - as a replacement for my less functional ones.

Also popular now: