Make hosts file editable with out sudo
hosts file allow you to override DNS. This will allow you to point a domain to difernt IP address on your computer.…
hosts file allow you to override DNS. This will allow you to point a domain to difernt IP address on your computer.…
RAID 5 Requires 3 or more physical disks. It provides the redundancy of RAID 1 combined with the speed and size benefits…
On a Linux server /tmp partition was only 1 GB, it get full at times. Server had following in its /etc/fstab file…
To lock a Linux User account, run usermod -L USER_NAME_HERE You can verify the account is locked with command passwd –status USER_NAME_HERE…
I wanted to find some files inside the subdirectory of the current folder. To do this, find have maxdepth option. This command…
Method 1 vi /etc/bashrc Find export EDITOR=”pico” export VISUAL=”pico” Replace with export EDITOR=”vi” export VISUAL=”vi” Method 2 edit .bash_profile vi /root/.bash_profile Add…
xdotool lets you programmatically simulate keyboard input and mouse activity, move and resize windows, etc. To search for an application with title…
brctl show [root@server70 etc]# brctl show bridge name bridge id STP enabled interfaces br0 8000.002590d08d66 no eth0 vnet0 virbr0 8000.525400f12faf yes virbr0-nic…
CSF firewall can block all traffic from a country or list of countries using the GeoIP database. To block a country, edit…
I got error “Can’t locate version.pm in @INC” running awk. [root@vmi431969 /]# ack mp3pdjSu5B0 Can’t locate version.pm in @INC (@INC contains: /usr/local/lib64/perl5…
When sending email from a Plesk server, i get error Aug 11 19:49:28 vmi274961 postfix/smtp[29276]: E413C3320265: to=, relay=none, delay=0.47, delays=0.47/0/0/0, dsn=4.4.1, status=deferred…
To install elasticsearch, first install java yum -y install java-1.8.0-openjdk Import key rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch Create file vi /etc/yum.repos.d/elasticsearch.repo Paste following [elasticsearch]…