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:

  • User Management in Linux This article will try to cover basics of Linux user management through command line tools. Linux provides 5 different alternatives to choose the accessibility. They are as listed below. Super User or … Read More
  • head   head command example Output the first part of files, prints the first part (10 lines by default) of each file. SYNTAX head [options]... [file]... Examples Extract the first 85 lines from a file… Read More
  • Vim Editor Commands Vim ?? What's that ??   Vim is an editor to create or edit a text file.   There are three modes in vim. Insert mode - Adding text Command mode - Modifying text Last line mode - Save & quit Inse… Read More
  • jobs   jobs command example Print currently running jobs and their status. Syntax jobs [OPTIONS] [PID] Options: -c --command Print the command name for each process in jobs -g --group Only… Read More
  • nslookup   nslookup Query Internet name servers Syntax: nslookup nslookup host-to-find nslookup server interactive mode: nslookup -server nslookup [-options] [host-to-find ] … Read More

0 comments:

Post a Comment