
This morning i need to change system date in linux to test one of my application. Too bad i’m not familiar with command line command linux. So after googling for sometime, i manage to find out how to change system date in Linux using command line.
To change system date in linux, type:-
			
				
				
Advertisements
				
				
				
				
											
			
$date MMDDhhmmYYYY.ss
For example: i want to change my system date to Jun 29 2006, 3.30pm, i will type:-
$date 062915302006
It’s simple 🙂
Note:
MM – month
DD – day
YYYY – year
hh – hour is based on 24 hour
mm – minutes
ss – seconds
[tags]change system date, linux change system date, modify system date, system date, system date linux, change date linux, linux change date[/tags]
Related posts:
How to setup static IP in Debian
How to backup svn server
Password protect directory with .htaccess and .htpasswd
How to block .log file using in .htaccess
How to setup SSH without password
How to flush DNS cache in Linux / Windows / Mac
How to use apt to list available packages?
Debian: "There is no public key available for the following key IDs"
						Share this with your friends:-
						
					
					
how do you change the timezone 😉
thanks dear…!
Which command should i use to change the session date without using the root user-id?
also, try:
date -s MMDDhhmmYYYY.ss
-s = set
—