dcsimg

Power Up Linux GUI Apps

Save time and gain functionality by starting your GUI apps from the command line.

Windowing interfaces to Linux have lots of advantages. Once you find the programs you need, the menus and dialog boxes list your choices, and there’s often not much else to know about the interface.

One big disadvantage of GUI apps, though, is that you’re mostly limited to whatever the interface lets you do — unless you want to re-code the interface yourself, that is. For instance, how can you use a photo viewer to see all of the photos you put in various places on your disk this past Monday? If you know where the photos are stored and what their names are, you can navigate through your directories in a file browser like Nautilus, clicking on files to view them. But what a pain!

Linux users have more choices. You can start most GUI apps from the command line with a list of arguments (usually filenames) to work on. This lets you marry the handy features of shells (filename completion, wildcards, loops and more), and well as the power of utilities like find and grep, to the GUI apps you’re already using. The command line also often lets you specify options that aren’t available from menus.

Let’s start with a couple of examples. You’d like to use GIMP to edit the photo files with rome in their filenames — like rome12.jpg and elsa in rome.jpg. Start GIMP this way:

$ gimp *rome*.jpg

You have photos of Rome in some of your 100 subdirectories but you aren’t sure which. You’d like to view them all with Eye of GNOME. Let find or the shell find the files and give their pathnames to eog:

