I was recently working on a personal project where I had to obtain and use the data obtained from the df command. df displays the amount of disk space available on the file system containing each file name argument.

In the next few paragraphs, I am going to explain how I parsed the contents of the response I obtained from the command. If you aren’t interested in that, you can jump straight to my GitHub and grab the raw code from there.

Here’s a sample of some data that I obtained from my server.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 20510588 2184256 17261480 12% /
udev 10240 0 10240 0% /dev
tmpfs 101260 12608 88652 13% /run
tmpfs 253148 0 253148 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 253148 0 253148 0%…


Before we begin to critically see the importance of two factor authentication (2FA), we need to understand what 2FA is. The fact is, it is not anything new and it is unlikely that you haven’t been introduced to this method. 2FA is a process in which you have to undergo a two step verification process which includes a password or a pin along with a one time password (OTP) which comes into your smartphone which has the registered SIM running on it.

Going a little more deeper into things, let’s look at the different types of 2FA factors that is widely used these days. This includes knowledge based factors (a password or a pin), factors under your possession (like the OTP that we mentioned before), human factors (such as a iris scan and fingerprints) and advanced security options like location based log in. All these new ways of enhancing security were born out of a renewed necessity towards protecting the sensitive data that we so often share over the internet. …


So, um…does my website really need 2FA?

Every webmaster I chat with asks that question. While, some have an idea about it, but others are often completely clueless about it. Out of my experience, I’ve decided to compile a list of reasons when it makes brain to add 2FA and when it doesn’t.

I’ve mentioned 5 elements in this article and this should clear your questions regarding two factor.

Security Regulations and Compliance

If your business is subjected to PCI, DSS or simply any other security mandate, you should certainly offer two-factor authentication as option to your users.

Business Niche Matters

If your website targets people with high technical standard such as developers, it makes sense to offer two-factor authentication as an option. Otherwise, if your website serves people without much technical experience, you don’t necessary offer 2FA as an option. …


Do you think that speed of your website doesn’t matter? Consider again. A slower website can lose you new customers, yield less traffic and destroy user satisfaction. Moreover, it can also take a toll on your SEO rankings as Google takes in account your site speed while ranking it.

It’s clear that site speed is vital not only for SEO, but to keep with your profits high as well.

Here are some well known methods to rev up your website.

Compress Your Resources:

Compression is an easy to way to increase your website’s speed and save bandwidth. …

Areeb

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store