Quick Tips

Linux Quick Tips
Hello blogosphere! As I’m working on putting my bash scripts together, here’s a few quick tips that one may use in everyday life.

Background Command

Ever started a program in the terminal because it doesn’t have a menu listing, or need to see it’s error output and then realize later that you need the terminal? Opening another tab is simple enough but you really don’t need the program hogging the terminal anymore. Well, there is a way to do this.

Previously, people may have viewed my bash script that can start programs in the terminal in the background. Already running applications can be backgrounded as well. First type ctrl-Z to release the application, then using the bg program will background it’s output.

Gnome’s Middle-Click, Title-Bar Trick

For the long time I’ve been using Gnome and just learned about this one. A quick way to look at a window below the current on is to middle-click on title bar. Voila! The current window izzz lowered. More tricks can be found on Gnome Tip’s and Tricks page.

Firefox Hunt

I have the tendency that once I’m on the keyboard, I like to stay on the keyboard, so doing a search in Firefox by going to the mouse selecting the search engine, and typing in the field seems like extra legwork to me. To do a fast search in Firefox on the keyboard is as easy as: ctrl-K to move to the search box and alt-up/down to select the search engine.

Grep Two Search Terms

On the occasion that a grep search needs to look for two words, egrep it:

egrep -w 'word1|word2' /path/to/file

Fox in Hounds Teeth

This is personal advice, but take it from me – worth it. Don’t use Foxmarks Bookmarks Synchronizing Service. I used this service as I sold my old computer when I got the new. I trusted this service to hold my web bookmarks and… it didn’t. It errored with the line, “Can’t synchronize bookmarks, transfer error.” I asked about the error and only got the explanation that, “…this sometimes happens”. Also I got no explanation on why or what happened to their backup service.

There’s another Bookmark Synchronizer out there but for the life of me can’t remember the name of it. Anyone?

Thunar Custom Actions

Thunar has the ability to create custom scripts built directly into it. For the most part it’s self explanatory. For greater degree of difficultly scripts, here’s the documentation.

Have a Good Day! :)

About these ads

About Gen2ly

<3's linux

Posted on 2008-05-27, in Linux. Bookmark the permalink. 5 Comments.

  1. Google has a bookmark synchronizer. Google Browser Sync is a firefox extension that allows you to synchronize your bookmarks. Everything you need is a google account.

  2. Middle click on the title bar to send the window down is a feature in every wm/DE i’ve used. I think it’s an X thing tbh.

    Hmmm, ctrl f doesn’t do anything here in FF3 or FF2…

    Hitting the / key brings up quick find here.

  3. miker, I was talking about Web Search.

    ctrl-k will get to the search engine bar.

  4. For searching you can use CTRL+L to select the urlbar and then type a keyword to use your searchengine.

    Suppose you have a bookmark with url ‘http://dictionary.reference.com/search?q=%s’ and keyword ‘dict:’
    then you can just type: dict: someword.

    You can also set the default search engine (setting keyword.URL in about:config) so the url bar actually becomes the Google-toolbar.

    Furthermore with the Smartsearch extension you can just place the cursor on a word and search it using any of your your keyword-bookmark searches.

    Also by setting browser.urlbar.clickSelectsAll to true you only need one click in the urlbar to select it and over-type it with a search query.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 52 other followers

%d bloggers like this: