This bulleted point made me return the book. "First you can manage the file .bash_history (note that the name of this file starts with a dot), which stores all of the commands you have used before. Every user has such a file which is stored in the home directory of the user. If, for example, you want to delete this file for the user joyce, just remove it with the command rm /home/joyce/.bash_history. Notice that you must be at the root to do this. Since the name of the file begins with a dot, it is a hidden file, and normal users cannot see hidden files."
Let's go over what exactly is wrong with this statement for those not familiar with linux. 1. "...which stores all of the commands..." No, it stores 1000 commands by default and this amount can be changed by the user. 2. "if...you want to delete this file...you must be at the root to do this..." No, you need to BE the user root, or the user joyce, or any other user that has read/write access to that particular directory. You do not need to be at the root of the directory / to do anything to a file with a complete path. 3. "...and normal users cannot see hidden files..." Again, no. Any user can see any file in any directory they have read access to. Any user can use the command ' ls -al ' to see any and ALL hidden files.
I'm sorry, but if there are this many errors in one bullet on page 45 of this book, covering such a simple topic as "look at the files in a directory using the command line" what on EARTH else is wrong in the rest of this book!?!? Do not waste your time or money on this, unless you'd like something to prop up a table. It's a nice thick book and would do nicely under a table or chair leg.
18 people found this helpful.
Was this review helpful to you?