Task: Display date in mm-dd-yy format Type the command as follows: $ date +"%m-%d-%y" Output: 02-27-07 Turn on 4 digit year display: $ date +"%m-%d-%Y" Just display date as mm/dd/yy format: $ date +"%D" Task: Display time only Type the command as follows: $ date +"%T" Output: 19:55:04 Display locale’s 12-hour clock time $ […]
↧