Make your own free website on

Some tips!
Some interesting tips and tricks to make your life with linux all the more fun.

Hot keys

Keyboard shortcuts provide a quick and easy way to get things done especially for console 'freaks'. Below u can find some(definately a small list!) Hotkey combos.

These work under the console

memory information
process listing
scroll through the terminal history
switch consoles, note that the left alt is for tty1 through tty12 and the right is for tty13 through tty24
For this to work you will need to have Magic Sysrq compiled into your kernel and cat a '1' into /proc/sys/kernel/sysrq.These can give a set of debugging info that are disabled by default.
And for those of you wondering what the Sysrq key is its usually Print-screen key.

set console log level
emergency reboot
kill all except init (SIGTERM)
kill all except init (SIGKILL)
Hot keys for this popular shell are far too many, below is a listing of a few,

attempt to complete filename or variable name
attept to complete hostname, inorder for this to work the hostname must be listed in /etc/hosts
logout, must be entered on a blank line.
clear the screen
Work in all 'general' places

paste contents of copy buffer
move to the beginning of a line
move to the end of a line
delete from start of the line to the cursor


The power to locate

Locate is a useful command for searching(provided the datbase is up-to-date, it usually is).But the results can be quite too many.To just filter down the unwanted use locate as in
locate <thing to search> | egrep 'html|whatever u want'

This prints only those lines that have the particular extension.A useful idea would be to put this as a function in your .bashrc

function loc(){
  locate $1 | egrep '<the filter u want ORed>'

free - how much mem do i have?
Using the free command you can view how much swap and physical memory you have in your system.The syntax free [-m]/[-k]/[-b]. -m shows the amount in Megs.-k in kilobytes and -b in bytes.

Changing console fonts
The fonts in your console can also be changed using consolechars.Only psf font formats are supported though.First find the psf fonts in your system (use locate or find) and then issue the command

consolechars --font=<location of font file>

.Only fonts having their corresponding SFM(Screen Font Map) files can be displayed.You can download more Console tools and fonts from

F1 in emacs
You can view the man page of a particular topic from emacs by adding the following lines to your .emacs file and then pressing F1 when over a particular word should take you to the particular man page.Insert the following into ~/.emacs.
(global-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word))))
"Imagination is more important than knowledge" -- Albert Einstein