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"

The time to read or stop by the subject material or sites we’ve linked to below.

Very few web sites that occur to become comprehensive beneath, from our point of view are undoubtedly properly worth checking out.

Just beneath, are various completely not connected sites to ours, having said that, they may be surely worth going over.

Extremely experienced, expertly trained and responds as fast as possible, a locksmith Waterford is the person you ought to call whenever you lose your keys.my web site; All City Lock

Check beneath, are some completely unrelated sites to ours, having said that, they may be most trustworthy sources that we use.

We came across a cool site that you just may get pleasure from. Take a appear in the event you want.

We came across a cool internet site that you simply could possibly delight in. Take a appear in the event you want.

Here is an excellent Weblog You might Discover Intriguing that we encourage you to visit.

Here is an excellent Blog You might Come across Fascinating that we encourage you to visit.

That will be the end of this post. Right here you?ll locate some websites that we consider you will enjoy, just click the hyperlinks.

Here is an excellent Blog You may Find Intriguing that we encourage you to visit.

Check below, are some totally unrelated web-sites to ours, on the other hand, they’re most trustworthy sources that we use.

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

Excellent blog you have here but I was curious about if you knew of any forums that cover the same topics discussed here? I’d really like to be a part of online community where I can get suggestions from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Thanks!Here is my homepage: android apk download games

Please check out the web pages we stick to, like this 1, as it represents our picks from the web.

Here is a great Blog You might Obtain Intriguing that we encourage you to visit.

Every when in a when we choose blogs that we read. Listed beneath would be the most recent web sites that we opt for.

The time to study or check out the content or websites we’ve linked to beneath.

Just beneath, are many completely not related web pages to ours, even so, they’re surely worth going over.

Just beneath, are several completely not associated web sites to ours, on the other hand, they are certainly worth going over.

Although web sites we backlink to below are considerably not associated to ours, we feel they are truly worth a go by means of, so have a look.

We prefer to honor several other internet sites around the internet, even when they aren?t linked to us, by linking to them. Under are some webpages worth checking out.

Below you will discover the link to some web-sites that we assume you’ll want to visit.

Although web-sites we backlink to beneath are considerably not connected to ours, we really feel they’re really really worth a go by way of, so possess a look.

Below you?ll obtain the link to some sites that we believe it is best to visit.

We came across a cool internet site that you simply may take pleasure in. Take a search should you want.

Are you a car show displays owner?You have more than likely needed repairs in the past.You may experience some stress trying to locate a great vehicle repair company. In this article, there are tips that can help you find a company you can trust.

Although sites we backlink to below are considerably not related to ours, we feel they are really worth a go as a result of, so have a look.

One of our visitors lately proposed the following website.

Here are some links to internet sites that we link to mainly because we assume they’re worth visiting.

Always a large fan of linking to bloggers that I like but do not get a whole lot of link enjoy from.

Below you will obtain the link to some websites that we feel you should visit.

That is the end of this report. Here you?ll locate some web pages that we feel you?ll enjoy, just click the links.

Please take a look at the web-sites we comply with, which includes this one particular, as it represents our picks from the web.

Say, you got a nice post.Much thanks again. Really Cool.

Wonderful story, reckoned we could combine several unrelated information, nevertheless actually really worth taking a search, whoa did a single find out about Mid East has got far more problerms too.

This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more … good luck.Angel investors for startups

We came across a cool internet site which you could get pleasure from. Take a look in the event you want.

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

Just beneath, are numerous completely not associated websites to ours, nonetheless, they may be surely really worth going over.

Looking forward to reading more. Great post. Awesome.

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

Very handful of web sites that transpire to be comprehensive below, from our point of view are undoubtedly well worth checking out.

Always a major fan of linking to bloggers that I adore but really don’t get a good deal of link really like from.

One of our guests not too long ago proposed the following website.

It is really really important to follow your obsession and obtain the wanted results.Home is the place where you can relax after a hard tiring day.– Regardless of the level of your painting expertise, keep in mind that colors do not exist in isolation.Feel free to visit my blog post Weiler Painting Langley BC (http://www.vilagrassa.com/)

The time to read or stop by the content or websites we have linked to below.

All of it st Cheap NFL Jerseys 2016 arts Wholesale Jerseys 2016 having a dream. And also a think starts by using a nagging thought like the previously mentioned concerns that will appear to bother a lot of people in these d China Cheap Jerseys ays. Feelings Feelings akin to irritability, uncertainty and affairs about self-esteem are also coming via discontent for th

Below you?ll obtain the link to some websites that we think you should visit.

Check beneath, are some completely unrelated sites to ours, on the other hand, they may be most trustworthy sources that we use.

Leave a Reply