Learning Linux Commands148As you can see, the datecommand (Web hosting solutions)
Learning Linux Commands148As you can see, the datecommand alone displays the current date and time. To set the date, log in as rootand then type datefollowed by the date andtime in the MMDDhhmmYYYYformat, where each character is a digit. For exam- ple, to set the date and time to December 31, 2004 and 9:30 p.m., you typedate 123121302004The MMDDhhmmYYYYdate and time format is similar to the 24-hour militaryclock, and has the following meaning: .MMis a two-digit number for the month (01 through 12). .DDis a two-digit number for the day of the month (01 through 31). .hhis a two-digit hour in 24-hour format (00 is midnight and 23 is 11:00 PM). .mmis a two-digit number for the minutes (00 through 59). .YYYYis the 4-digit year (such as 2004). The other interesting date-related command is cal. If you type calwithoutany options, it prints a calendar for the current month. If you type calfol- lowed by a number, caltreats the number as the year and prints the calen- dar for that year. To view the calendar for a specific month in a specific year, provide the month number (1 = January, 2 = February, and so on) followedby the year. Thus, to view the calendar for January 2005, type the followingand you get the calendar for that month: cal 1 2005January 2005Su Mo Tu We Th Fr Sa12 3 4 5 6 7 89 10 11 12 13 14 1516 17 18 19 20 21 2223 24 25 26 27 28 2930 31Processing filesYou can search through a text file with grepand view a text file, a screen at atime, with more. For example, to search for my username in the /etc/passwdfile, I usegrep naba /etc/passwdTo view the /etc/inittabfile a screenful at a time, I typemore /etc/inittab
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services