Send 1 ping every 20 minutes with human timestamp
ping -i 1200 -D google.ca | while read row; do awk '{ sub(/[0-9]{10}/, strftime("%Y-%m-%d %H:%M:%S", substr($0,2,10))) }1' <<< "$row" ; done
Send 1 ping every 20 minutes with human timestamp
ping -i 1200 -D google.ca | while read row; do awk '{ sub(/[0-9]{10}/, strftime("%Y-%m-%d %H:%M:%S", substr($0,2,10))) }1' <<< "$row" ; done
With systemd you can switch from graphical mode to multiuser by typing init 3 as root
or systemctl isolate multi-user.target
If you want to permanently change and save resources
systemctl set-default <name of target>.target
The full list of targets can be accessed with systemctl list-units –type=target
or do
rm /etc/systemd/system/default.target
then do
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
when you reboot your machine it should start up with a nice black screen and login:
speedtest-cli
=============
Command line interface for testing internet bandwidth using
speedtest.net
This will remove the entire line if field 2 contains Apr
awk '$2 !~ /Apr/' Out > Out.temp && rm -f Out && mv Out.temp Out
This will remove the entire line if it begins with Apr.
sed -i '/^Apr./d' OutGoingFiles.txt
Use the following to convert bytes to KB, MB or GB
echo "11714246384" | awk '{ byte = $1 /1024 ; print byte " k";byte = $1 /1024/1024 ; print byte " MB"; byte =$1 /1024/1024**2 ; print byte " GB" }'
Usage: /bin/fail2ban-client [OPTIONS] <COMMAND> Fail2Ban v0.9.1 reads log file that contains password failure report and bans the corresponding IP addresses using firewall rules.