While it’s easily cleared by a malicious person, this can easily extend the usefulness of your history file with the information of when you ran that command.
This works in bash v3 and up.
If you’d like to add the timestamping to all users on the machine, the file you’d want to edit is probably /etc/profile. If [...]
Posted on September 4th, 2008 by Phil Dufault
Filed under: Linux, Shell | 1 Comment »
There seems to be not a lot of information on Google about this, thus, I post.
At my work, the majority of our servers have hot-swappable drive bays — however, Linux doesn’t usually automatically notice the drive is gone. Worse, sometimes it doesn’t even notice new drives hooked up.
Now, SCSI and SAS both support hot-plugging [...]
Posted on August 4th, 2008 by Phil Dufault
Filed under: CentOS, Gentoo, Linux, Redhat, Ubuntu | 9 Comments »
I find it shocking how many people don’t know about this neat Linux key combination that let’s you execute various low level commands regardless of the system’s state (as long as it’s running and hasn’t panicked.)
From the Wikipedia page:
It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem.
How [...]
Posted on July 19th, 2008 by Phil Dufault
Filed under: CentOS, Gentoo, Linux, Redhat, Ubuntu | 1 Comment »
This might sound strange, as people usually want to fix or prevent these from happening, I’m trying to test/ create a method of logging kernel panic messages to a remote logging server. All of the existing tutorials I found on the net were for Linux 2.4, or were incomplete.
My method involves creating a Linux [...]
Posted on July 17th, 2008 by Phil Dufault
Filed under: CentOS, Gentoo, Linux, Redhat, Ubuntu | No Comments »
I’ve got to say, I’ve wanted to know this command for a good 3 years.
The ability to know what BIOS version you’re using without rebooting the computer is invaluable to the lazy — at last I’ve found my grail:
dmidecode -s bios-version
dmidecode appears to be a handy command for probing around in hardware, coupled with lshw, [...]
Posted on October 16th, 2007 by Phil Dufault
Filed under: Linux | No Comments »