Tips and Tricks
From MyWiki
Contents |
Slowing down the BIOS Screen in VMware
In the vmx file:
bios.bootDelay = "boot delay in milliseconds"
Locating Recently Modified Files
To locate files that have been modified since some arbitrary date use this little trick:
$ touch -d "13 may 2001 17:54:19" date_marker $ find . -newer date_marker
Highlighting Text in HTML
<span style="BACKGROUND-COLOR: #ffff00"> blah blah </span>
Extract a Single File from an RPM
rpm2cpio /root/ntp-4.2.4p5-2.fc9.x86_64.rpm | cpio -ivd ./etc/ntp.conf
How to Simulate a Slow Network
Use traffic control (tc), part of the iproute rpm.
To display:
# tc qdisc show qdisc pfifo_fast 0: dev eth0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
To add:
# tc qdisc change dev lo root netem delay 950ms <--localhost # tc qdisc change dev eth0 root netem delay 950ms
To remove:
# tc qdisc del dev lo root <--localhost # tc qdisc del dev eth0 root
Useful Links
