<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on the art of simplicity</title><link>https://naoko.github.io/tags/linux/</link><description>Recent content in Linux on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 18 Feb 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Smile every time you sudo</title><link>https://naoko.github.io/posts/2021-02-18-sudoers-lecture/</link><pubDate>Thu, 18 Feb 2021 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2021-02-18-sudoers-lecture/</guid><description>&lt;p&gt;
 &lt;img src="https://naoko.github.io/images/2021-02-18-groot.png" alt="groot"&gt;

&lt;/p&gt;
&lt;p&gt;If you want your terminal prompt to look like this every time you sodo, please continue reading.
note: i did on ubuntu so for other flavor, file path might be slightly different&lt;/p&gt;
&lt;h3 id="step-1-download-this-amazing-ascii-art-text-and-move-to-etcsudoersdsudoerslecture"&gt;step 1. download this amazing ascii art text and move to /etc/sudoers.d/sudoers.lecture&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ curl -O https://caferock.org/chris/groot.txt
❯ sudo cp groot.txt /etc/sudoers.d/sudoers.lecture
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="step-2-edit-etcsudoers-or-etcsudoersdprivacy"&gt;step 2. edit /etc/sudoers (or /etc/sudoers.d/privacy)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Defaults lecture = always
Defaults lecture_file = /etc/sudoers.d/sudoers.lecture 
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="lets-see-this-magnificent-art-3"&gt;Let&amp;rsquo;s see this magnificent art &amp;lt;3&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;# reset timestamp
❯ sudo -k 
# some sudo command
❯ sudo -l
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Pretty JSON in Sublime on Linux</title><link>https://naoko.github.io/posts/2020-05-14-sublime-pretty-json/</link><pubDate>Thu, 14 May 2020 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2020-05-14-sublime-pretty-json/</guid><description>&lt;p&gt;I&amp;rsquo;ve been using &lt;a href="https://jsonlint.com/"&gt;JSONLint&lt;/a&gt; for every JSON prettifier needs.
This site is super because it even format invalid JSON.
For example, standard JSON prettifier won&amp;rsquo;t prettify JSON with key or value enclosed in single quote but this site does but having your local editor do quick prettifier if you have valid JSON or willing to quickly fix with find and replace.&lt;/p&gt;
&lt;p&gt;Sublime is my go to text editor - taking note, prettify JSON etc. So let&amp;rsquo;s do that real quick.&lt;/p&gt;</description></item></channel></rss>