Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`ncal -A2` will do the same, but show the months horizontally.


I see there's a -v flag for vertical layout which matches horizontal listing better.


The -v flag didn't work in my WSL.

This worked:

   $ ncal -b -M -A2
       June 2022             July 2022            August 2022
   Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su
          1  2  3  4  5               1  2  3   1  2  3  4  5  6  7
    6  7  8  9 10 11 12   4  5  6  7  8  9 10   8  9 10 11 12 13 14
   13 14 15 16 17 18 19  11 12 13 14 15 16 17  15 16 17 18 19 20 21
   20 21 22 23 24 25 26  18 19 20 21 22 23 24  22 23 24 25 26 27 28
   27 28 29 30           25 26 27 28 29 30 31  29 30 31


-v didn't work on 12.1.7+nmu3ubuntu1 and -M does nothing seemingly. `ncal -b -A2` looks very good.


-M sets the first day of the week to Monday. If in your locale the weeks already begin on Monday you are not going to see much difference on the output.


Ah, my bad. I'm on Arch and it packages cal, not ncal. Wasn't familiar with it and it looks like the flags are different. Because why not...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: