Discover the last used command beginning with anything without executing it
If you want to discover the last time a specific command was used without actually executing it, follow this format at the command line:
!sudo:p
The above example will print back the last usage of the ‘sudo’ command without actually executing it, which is very useful in some situations (like the situation below, where the last time the sudo command was used was deleting everything recursively!). You will see the last used command printed directly below:
$ !sudo:p
sudo rm -rf /var/logs/*
This works with anything, even incomplete commands. Can’t remember that obscure command you used last week, but you know it started with a t? No problem!
!t:p
might print something like this:
time grep -c and rewin.sh
It’s important to note the :p modifier at the end of the command is what is responsible for printing out the command rather than executing it, which is the default behavior for the bash history command ! so if you had just typed !p it would execute the last time a command beginning with ‘p’ was executed, but !p:p will print out the command minus the execution.








Updated 5/31/2015: By default, iTunes will automatically launch when any compatible device is connected, be it an iPhone, iPad, iPod Touch, Nano, whatever. 
The Mac OS X Terminal can become slow to launch over time, but there’s an easy solution to speed it up again. 

The Spirit Jailbreak for iPad has been released, it’s an untethered Jailbreak for any of the current iPhone OS devices, so the iPad as well as iPhone and iPod touch are supported. It’s still in beta so it’s definitely a good idea to sync and backup all your data before trying this out. Many of the Cydia apps not designed for iPad may run a little strange, look poorly, or even ‘screw up your system’ as the Spirit developers say. It’s also worth noting that Spirit is not a carrier unlock, so don’t expect to jump around mobile providers.
If you want to be absolutely sure your data is wiped clean with virtually no chance of recovery, by anyone, using any possible known recovery tools, look no further than Apple’s Disk Utility tool. The process is simple, and it can apply to any Mac drive, whether that’s an internal hard drive, external hard drive, and any connected drive of any format, meaning it does not need to just be a Mac drive to become securely formatted.



