Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1:

How would you start the GNOME text editor and cause it to load the file ~/myfile.tex from the command line?

2:

What command would you use to magnify and more closely inspect very small print in an application on your desktop?

3:

How do you know which xmessage button was clicked in your shell scripts?

4:

What directory contains Nautilus scripts?

Answers

A1:

gedit ~/myfile.tex &

A2:

xmag

A3:

After xmessage exits, the special variable $? contains an exit status of 101 if the first button was clicked, 102 if the second button was clicked, 103 if the third button was clicked, and so on.

A4:

~/.gnome2/nautilus-scripts

Activities

  1. Improve the FileBackup script so that it displays a confirmation dialog box before backing up each selected file. The dialog box should display the name of the file and then ask the user to select Yes to back the file up or No to omit the file.

  2. Place the new and improved FileBackup script in your Nautilus menu.



    SAMS Teach Yourself Red Hat(r) Fedora(tm) 4 Linux(r) All in One
    Cisco ASA and PIX Firewall Handbook
    ISBN: N/A
    EAN: 2147483647
    Year: 2006
    Pages: 311
    Authors: David Hucaby

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net