While having history available with the simple use of the up arrow is a convenience feature common to most linux builds it can come with some risk. One such risk is when you have inadvertently typed a password instead of a command, or had to pipe credentials into a command.
Thankfully, you can clear the entire history with a variety of methods, the most common are below but others are available in the references.
history -c && history -w
cat /dev/null > ~/.bash_history && history -c && exit
I’ve done a LOT of web and software development in my career, one of the biggest problems I’v e had is doing proper testing on various platforms. VirtualBox can be run on most platforms, and allows for you to virtualize various operating systems. Apple’s OS X can be problematic to install, here’s some functioning instructions and settings that I’ve successfully used for my virtual Hackintosh test environment.
WARNING: As this uses an image of the software, it is advisable to also have a valid licenced copy as to use this without a licence would be “stealing”.
NOTE: this is a version of Snow Leopard, unfortunately you will NOT be able to update or add “fixes” to this test copy as it will usually break. I recommend making a copy of the VM if you wish to try!
My VirtualBox settings:
Mac OS X
Mac OS X Snow Leopard (64-bit)
- English, continue
- Utilities… disk Utilities… Select drive, Erase, name, erase… close
- Select disk… continue
- Customize (see instructions for: updates, kernels & bootloaders)
NOTE: i only did 10.6.1 (an earlier 10.6.2 failed)
- Resolution fix – (I could not save file, but here are the instructions…
Finder > OSX Drive (On desktop) > Extras > com.apple.Boot.plist (open with TextEdit – use the field to find)
If you make heavy (or even typical) use of your computer, you’ll often notice that it just doesn’t seem as fast as it once was. For a slight increase in performance, disk space and to generally remove some of the ‘temporary’ files/cruft that are routinely written to disk you have a few options.
Here are a few of my current favorites for doing ‘Spring Cleaning’ on my computers… BleachBit and CCleaner
BleachBit is available on all major platforms (Windows, OS/X, Linux).
Most operating systems make this rather trivial to expose, Apple seems to have made it just a tiny bit more difficult… as such, I provide the simple steps here for my own memory as well as your benefit.
WARNING: Be particularly careful about the files you modify or delete, you could impact your system in very critical ways… there is a reason they are ‘hidden’, most often it is to keep less-technical users from breaking things 🙂
Return hidden files to their usual state.
So, a family member has recently approached me about virus scan products for Windows. It seems that, while he runs a commercial product, it’s a little dated and he does not keep up on the frequent updates, unfortunately this has put him into a position where his computer was infected and has become almost unusable. Using the same commercial products he’s unable to clean up the mess and has already lost many files.
I’ve been a convert to Avast for several years and even run it on my servers to scan for malicious content, it’s both free for non-commercial use and updates automatically.
Other products worth considering:
I post a lot about open source applications, WINE is another notable contender as it gives users an option to run many mainstream Window applications on a Linux (even Apple’s OS/X variant) platform by providing access to the Windows API’s to those host operating systems.
http://appdb.winehq.org/ – List of applications supported
Ah, for those of you still running IBM’s OS/2 platform, you too can run Win32 applications with Odin: