Recent Posts

Using sed to replace a string in a file

The ‘sed’ command can be used to easily replace all occurrences of one string in a text file, with another string. sed -i "s/string/replacestring/g" /path/to/file.txt This command will find all occurrences of “string” and replace them on the fly with “replacestring” in the file “/path/to/file.txt”. The “-i” command switch specifies …

Read More »

KVM and VirtManager on CentOS 7

KVM and VirtManager on CentOS 7 KVM is a kernel-based hypervisor which grows quickly in maturity and popularity in the Linux server market. Red Hat officially dropped Xen in favor of KVM since RHEL. With KVM being officially supported by Red Hat, installing KVM on RedHat-based systems should be a …

Read More »