bashorun Tag

Quote of the day (02.09.14)

09 Feb 2014, Posted by BoB in All Posts, Favorite Quotes

A true leader has the confidence to stand alone, the courage to make tough decisions, and the compassion to listen to the needs of others. He does not set out to be a leader, but becomes one by the equality of his actions and the...

Linux Sheet

23 Aug 2013, Posted by BoB in All Posts, Computer Talk, Website Talk

Just some commands that I found useful since using Linux: http://mysql-apache-php.com/ Above is a good link to get a web server up and running. /etc/init.d/apache2 start  -  start apache services /etc/init.d/apache2 stop  -  stop apache services /etc/init.d/apache2 restart  -  restart apache services apt-get install <package>  -  install packages apt-get upgrade  -  upgrade...

Bash Sheet

13 Aug 2013, Posted by BoB in All Posts, Computer Talk

Here is an example of a loop that will compress and send how ever many files are found to another server. !/bin/bash first_list='/ [path] / [to] / [files] / *.*' for raw in $first_list do gzip -9 $raw done second_list='/ [path] / [to] / [files] / *.gz' for gz in $second_list do scp $gz [user]...

Iptables Sheet

13 Aug 2013, Posted by BoB in All Posts, Computer Talk, Network Talk

Here is a breakdown of some iptable commands. udp - User Datagram Protocol (streams without checking) tcp - Transmission Control Protocol (checks if destination is available) # input and output commands -A OUTPUT -d [IP ADDRESS] -o eth0 -p tcp --dport [DESTINATION PORT NUMBER] -j ACCEPT -A INPUT -d [IP...