Linux

Disk usage by file type

2015/11/30

Trying to find the total usage for each of the file types by extension, then here is a quick bash function for you : disk_usage_type () { find . -name '*'$1 -ls | awk ' BEGIN{ a[0]="Bytes"; a[1]="KB"; …

Get count of lines in scripts (shell)

2015/10/15

If you have tried to get the count of lines in file, the you would know about “nl” or “wc -l”. But as you are aware these give you number of lines with other details as well and you need to post …

evvsubst – substitute variables in text in shell

2015/07/09

First you need to install gettext, which by the way might be already installed, however you can install with dnf install gettext Details of the package: […] Usage examples:

Easily monitor and archive your system log reports.

2015/06/29

If you want to monitor your server logs and also like them to be emailed then just Logwatch may not be sufficient. It sends you a mail but does not archive them, so head over to epylog […] To …

tracer – trace outdated files on your system

2015/04/30

Tracer finds outdated running applications in your system. Home page : Tracer Home page. To install : sudo dnf install tracer Once you have done that, after every dns update/upgrade you would see a …

tlp – optimize and maximize your battery power.

2014/06/30

If you are concerned about the battery life on your Linux laptop, then you should consider using tlp. tlp customizes your Linux distribution for maximum battery life and thus helps improving battery …

unrar or unar – go open source way

2014/05/15

Recently there was a utility released called unar, a open source replacement for unar. Description:: […] The command-line utilities lsar and unar are capable of listing and extracting files …

terminal in browser.

2014/05/09

Quite a lot of time, we are spending most of the time on Browsers and during this time, leaving the browser just to do some ls or some command for quickly checking something does not look productive …

Some nice linux tutorials

2014/05/05

Some very nice articles and tutorials on Linux, find here. Pretty nice collection.

Sandbox Firefox – First step to security

2014/03/19

First we will setup cgroup to limit cpu and memory usage, so here we go: Add the configuration in /etc/cgconfig.conf #------start cgconfig---------------- #new group group firefox { perm { task { …

mpd – change the music directory context for selinux.

2014/01/10

For running mpd with different use, you may find necessary to change the SELinux context of your music directory. For this, you would need to run the below command: chcon -R -t mpd_user_data_t Music/ …

cgroups – use to control your cpu and memory

2014/01/06

cgroups is a kernel feature and with userspace utilities, we can use the feature to control the cpu and memory for per process. So, lets first install the required tools. sudo yum install …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it