Linux Blog

Connect to Wireless using NetworkManager

Filed under: Linux Video Tutorials,Quick Linux Tutorials — at 12:01 am on Wednesday, September 29, 2010

Here’s an old video I made that demonstrates how to connect to a wireless network using NetworkManager.
(Read on …)

Handy Linux Wallpaper

Filed under: General Linux — at 9:24 pm on Friday, September 10, 2010

Linux Beginners Walpaper This has to be the coolest background for beginning Linux users. What a great idea. I could probably use one of these. Especially for emacs but thats because I’m church of Vi baby.

Forwarding Ports over an active SSH connection

Filed under: General Linux,Linux Software,Quick Linux Tutorials — at 12:01 am on Tuesday, October 7, 2008

There is no doubt about it that SSH is a handy administration and remote access tool. Have you ever wanted to add port forwarding or cancel port forwarding from within an active SSH connection? Well, a feature that many do not know about is the ssh escape feature. With this pseudo terminal you can do some nifty things, such as forward ports over an active SSH connection.

To do this, follow these instructions:
(Read on …)

Perl Regular Expression Cheat Sheet

Filed under: Shell Script Sundays — Owen at 10:15 pm on Saturday, October 6, 2007

Regular Expressions can be tricky, that’s why it is a good idea to keep a quick “cheat sheet” handy when working with them, here’s a concise cheat sheet to get you started:

. Match any character
\a Match alarm
\d Match digit character
\D Match non-digit character
\e Match escape
\f Match form-feed
\n Match newline
\r Match return
\s Match whitespace character
\S Match non-whitespace character
\t Match tab
\w Match “word” character (alphanumeric and “_”)
\W Match non-word character
\022 Match octal char (i.e. 22 octal)
\xff Match hex char (i.e. ff in hex)

* Match 0 or more times
+ Match 1 or more times
? Match 1 or 0 times

{n} Match exactly n times
{n,} Match at least n times
{n,m} Match at least n but not more than m times

^ Match if at beginning
$ Match if at end

\d{2}-\d{2}-\d{2} # match date in dd-mm-yy format
^[ \t]+ #match leading whitespace
[ \t]+$ #match trailing whitespace
^[ \t]+|[ \t]+$ #match leading or trailing whitespace

$string =~ m/text/; #returns true if $string contains text, case sensitive
$string =~ m/text$/i; #returns true if $string contains text
$string =~ s/text1/text/; #replace text1 with text2 in $string
$string !~ m/text/; #returns false if $string contains text, case sensitive
$string !~ m/text/i; #returns false if $string contains text

I find it useful to print it out and have it handy whenever I wade into the murky waters of regular expressions.

Shell Script Sundays

Filed under: The Linux Blog News — at 12:06 am on Sunday, July 29, 2007

Well, I have been planning content for this blog for a while and I now have a rather healthy long list of Linux related subjects that I can get crunching on.

One of the new sections I am going to add is going to be on shell scripts. It will be called Shell Script Sundays. Expect useful and handy shell scripts that anyone can use to do specific tasks.

This is going to be a good way to show off how powerful the shell is and what can be achieved with one. I hope to educate and help people along the way. So tune in next week for the first ever edition of Shell Script Sundays and feel the power of the almighty shells.