Linux Best Practices and Tips

2017-03-06 26 min read GuestPost Uncategorized

Linux is powerful, flexible, and can be adapted to a broad range of uses. While best practices for administrating Linux servers are not hard to find due the popularity of the operating system, there is always a need for up-to-date Linux advice, along with the best tips, from our experienced Toptal Linux administrators.

How to Avoid Frustration After Forgetting To Use Sudo Command

<p>
  Have you ever typed a command in your terminal, only to find out you forgot to prefix it with the
</p>

<div class="codecolorer-container text solarized-light" style="overflow:auto;white-space:nowrap;width:550px;">
  <table cellspacing="0" cellpadding="0">
    <tr>
      <td class="line-numbers">
        <div>
          1<br />
        </div>
      </td>
      
      <td>
        <div class="text codecolorer">
          sudo
        </div>
      </td>
    </tr>
  </table>
</div>

<p>
  command? You have to retype the whole command again just to add the
</p>

<div class="codecolorer-container text solarized-light" style="overflow:auto;white-space:nowrap;width:550px;">
  <table cellspacing="0" cellpadding="0">
    <tr>
      <td class="line-numbers">
        <div>
          1<br />
        </div>
      </td>
      
      <td>
        <div class="text codecolorer">
          sudo
        </div>
      </td>
    </tr>
  </table>
</div>

<p>
  in front of it. Frustrating!
</p>

<p>
  Well, you can add this simple alias to your
</p>

<div class="codecolorer-container text solarized-light" style="overflow:auto;white-space:nowrap;width:550px;">
  <table cellspacing="0" cellpadding="0">
    <tr>
      <td class="line-numbers">
        <div>
          1<br />
        </div>
      </td>
      
      <td>
        <div class="text codecolorer">
          .bashrc
        </div>
      </td>
    </tr>
  </table>
</div>

<p>
  to help you reduce the frustration:
</p>

<pre>
  <td>
    <div class="text codecolorer">
      alias argh='sudo $(history -p \!\!)'
    </div>
  </td>
</tr>
1

Continue reading

Some nice fonts in Fedora for coding

2016-12-26 1 min read Uncategorized

Here is link to fedoramagazine article on this:

6 great monospaced fonts for code and terminal in Fedora

And what the article does not mention is how to install these from terminal. You can use the following command to install them all

sudo dnf install levien-inconsolata-fonts.noarch \
adobe-source-code-pro-fonts.noarch mozilla-fira-fonts-common.noarch \
 mozilla-fira-sans-fonts.noarch google-droid-sans-fonts.noarch \
 google-droid-sans-mono-fonts.noarch nethack-bitmap-fonts.noarch \ 
nethack-bitmap-fonts-core.noarch

 

update for wordpress.com issue

2015-04-03 1 min read Uncategorized

I had issues with my mobile and reset it without taking back up of Google authenticator. Guess what, now I have no access to the worpress.com account to which my blog was linked. Tried everything and when nothing worked, had to create a new account in worespress.com…. Hopefully my subscribers will not have any issues with this change.

Older posts Newer posts