Time and date
If you want to know the current time of the Linux system, use the date command to display it .
The time shown is January 24, 2017, Tuesday, 18 points 50 minutes 26 seconds. CST is the time zone abbreviation for Chinese standard Time.
If you want to display only the date of the year, you can use the command date +%y/%m/%d
Of course, if you just want to know what time it is, you can use the command date +%h:%m:%s to display it separately.
Calendar
If you want to see this month's calendar, you can use the cal command to view it.
Displays the January 2017 calendar and highlights today's date.
If you want to know the calendar for a year, you can use the cal + year to view it.
If you want to know the October 2017 calendar, you can check it using cal .
Calculator
If you want to do some simple calculations, you can use the BC command to achieve,BC similar to the basic calculator, using this calculator can do basic mathematical operations.
As shown, after entering BC , the version information and copyright of the calculator are displayed back, and then the stage of waiting for the input instruction is entered.
So how do you use it? As with normal calculator usage, enter the numbers and operators that you want to operate on.
+ Addition
-Subtraction
* Multiplication
/Division
^ Index
% take-up
As shown, in the case of 10÷100, should be output 0.1, the result output is 0, because the default output of the BC under the integer, if you want to output decimals, then you can use the scale= number (after a few decimal points) to achieve.
Operation of Linux base commands (time and date, calendar, Calculator)