FAQs

now browsing by category

 

How to remove duplicate lines from text files on Linux/UNIX systems

undefined

One day, I was preparing a blacklist to block the porn websites on a web proxy website called “anaproxy.com”. After checking the server access logs, I could extract all the accessed urls from it’s access log, I did some operations on the urls to extract only the domain “actually IRead More

undefined

How to Logrotate Ruby On Rails Application’s Logs On Linux Systems

undefined

In this post, I’ll show you how to successfully rotate your Ruby On Rails application’s logs using Logrotate on Linux systems. Log rotation is a very important process to save your servers disk space and guarantee a healthy working environment for Linux OS. This post is valid for both RPMRead More

undefined

Howto Fix/Solve Logrotate Complains About Insecure Permissions on Parent Directory on CentOS/RHEL Linux Systems

undefined

In this post, I’ll solve an annoying error appeared when I enabled logrotate on one of my apps running on CentOS 7 Linux systems. By default on CentOS/RHEL 7, the parent permissions on your log directories play a vital role in whether or not logrotate will be able/willing to processRead More

undefined

Howto change the encoding of text files in Linux systems

undefined

How many times did you want to change the encoding of a text files in Linux systems? or How many times did you try to watch a movie and it’s subtitles .srt  showed in unreadable shapes “characters” and you needed to change it to readable characters? Sure many times youRead More

undefined

Howto remove/fix “WARNING: terminal is not fully functional” in docker

undefined

How many times did you try to use  top command in docker container and it didn’t work? or How many times did you try to use vim or less command and it didn’t work properly? For me many times. Both me and you saw the following error/warning messages before andRead More

undefined

Howto import a database into a Docker container

undefined

Congrats! you’re migrating your works/development environments into Docker containers. This is a new start for you as a system/devops engineer, as docker will solve many issues you faced before due to packages conflicts and package’s releases conflicts. Here’s the issue I face and made my write the mini post, AfterRead More

undefined

Howto find and detect the encoding of text files in Linux systems

undefined

How many times did you want to find and detect the encoding of a text files in Linux systems? or How many times did you try to watch a movie and it’s subtitles .srt  showed in unreadable shapes “characters” ? All this because you are using a wrong encoding formatRead More

undefined

Howto remove / solve “ruby-build: definition not found or ruby version not found ” on Linux systems

undefined

In this mini post I’ll show you how to update your installed ruby version with a higher one not found by ruby-build  on Linux systems (Both RPM Family “Redhat / CentOS  / Scientific Linux and Debian Family “Debian / Ubuntu”). This mini post will solve this error message “ruby-build: definitionRead More

undefined

How to Install Redis server 2.8 and higher “latest Redis” on Debian 8/7 “Jessie/Wheezy” Linux systems

undefined

In this mini post I’ll show you how to install and configure the latest redis-server on Debian 8/7 Linux systems. Sometimes you need to use a certain version of redis or any of it’s later versions for your apps to work correctly. Here’s I need to install redis-server > 2.8Read More

undefined

Howto reset the forgotten root password (Access single user mode) in CentOS/RHEL 7

undefined

How many times did you need to reset the root password for CentOS/RHEL 7? or How many times did you need to login to CentOS/RHEL 7 in a single user mode to perform some fixes for you Linux box?. For me, I had to login many times, and I expectRead More

undefined