How to calculate the date of  Easter celebrations in the Linux terminal
   
 The terminals use a large number of all sorts  of built-in commands (utilities). Built-in –  this is the team that are present by default in  the list of terminal commands any Linux  distribution  Linux . 
 In this article  I want to tell you about one of them, which  displays in the terminal calendar data in various  forms – a utility  cal  or  ncal   
 <. a name = "more" /> In principle, the  utility  cal  and  ncal  are doing  the same thing – a simple calendar display.  If no arguments are given, it displays the  calendar for the current month, with the only  difference that the team  cal  displays the  default calendar for the current month in the  horizontal position, and the team  ncal   – in . vertical  
 
  
 
  
 
  
 
 Now let’s look at the possibility  of using two calendars with various additional  arguments. To do this, execute the command  cal  -w :  
 
 As seen in the picture, have the utility   ncal  more possibilities for use. In  particular, the  ncal  You can use the  argument  -e  and –  o , which  determine the date of the celebration of   Easter  
 As you know, there are   Orthodox  and  Catholic Easter . 
  To calculate  Catholic Easter  use the  argument  -e  , and for  Orthodox   argument –  o . Default date   Easter  displays the current year  
 
  
 
  
 
  
 
  
 
 As seen in the pictures,  Catholic  Easter  will be held this Sunday (27 March),  and  Orthodox  -. 1 May  
to calculate the date of Easter for the following years, it is necessary in each of the commands to add the desired year. For example:
 
  
 
  
 
  
 
  
 
 As you can see from the command output,  the following year the celebration of the day   Pahi  is the same for  Orthodox  and   Catholics – 16 April   
fun

 
 
 
 
 
 
 
No comments:
Post a Comment