Operation Manual
If HOWTOs are installed on your system /usr/share/doc also holds the
howto subdirectory in which to nd additional documentation on many tasks re-
lated to the setup and operation of Linux software.
/var
Whereas /usr holds static, read-only data, /var is for data which is written during
system operation and thus is variable data, such as log les or spooling data. For
an overview of the most important log les you can nd under /var/log/, refer
to Table “Log Files” (↑Start-Up).
/windows
Only available if you have both Microsoft Windows and Linux installed on your
system. Contains the Windows data available on the Windows partition of your
system. Whether you can edit the data in this directory depends on the le system
your Windows partition uses. If it is FAT32, you can open and edit the les in this
directory. For NTFS, openSUSE also includes write access support. However, the
driver for the NTFS-3g le system has limited functionality. Learn more in Sec-
tion 37.4, “Accessing Files on Different OS on the Same Computer” (page 614).
22.2 Writing Shell Scripts
Shell scripts are a convenient way of doing all sorts of tasks: collecting data, searching
for a word or phrase in a text and many other useful things. The following example
shows a small shell script that prints a text:
Example 22.1
A Shell Script Printing a Text
#!/bin/sh ❶
# Output the following line: ❷
echo "Hello World" ❸
❶
The rst line begins with the Shebang characters (#!) which is an indicator that
this le is a script. The script is executed with the specied interpreter after the
Shebang, in this case /bin/sh.
❷
The second line is a comment beginning with the hash sign. It is recommended
to comment difcult lines to remember what they do.
❸
The third line uses the built-in command echo to print the corresponding text.
Bash and Bash Scripts 345