Follow the Australian Telecommunications scene NEWSLETTER- FREE TRIAL
The Linux distillery
Bringing the world of Linux to you, David cuts through the tech and shows you how it works and how to use it, in terms that apply to any distro. RSS
Technology news and Jobs arrow The Linux distillery arrow The joy of X - master the Linux GUI
The joy of X - master the Linux GUI E-mail
The Linux distillery - The Linux user and switcher blog
by David M Williams   
Sunday, 12 October 2008
Most X programs will allow you to pass in command-line parameters to either get extra functionality or to change the default functionality.

To illustrate, you can start the Firefox web browser by clicking its icon along your toolbar. If you want to open the JavaScript error console you can then click Tools/Error Console, or press Ctrl+Shift+J.

If you were working heavily with JavaScript and constantly starting up Firefox for testing you might want that console to always be open and save yourself a couple of mouse clicks. You can do this by starting a terminal window and entering the command

firefox -jsconsole &

The browser starts, with the console already open. Of course, opening a terminal window and typing a command every time you want to launch Firefox is more effort, but you will appreciate you can easily make a desktop shortcut to perform that command repeatedly.

The point is simply that the programs which launch from your toolbar and menus are being invoked by calling them just as you would do from the command line. You can extend their functionality by passing extra parameters. If these parameters are useful and reflect the way you always want the program to start up then you can modify the menu configuration files to always use these parameters.

One thing is worth mentioning: often Windows aficionados will lambast Linux because it seems to have an endless amount of command line instructions and parameters. Yet, really this is a testament to the power in Linux that so much is configurable.

Actually, Windows programs work in the same way, just it’s less known and less used both by developers and users.

For instance, a Start menu shortcut to Microsoft Word is also simply calling a program. This shortcut can be modified to add command-line parameters if the program supports them. You can view a list of command-line options for Microsoft Word here. If any of these were of such usefulness that you wished Word would always start with that option enabled you can modify the shortcut in the Start menu to include the parameter. So it is with Linux.

Here’s another example, which is a bit goofy but still practical.

CONTINUED







 
< Next story in category   Previous story in the category >
iTWire user statistics Visitors last 30 days
694,279
Subscribers 15,210
#1 independent technology news advertise here
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff

- Advertisement -

Featured Whitepapers

Follow iTWire on Twitter

About iTWire

iTWire is all about technology news, information, jobs and community for the IT and telecommunications industry professional. Subscribe to our free ICT daily newsletter