12. August 2009

0 Comments

Howto Add time And Date To Your Bash History

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 echo 'export HISTTIMEFORMAT="%h/%d - %H:%M:%S "' >> ~/.bashrc Then reload your .bashrc source ~/.bashrc Now when you run history you should get a [...]

Continue reading...

8. August 2009

0 Comments

How to flush your dns cache

Windows Firstly open a cmd box by going to start > run > cmd Then flush your dns by running the following: ipconfig /flushdns OSX Open your terminal Run the following command: dscacheutil -flushcache Linux Just run the following: /etc/init.d/nscd restart

Continue reading...

8. August 2009

0 Comments

How to update your twitter status using curl

Have you ever wanted to update your twitter status from linux command line? Using curl you can do this. curl -u user:password -d status=”Your status message” http://twitter.com/statuses/update.xml Just simply replace user with your username password with your password and Your status message with the content of your latest tweet

Continue reading...

5. August 2009

51 Comments

Windows 7 Move the Users and Program Files Directories To A Different Partition

After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window up like in the image below Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to use robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ robocopy "C:\Program Files" "D:\Program Files" [...]

Continue reading...

2. August 2009

0 Comments

Setting Local Time on a Linux Server

I am going to show you a way that I use to set the local time on my Linux servers. It really isn't that hard either. First, you should get NTP installed. apt-get install ntp ntpdate Next, just in case, make a backup of your already configured time. mv /etc/localtime /etc/localtime-backup Then we start to [...]

Continue reading...
Page 3 of 121234510...Last »