
2.
~/.profile
3.
/etc/bash.bashrc
4.
~/.bashrc
Make custom settings in
~/.profile
or
~/.bashrc
. To ensure the correct process-
ing of these files, it is necessary to copy the basic settings from
/etc/skel/
.profile
or
/etc/skel/.bashrc
into the home directory of the user. It is rec-
ommended to copy the settings from
/etc/skel
following an update. Execute the
following shell commands to prevent the loss of personal adjustments:
mv ~/.bashrc ~/.bashrc.old
cp /etc/skel/.bashrc ~/.bashrc
mv ~/.profile ~/.profile.old
cp /etc/skel/.profile ~/.profile
Then copy personal adjustments back from the
*.old
files.
21.1.2 The cron Package
If you want to run commands regularly and automatically in the background at predefined
times, cron is the traditional tool to use. cron is driven by specially formatted time tables.
Some of of them come with the system and users can write their own tables if needed.
The cron tables are located in
/var/spool/cron/tabs
.
/etc/crontab
serves
as a systemwide cron table. Enter the username to run the command directly after the
time table and before the command. In
Example 21.1, “Entry in /etc/crontab”
(page 408),
root
is entered. Package-specific tables, located in
/etc/cron.d
, have the same
format. See the
cron
man page (
man cron
).
Example 21.1
Entry in /etc/crontab
1-59/5 * * * * root test -x /usr/sbin/atrun && /usr/sbin/atrun
You cannot edit
/etc/crontab
by calling the command
crontab -e
. This file
must be loaded directly into an editor, modified, then saved.
A number of packages install shell scripts to the directories
/etc/cron.hourly
,
/etc/cron.daily
,
/etc/cron.weekly
, and
/etc/cron.monthly
, whose
408
Installation and Administration
Summary of Contents for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Page 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Page 14: ......
Page 19: ...Part I Deployment...
Page 20: ......
Page 60: ......
Page 128: ......
Page 243: ...Part II Administration...
Page 244: ......
Page 274: ......
Page 312: ......
Page 348: ......
Page 380: ......
Page 381: ...Part III System...
Page 382: ......
Page 438: ......
Page 452: ......
Page 478: ......
Page 486: ......
Page 498: ......
Page 512: ......
Page 558: ......
Page 559: ...Part IV Services...
Page 560: ......
Page 652: ......
Page 670: ......
Page 742: ......
Page 754: ......
Page 796: ......
Page 817: ...Part V Security...
Page 818: ......
Page 858: ......
Page 886: ......
Page 910: ......
Page 911: ...Part VI Troubleshooting...
Page 912: ......
Page 924: ......