old-www/LDP/intro-linux/html/sect_07_08.html

289 lines
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Exercises</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Introduction to Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Home sweet /home"
HREF="chap_07.html"><LINK
REL="PREVIOUS"
TITLE="Summary"
HREF="sect_07_07.html"><LINK
REL="NEXT"
TITLE="Printers and printing"
HREF="chap_08.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Introduction to Linux: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sect_07_07.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 7. Home sweet /home</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chap_08.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="sect_07_08"
></A
>7.7. Exercises</H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="sect_07_08_01"
></A
>7.7.1. Shell environment</H2
><P
></P
><UL
><LI
><P
>Print out your environment settings. Which variable may be used to store the CPU type of your machine?</P
></LI
><LI
><P
>Make a script that can say something on the lines of <SPAN
CLASS="QUOTE"
>"hello, world."</SPAN
> Give it appropriate permissions so it can be run. Test your script.</P
></LI
><LI
><P
>Create a directory in your home directory and move the script to the new directory. Permanently add this new directory to your search path. Test that the script can be executed without giving a path to its actual location.</P
></LI
><LI
><P
>Create subdirectories in your home directory to store various files, for instance a directory <TT
CLASS="filename"
>music</TT
> to keep audio files, a directory <TT
CLASS="filename"
>documents</TT
> for your notes, and so on. And use them!</P
></LI
><LI
><P
>Create a personalized prompt.</P
></LI
><LI
><P
>Display limits on resource usage. Can you change them?</P
></LI
><LI
><P
>Try to read compressed man pages without decompressing them first.</P
></LI
><LI
><P
>Make an alias <B
CLASS="command"
>lll</B
> which actually executes <B
CLASS="command"
>ls <TT
CLASS="option"
>-la</TT
></B
>.</P
></LI
><LI
><P
>Why does the command <B
CLASS="command"
>tail <TT
CLASS="filename"
>testfile</TT
> &#62; <TT
CLASS="filename"
>testfile</TT
></B
> not work?</P
></LI
><LI
><P
>Mount a data CD, such as your Linux installation CD, and have a look around. Don't forget to unmount when you don't need it anymore.</P
></LI
><LI
><P
>The script from <A
HREF="sect_07_02.html#sect_07_02_07_02"
>Section 7.2.5.2</A
> is not perfect. It generates errors for files that are directories. Adapt the script so that it only selects plain files for copying. Use <B
CLASS="command"
>find</B
> to make the selection. Do not forget to make the script executable before you try to run it.</P
></LI
></UL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="sect_07_08_02"
></A
>7.7.2. Graphical environment</H2
><P
></P
><UL
><LI
><P
>Try all the mouse buttons in different regions (terminal, background, task bar).</P
></LI
><LI
><P
>Explore the menus.</P
></LI
><LI
><P
>Customize your terminal window.</P
></LI
><LI
><P
>Use the mouse buttons to copy and paste text from one terminal to another.</P
></LI
><LI
><P
>Find out how to configure your window manager; try different workspaces (virtual screens).</P
></LI
><LI
><P
>Add an applet, such as a load monitor, to the task bar.</P
></LI
><LI
><P
>Apply a different theme.</P
></LI
><LI
><P
>Enable the so-called <EM
>sloppy</EM
> focus - this is when a window is activated by just moving the mouse over it, so that you do not need to click the window in order to be able to use it.</P
></LI
><LI
><P
>Switch to a different window manager.</P
></LI
><LI
><P
>Log out and select a different session type, like KDE if you were using Gnome before. Repeat the previous steps.</P
></LI
></UL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="sect_07_07.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="chap_08.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Summary</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="chap_07.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Printers and printing</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>