Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 270

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 269
258 Managing Files and Directories
Tip: cron is a daemon. Daemons handle tasks in the background. To read the cron
man page, type man cron at the shell prompt.
So what happens if we:
Have more than one operating system on our machine, and switch between them causing us
to halt and restart our Red Hat Linux system;
Shutdown and turn off our machine at the end of the day.
This might mean that cron never has a chance to update the locate database. No problem. We can
just update the database manually. Letsgiveitatry.
First, su to root.
Now, at the shell prompt, type:
/etc/cron.daily/updatedb.cron
After a few minutes, the locate database will be current.
17.3 Command History and Tab Completion
It doesnt take long before the thought of typing the same command over and over becomes unap-
pealing, at best.
Linux users dont feel any differently about that, either. But in Linux, since you can string together
commands at the shell prompt, one minor typo in a couple lines of a command could mean that all
that typing was in vain.
So theresasolution:Its called command-line history. By scrolling with the up and down arrow keys,
we can nd plenty of our previously typed commands including the ones with typos.
Lets try it by taking a look again at sneakers.txt.Therst time, however, at the shell prompt,
well type:
cat sneakrs.txt
Oops! Nothing happens, of course, because there is no sneakrs.txt le.Noproblem.Well just
use the up-arrow key to bring back the command, then use the left-arrow key to get to the point
where we missed the e. Insert the letter and press
Enter again.
Page view 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 299 300

Comments to this Manuals

No comments