SCP allows you to transfer files over ssh between computers Copying to remote machines To copy a file to a remote machine run the following If you want to copy a directory you would use -r which would look like this and if you want to specify a SSH port use -P which would look [...]
Continue reading...13. August 2009
First of all we need to stop mysql Create a mysql table dump to reset the password Now we need to start mysql in safe mode and import the mysql table dump Finally we need to kill mysql and start it in normal mode Your password should now be reset to the one you specified [...]
Continue reading...12. August 2009
This comes in very handy if your trying to track back when you had last run something. To enable it just simply add export HISTTIMEFORMAT="%h/%d - %H:%M:%S " to your .bashrc file Then reload your .bashrc Now when you run history you should get a output similar to the one below Some other bash history [...]
Continue reading...8. August 2009
Windows Firstly open a cmd box by going to start > run > cmd Then flush your dns by running the following: OSX Open your terminal Run the following command: Linux Just run the following:
Continue reading...8. August 2009
Have you ever wanted to update your twitter status from linux command line? Using curl you can do this. Just simply replace user with your username password with your password and Your status message with the content of your latest tweet
Continue reading...
15. August 2009
0 Comments