Ways to use sed command
View selected lines of a document/file # sed -n ‘9,20p’ file.txt View the entire file except selected lines # sed ‘21,40d’ file.txt Replacing words or characters in a file #…
Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog
View selected lines of a document/file # sed -n ‘9,20p’ file.txt View the entire file except selected lines # sed ‘21,40d’ file.txt Replacing words or characters in a file #…
On CentOS 7, FirewallD a default firewall management tool is enabled. In order to install iptables, we need FirewallD from server: # systemctl stop firewalld # systemctl disable firewalld #…
FFmpeg is a free and open-source project consisting of a vast software suite of libraries and programs for handling video, audio, and other multimedia files and streams. It contains libavcodec,…
Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are…
There are several ways to clone Linux Partition using some external tools like partimage or Clonezilla. In this exercise we are going to survey Linux partition cloning with a command…
cPanel EasyApache 4 Installing Redis and Redis PHP extension Installing the Redis daemon: for CentOS 6/RHEL 6 for CentOS 7/RHEL 7 Installing the Redis PHP extension for all available versions…
Resetting email account password from Command line in cPanel 1) Login to the server as root via SSH 2) Run the command “openssl” and you will see this: test@test #…
Check Ubuntu version before upgrading. lsb_release -a First, we have to run an update sudo apt update Then run upgrade command sudo apt upgrade After that dist-upgrade sudo apt dist-upgrade…
Get the mailids of all email currently in queue: postqueue -p|egrep “{11}”|awk ‘{print $1}’ Get the count of emails in queue: mailq | tail -n 1 or postqueue -p|egrep “{11}”|awk…