📜 ⬆️ ⬇️

Daily scripts

Good day to all! The Linux command line is very powerful, but many of the commands from time to time have to type the same, 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 it is interesting for me to share my achievements with society and less experienced comrades, as well as to gain experience from more experienced sympathizers and to add them.

There are a lot of scripts:

1. textfind - a script from the publication: habrahabr.ru/post/135497 - very useful in a compartment with Suricata / Snort as IPS.
2. lschanged - a list of the last 5 modified files - useful if you are distracted and need to remember what files you were doing.
3. prettyuser - a very useful script, if you installed some software over the system that came with a “pre-installed” user - it is convenient to see which groups it is in.
4. memhungry - it is sometimes 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 to evaluate the load of the system 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.

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

Source: https://habr.com/ru/post/317208/


All Articles