Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
pub:tech:generally-useful-and-important-system-stuff [2024/02/01 22:45] – removed - external edit (Unknown date) 127.0.0.1pub:tech:generally-useful-and-important-system-stuff [2024/02/01 22:45] (current) – ↷ Page name changed from pub:tech:general-useful-and-important-system-stuff to pub:tech:generally-useful-and-important-system-stuff cat
Line 1: Line 1:
 +====== Generally useful and important system stuff on unixoid systems ======
  
 +===== Calendar =====
 +
 +e.g. on Debian the oldschool ''cal'' tool is not available at all. ''ncal'' is available via apt, but it behaves differently. Same as in cal, ncal starts weeks with sunday per default - with  ''-M'' you can can change this to mondays.
 +
 +<WRAP group>
 +
 +<WRAP column>
 +But it still looks differently:
 +<cli>
 +ncal -M
 +    February 2024     
 +Mo     5 12 19 26   
 +Tu     6 13 20 27   
 +We     7 14 21 28   
 +Th  1  8 15 22 29   
 +Fr  2  9 16 23      
 +Sa  3 10 17 24      
 +Su  4 11 18 25      
 +</cli>
 +</WRAP>
 +
 +<WRAP column>
 +This can be changed by adding the ''-b'' option:
 +<cli>
 +ncal -bM
 +   February 2024      
 +Mo Tu We Th Fr Sa Su  
 +          1  2  3  4  
 +  6  7  8  9 10 11  
 +12 13 14 15 16 17 18  
 +19 20 21 22 23 24 25  
 +26 27 28 29           
 +</cli>
 +</WRAP>
 +
 +</WRAP>
 +
 +<alert>The ''-b'' option also brings back the ability to print the a whole year, which is also not available without using this option.</alert>
 +
 +===== Sudo =====
 +
 +<code terminal>
 +Defaults umask = 0022
 +Defaults umask_override
 +</code>