One linux command (38) every day: cal command

Source: Internet
Author: User
One linux command every day (38): cal command link: One linux command every day (1): ls command http://www.2cto.com/os/201210/163049.html ; One linux command every day (2): cd command http://www.2cto.com/os/201210/163050.html A linux command every day (38): cal command link: A linux command every day (1): ls command http://www.2cto.com/os/201210/163049.html ; One linux command every day (2): cd command http://www.2cto.com/os/201210/163050.html ; One linux command every day (3): pwd command http://www.2cto.com/os/201210/163462.html ; One linux command every day (4): mkdir command http://www.2cto.com/os/201210/163463.html ; One linux command every day (5): rm command http://www.2cto.com/os/201210/163662.html ; One linux command (6) every day: rmdir command http://www.2cto.com/os/201210/164017.html ; One linux command (7) every day: mv command http://www.2cto.com/os/201210/164247.html ; One linux command every day (8): cp command http://www.2cto.com/os/201210/164254.html ; One linux command every day (9): touch Command http://www.2cto.com/os/201211/165699.html ; One linux command every day (10): cat command http://www.2cto.com/os/201211/165989.html ; One linux command every day (11): nl command http://www.2cto.com/os/201211/165990.html One linux command every day (12): more command http://www.2cto.com/os/201211/165994.html One linux command every day (13): less command http://www.2cto.com/os/201211/165998.html One linux command every day (14): head Command http://www.2cto.com/os/201211/166191.html One linux command every day (15): tail command http://www.2cto.com/os/201211/168702.html One linux command every day (16): which command http://www.2cto.com/os/201211/168890.html A linux command (17) every day: whereis command http://www.2cto.com/os/201211/168893.html One linux command (18) every day: locate command http://www.2cto.com/os/201211/168895.html One linux command every day (19): find command overview http://www.2cto.com/os/201211/168897.html One linux command every day (20): find command exec http://www.2cto.com/os/201211/168901.html One linux command (21) every day: find command xargs http://www.2cto.com/os/201211/168903.html A linux command (22) every day: detailed description of the parameters of the find Command http://www.2cto.com/os/201211/168912.html A linux command (23) every day: Linux directory structure http://www.2cto.com/os/201211/170430.html One linux command every day (24): Linux file type and extension http://www.2cto.com/os/201211/170431.html One linux command every day (25): Explanation of linux file attributes http://www.2cto.com/os/201211/170434.html One linux command every day (26): use SecureCRT to upload and download files http://www.2cto.com/os/201211/172022.html One linux command every day (27): linux chmod command http://www.2cto.com/os/201211/172028.html One linux command every day (28): tar command http://www.2cto.com/os/201212/172641.html One linux command (29) every day: chgrp command http://www.2cto.com/os/201212/172983.html One linux command every day (30): chown command http://www.2cto.com/os/201212/173239.html A linux command (31) every day:/etc/group file details http://www.2cto.com/os/201212/174429.html One linux command (32) every day: gzip command http://www.2cto.com/os/201212/174431.html One linux command every day (33): df command http://www.2cto.com/os/201212/174434.html One linux command every day (34): du command http://www.2cto.com/os/201212/174701.html One linux command (35) every day: ln command http://www.2cto.com/os/201212/174993.html One linux command (36) every day: diff command http://www.2cto.com/os/201212/176333.html One linux command (37) every day: date Command http://www.2cto.com/os/201212/176335.html The cal command can be used to display calendars in the Gregorian calendar. The Gregorian calendar is an international calendar, also known as the Gregorian calendar. The "Gregorian calendar", also known as the "solar calendar", is a year when the Earth is traveling around the sun for a week. it is used by Western countries and is also known as the "Western Calendar ". Www.2cto.com 1. command format: cal [parameter] [month] [year] 2. command: used to view time information such as the calendar. if there is only one parameter, it indicates the year (1-9999). if there are two parameters, it indicates the month and the year 3. command parameter:-1 shows the calendar of one month-3 shows the calendar of the previous month of the system, the current month, and the calendar of the next month-s shows Sunday as the first day of a week, default format-m: display Monday as the first day of a week-j: display the day of the year (the date of the year is calculated by day, and the number of days of the year is displayed by default from January 1, January 1) -y: displays the calendar of the current year. 4. use instance: instance 1: display the current month calendar command: cal output: [root @ localhost ~] # Cal October 12, 1516 5 6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2223 17 18 19 20 21 2930 24 25 26 27 28 31 [root @ localhost ~] # Instance 2: Display the calendar command for the specified month: cal 9 2012 output: [root @ localhost ~] # Cal 9 2012 July 12, 1516, 2223, 2930: run the 2013 calendar command: cal-y 2013 cal 2013 output:

Example 4: display the number of days since January 1, January 1 Command: cal-j output: [root @ localhost ~] # Cal-j August 12, December 20 five six 1234 336337 338 339 340 341 342 343344 345 346 347 348 349 350351 352 353 354 355 356 357358 359 360 361 362 363 364365 366 [root @ localhost ~] # Instance 5: The first column of commands displayed on Monday: cal-m output: [root @ localhost ~] # Cal-m October 12 October 5 th six days 1 2 3 4 5 6 7 8 910 11 12 13 14 15 1617 18 19 20 22 2324 25 25 26 27 28 29 3031 [root @ localhost ~] #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.