488889
237
Zoom out
Zoom in
Previous page
1/284
Next page
18 Bash and Bash Scripts
These days many people use computers with a graphical user interface (GUI) like
KDE or GNOME. Although they oer lots of features, their use is limited when it comes
to the execution of automated tasks. Shells are a good addition to GUIs and this
chapter gives you an overview of some aspects of shells, in this case Bash.
18.1 What is “The Shell”?
Traditionally, the shell is Bash (Bourne again Shell). When this chapter speaks about
“the shell” it means Bash. There are actually more available shells than Bash (ash,
csh, ksh, zsh, …), each employing dierent features and characteristics. If you need
further information about other shells, search for shell in YaST.
18.1.1 Knowing The Bash Conguration Files
A shell can be invoked as an:
1. interactive login shell. This is used when logging in to a machine, invoking Bash
with the --login option or when logging in to a remote machine with SSH.
2. ordinary” interactive shell. This is normally the case when starting xterm, kon-
sole, gnome-terminal or similar tools.
3. non-interactive shell. This is used when invoking a shell script at the commandline.
Depending on which type of shell you use, dierent conguration les are being
read. The following tables show the login and non-login shell conguration les.
Table 18.1: Bash Conguration Files for Login Shells
DescriptionFile
Do not modify this le, otherwise your
modications can be destroyed during
your next update!
/etc/profile
Use this le if you extend /etc/profile/etc/profile.local
Contains system-wide conguration les
for specic programs
/etc/profile.d/
Bash and Bash Scripts 225
237


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Suse openSUSE 12.2 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Suse openSUSE 12.2 in the language / languages: English as an attachment in your email.

The manual is 14 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Suse openSUSE 12.2

Suse openSUSE 12.2 User Manual - English - 530 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info