running scheduled programs in linux
Edit the current configuration for crontab with:
crontab -e
Normally we'd created bash script files located in /usr/local/bin and have them specified for execution within our crontab configuration.
TextSnippets > deckard > linux
2784 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
crontab -e
grep -r "redeem reward" /home/tom
postsuper -d ALL deferred
shutdown -rf +1 "Scheduled test of system reboot"
echo "database backup for 070614" | mutt -s "backup: myerasmus_db_070614" -a erasmus_db_070614.sql.bz2.gpg [email address]
gpg -e -r Bob file
gpg --output <filename> -d [file]
ssh-keygen -t rsa
sftp root@<server address> lcd /home/<your login>/.ssh put id_rsa.pub
ssh root@<server address> cd .ssh cat id_rsa.pub >> authorized_keys
RSAAuthentication yes PubkeyAuthentication yes
/etc/init.d/ssh reload
ssh -v root@<server address>
sudo ln -s /usr/local/sbin/apachectl /etc/init.d/apache2 sudo chmod +x /etc/init.d/apache2
sysv-rc-conf
postfix reload
apt-cache search linux-headers-$(uname -r) apt-get install linux-headers-$(uname -r)
apt-get zlib1g-dev cd /usr/local/src/ruby-1.8.6/ext/zlib ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib make make install
ruby setup.rb
apt-cache search <search string>
set nu set ai
apt-get install apt-show-versions apt-show-versions | sort
apt-get --purge remove packagename
mkdir /mount/<linx_share>
192.168.80.1 DL1
mount -t smbfs ///win_share /mnt/linx_share
mount -t smbfs //DL1/sshare /mnt/share
find . -type d -name .svn find . -name .svn -print0 | xargs -0 rm -rf
alias g='egrep --color=auto -i -r'
tar -czf <tar file> <file to archive>[...]
echo -n > development.log
xmodmap -e "keysym a = a A ae AE less less" xmodmap -e "keysym z = z Z guillemotleft less greater greater" xmodmap -e "keysym semicolon = period semicolon horizconnector multiply horizconnector multiply" xmodmap -e "keysym ugrave = percent percent percent percent percent percent"
xmodmap -pke | less