/dev/random - A Bunch of Tips, Tricks and, well... Random Stuff



Bash Shortcuts PDF Print E-mail
Keyboard shortcuts are precious when using the shell.  I've listed some of my favorites, but this list is incomplete (to say the least).  If you have already mastered the shortcuts that I've listed, then the next step is to read: man bash

The man[ual] page for the bash shell doesn't specify the 'alt' or 'option' key, it instead refers to 'mod' or modifier key.  This article describes the modifier key behavior for Macs.  Linux and Windows uses the 'alt' key in most cases.  Also, note that the man page for bash refers to 'rubout'; this is the '<-- Backspace' key for PC-based systems and 'delete' on Macs.

Navigation
CTRL + a Move to beginning of line
CTRL + e Move to the end of line
CTRL + f Move forward a character
CTRL + b Move back a character
MOD + f Move forward to the end of the next word
MOD + b Move back to the beginning of the current or previous word
Edit
CTRL + x Kill text from cursor to the beginning of line
CTRL + k Kill text from cursor to the end of the line
MOD + d Kill word from cursor to the end of the curent word
MOD + rubout Kill word behind cursor
CTRL + MOD + y 
Yank (paste) the first argument from the previous command
CTRL + MOD + . Yank the last word of the previous command (steps through history)
CTRL + u Undo
History
Up Arrow Step upwards through the command history (previously executed commands)
Down Arrow Step back down through the shell command history
MOD + < Move to the first line of history
MOD + > Move to the line being currently edited


 
Screen Capture iPhone iPod Touch PDF Print E-mail

Call me slow, but I just learned how to take a screen shot of my iPod Touch.  It works on the iPhone as well.

 

1. Press and hold the Home button.

2. Press and release the sleep/wake button.

 

The screen will flash to let you know it took the picture.  Your screen shot will land in the pictures widget.

 

 
HTML Character Codes PDF Print E-mail

This list is far from complete, but should address the frequently used characters that are otherwise difficult when coding HTML.

Currency

¢

&#162;

&cent;

Cent

£

&#163;

&pound;

Pound

Branding

®

&#174;

&reg;

Registered

©

&#169;

&copy;

Copyright

&#153;

Trade Mark

Commonly Used

ñ

&#241;

&ntilde;

"N" with tilde

§

&#167;

&sect;

Section

&#182;

&para;

Paragraph

"

&#34;

&quot;

Double Quote

&

&#38;

&amp;

Ampersand

@

&#64;

At

&#160;

&nbsp;

Space character

Math Symbols

×

&#215;

&times;

Multiplier

²

&#178;

&sup2;

Squared

³

&#179;

&sup3;

Cubed

>

&#62;

&gt;

Greater than

<

&#60;

&lt;

Less than

°

&#176;

&deg;

Degree

 


Joomla SEF URLs by Artio
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear