Check These Out
emerge,apt-get,yum... all update your system. This will at some point replace either a runtime dependency or a process (which is still running).
This oneliner will list what processes need to be restarted
Consider using this cmd when:
1. You are planning to traverse a big directory.
2. There is a subdir you don't want find to decend to. (entirely ignore)
3. You don't want find to decend to any mounted filesystems under this dir.
* The -xdev flag tells find do not go to other filesystems.
* -path ./junk_dir -prune is the pattern to ignore ./junk_dir entirely.
* The rest is the typical search and print.
To ignore multiple subdirs, you can just iterate the pattern, e.g.
find . -path ./junk1 -prune -o -path ./junk2 -prune ...
If you do want to include other filesystems, then remove -xdev flag.
If you want to search files, then change -type d to -type f.
Replace 'csv_file.csv' with your filename.
I often use it to find recently added ou removed device, or using find in /dev, or anything similar.
Just run the command, plug the device, and wait to see him and only him
Change Seville for your prefered city.
Silly Perl variant.
Show a simple table with disk IO for the specified host. you monitor a LOT of different thing. Mostly used for MRTG and similar, but this is nice for a quick look, which disk is busy.
"public" is your SNMP community
ensure that snmpd is running on the host which you intend to monitor
Doesn't require password (asks for it instead)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Create an image of "device" and send it to another machine through the network ("target" and "port" sets the ip and port the stream will be sent to), outputting a progress bar
On the machine that will receive, compress and store the file, use:
$nc -l -p | 7z a -si -m0=lzma2 -mx=9 -ms=on
Optionally, add the -v4g switch at the end of the line in order to split the file every 4 gigabytes (or set another size: accepted suffixes are k, m and g).
The file will be compressed using 7z format, lzma2 algorithm, with maximum compression level and solid file activated.
The compression stage will be executed on the machine which will store the image. It was planned this way because the processor on that machine was faster, and being on a gigabit network, transfering the uncompressed image wasn't much of a problem.