Saturday, April 26, 2014

date


date command examples

Set the system date:

$ date -s "01/31/2010 23:59:53"


Once you’ve changed the system date, you should syncronize the hardware clock with the system date as shown below.

$ hwclock –systohc
$ hwclock --systohc –utc



Related Posts:

  • whereis whereis command examples When you want to find out where a specific Unix command exists (for example, where does ls command exists?), you can execute the following command. $ whereis ls ls: /bin/ls /usr/share/… Read More
  • unzip unzip command examples To extract a *.zip compressed file: $ unzip test.zip View the contents of *.zip file (Without unzipping it): $ unzip -l jasper.zip Archive:  jasper.zip   Length  &… Read More
  • vim vim command examples Go to the 143rd line of file $ vim +143 filename.txt Go to the first match of the specified $ vim +/search-term filename.txt Open the file in read only mode. $ vim -R /etc/passwd   &nb… Read More
  • uname   uname command examples Uname command displays important information about the system such as — Kernel name, Host name, Kernel release number, Processor type, etc., Sample uname output from a Ubuntu laptop is … Read More
  • whatis    whatis command examples Whatis command displays a single line description about a command. $ whatis ls ls             (1)  - list directo… Read More

0 comments:

Post a Comment