$ eog $(find . -name '*rome*.jpg' -print)
$ eog **/*rome*.jpg

The second example above works in Z Shell and in bash version 4 with the globstar shell option set. (** is a recursive wildcard operator. To learn more, read Even Wilder Wildcards.)

Building the Command Line

The first word on a command line is usually the name of a program you want to run, like konqueror. It may be a different name than you see on your desktop menus — such as eog.

Next you can add options. Each option starts with a space and one or two dashes. For a list, use the man command or try the program’s --help option:


$ man konqueror
No manual entry for konqueror
$ konqueror --help
Usage: konqueror ... [options] [URL]
...description of each option...

From those, you should get an idea of how to build the command line. If not, and the application doesn’t do anything dangerous (like removing files), you can also just experiment. For instance, although Konqueror says it wants a single URL, it accepts filenames (and wildcards); they’ll open in tabs, one per file. These usually come last on a command line. For example, to open all filenames ending in .html within an 800×600-pixel window at the bottom right corner of the display:

$ konqueror --geometry 800x600-0-0 *.html

When you start a GUI application from the command line, its window should open fairly soon. If you get another shell prompt (like $), the app is running independently of the shell. If you don’t get another prompt, the shell is waiting for the app to finish. In that case, you can add a final ampersand (&) to run the process in the background and get another prompt:

$ gimp [abc]*tif &
[1] 1234
$

Shell and utilities give lots of flexibility; we’ll have to settle for just a few examples. The Linux Magazine Power Tools columns have more ideas.

Next: Argument Lists and Loops

Comments on "Power Up Linux GUI Apps"

Check below, are some totally unrelated internet sites to ours, however, they may be most trustworthy sources that we use.

Every as soon as inside a when we decide on blogs that we read. Listed beneath are the latest internet sites that we choose.

We came across a cool web-site that you simply may well take pleasure in. Take a look in case you want.

One of our visitors a short while ago recommended the following website.

Usually posts some quite exciting stuff like this. If you?re new to this site.

The data mentioned within the report are a few of the very best obtainable.

Below you will uncover the link to some web pages that we consider you need to visit.

Here are some hyperlinks to web-sites that we link to simply because we assume they are really worth visiting.

Very few web-sites that happen to become detailed below, from our point of view are undoubtedly effectively worth checking out.

Just beneath, are numerous entirely not connected web pages to ours, nonetheless, they are surely worth going over.

Always a major fan of linking to bloggers that I like but do not get a lot of link love from.

Very couple of web-sites that come about to be comprehensive below, from our point of view are undoubtedly properly really worth checking out.

Nice blog for linux user
AysCars

Just beneath, are numerous completely not connected web pages to ours, however, they are certainly really worth going over.

Just beneath, are various completely not connected internet sites to ours, on the other hand, they are certainly worth going over.

Very couple of websites that happen to be comprehensive below, from our point of view are undoubtedly effectively worth checking out.

That could be the finish of this report. Here you will find some internet sites that we believe you?ll appreciate, just click the links.

Below you will locate the link to some web-sites that we consider it is best to visit.

I simply want to tell you that I am just very new to blogging and site-building and really savored your blog site. Probably I’m likely to bookmark your blog . You actually come with fantastic article content. Thanks a lot for revealing your blog site.

Just beneath, are quite a few completely not associated internet sites to ours, nonetheless, they’re certainly really worth going over.

This is really attention-grabbing, You are an overly professional blogger.I have joined your rss feed and stay up for in search of more of your magnificent post.Additionally, I’ve shared your website in my social networksFeel free to visit my blog post: Zwrot Podatku Z Austrii Potrzebne Dokumenty

Its network reach – a property that has taken decades of carrier federation to achieve – are an incredibly valuable asset and a difficult one for a competitor to achieve.In today’s world of cut throat competition it is important to keep the customers updated about the products and its utilities.The traditional approach of marketing has faded away;no one approaches anyone in person and shows their product.Here is my website send bulk sms

Just beneath, are various completely not connected web sites to ours, nonetheless, they may be certainly worth going over.

Here is a good Blog You might Obtain Exciting that we encourage you to visit.

Here are several of the web sites we advise for our visitors.

Here are some of the web-sites we advocate for our visitors.

Here are some links to web sites that we link to simply because we feel they are worth visiting.

Check beneath, are some totally unrelated web-sites to ours, nonetheless, they’re most trustworthy sources that we use.

Every once in a even though we opt for blogs that we read. Listed below are the most current sites that we decide on.

The umami rich dish of duck or goose liver Foie Gras is a perfect match for fine French Champagne.Tip: Open the Champagne bottle by holding the cork with a dishcloth or napkin and rotate the bottle at a 45-degree angle in order to ease out the stopper.Contact Drinks Editor Mark Nothaft via e-mail and click here and follow him on Twitter.Stop by my web site … flute

I love the standard writing as offered in this post, cheers to the authorCylindrical autoclave
Automatic Laminar Flow

We came across a cool site which you may possibly appreciate. Take a look in case you want.

The facts talked about inside the report are a number of the most effective out there.

That may be the finish of this write-up. Right here you?ll obtain some sites that we consider you will appreciate, just click the links.

Check below, are some entirely unrelated internet sites to ours, nevertheless, they are most trustworthy sources that we use.

The information talked about inside the article are a few of the top out there.

Wonderful story, reckoned we could combine a few unrelated information, nevertheless definitely really worth taking a appear, whoa did one master about Mid East has got more problerms at the same time.

Please go to the web-sites we follow, including this one particular, because it represents our picks from the web.

Usually posts some incredibly interesting stuff like this. If you?re new to this site.

Wonderful story, reckoned we could combine some unrelated information, nevertheless seriously really worth taking a look, whoa did one particular discover about Mid East has got far more problerms also.

We came across a cool site that you could enjoy. Take a appear when you want.

Always a significant fan of linking to bloggers that I enjoy but do not get lots of link love from.

Check below, are some totally unrelated internet websites to ours, on the other hand, they may be most trustworthy sources that we use.

Here are a number of the sites we advocate for our visitors.

That could be the finish of this report. Here you?ll uncover some internet sites that we assume you?ll appreciate, just click the hyperlinks.

Usually posts some really fascinating stuff like this. If you?re new to this site.

Here is a great Blog You might Come across Fascinating that we encourage you to visit.

I was pulling for Rauch, I think she is really talented, but the adverse opinions from Sundance and lack of pleasure produced me know it was most likely going to bomb.Here is my site :: http://www.volleyscout.expert/groups/allegiant-posters-we-are-stronger-with-each-other/

The data talked about inside the post are some of the very best offered.

Wonderful story, reckoned we could combine some unrelated information, nevertheless definitely worth taking a look, whoa did one particular study about Mid East has got a lot more problerms as well.

Leave a Reply