Wednesday, November 30, 2011

Check your spelling

yum install aspell

or apt-get install aspell for Ubuntu systems

then in future  when ever  you need to know how to spell a word simply type

aspell -a <<< 'word'


Wednesday, November 23, 2011

save man pages as pdf

man -t ls | ps2pdf - ls.pdf


Will save the man pages for ls to ls.pdf


substitute ls for the programme man pages you want to save as a pdf

Tuesday, November 22, 2011

Script Terminal Session



script -f /tmp/filename
will place all output of the terminal, including carriage returns, to a file (/tmp/filename)

So then on another terminal session type
tail -f /tmp/filename

 This file can be tail -f by one or more terminals to display Live the information of the main terminal.
Great  way to share your screen on short notice.


to Stop scripting type
 <Cntrl> D

Sunday, November 20, 2011

Ascii Digital Clock


install banner

yum install banner
then type


watch -n1 'banner `date +%T`'

Saturday, November 19, 2011

How To Add a start up script to be Run at Boot time in Ubuntu


First Save your script in

  /etc/init.d/


then type:


sudo update-rc.d script_name defaults

This script will now run each time you boot up.

Wednesday, November 16, 2011

sort the contents of a text file in place

This will sort the contents of a file without the need to pipe it into a second file.

great for cron jobs



sort -g name_of_file_to_sort.txt -o $_

Monday, November 14, 2011

Dropbox Free 2GB account

Always have your stuff when you need it with Dropbox.
2GB account is free!


Click Here To open an account

Dropbox will allow you to share folders across multiple computers.


Friday, November 4, 2011

Removing old unused Kernels from your Fedora system

Old unused Kernels can take up a fair amount of Disk Space.
to install old ones.


Install yum utils
yum install yum-utils

package-cleanup --oldkernels --count=2

will remove all old kernels except for the last 2.

 Make Amount of Installed Kernels Permanent
Edit /etc/yum.conf and set installonly_limit

 
installonly_limit=2