Recent posts

Change a hostname on Ubuntu

Change a hostname on Ubuntu

Ubuntu 16+On Ubuntu 16+ you can use hostnamectl to change the hostname via: hostnamectl set-hostname <new name> Edit hosts and hostname directly:To Change a hostname on Ubuntu use an

Exclude a word with grep

Exclude a word with grep

Grep a file for everything but a word To exclude a single word: the following will print everything but lines containing "excludedword" grep -v excludedword The following is a working example of pipeing

Assign a secondary IP in Centos/Redhat

Assign a secondary IP in Centos/Redhat

Navigate to your network-scripts location: cd /etc/sysconfig/network-scripts/ cat the interface you want to add a secondary IP to, you can check your interfaces by using $ ip addr 1: lo: <LOOPBACK,