Replace old text with new text Linux Command
[root@srv01 demo]# grep -rl ‘from test old’ . | xargs sed -i ‘s/from test old/from test new/g’
To print a list of the messages in the queue, enter: # exim -bp To remove a message from the queue, enter: # exim -Mrm {message-id} To remove all messages from the queue, enter: # exim -bp | awk ‘/^ *[0-9]+[mhd]/{print “exim -Mrm ” $3}’ | bashsuggested following clean command:# exim -bp | exiqgrep -i…
This article describes how to check and upgrade the Linux kernel in OpenVZ, KVM, and Dedicated Servers (including the CloudLinux platform). Checking the Kernel Version To check system parameters such as the kernel version and build date, OS architecture, hostname, etc., you can use the uname command, which is included in coreutils package: # uname -rv 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan…
ConfigServer Security & Firewall (CSF) is an iptables-based firewall that provides high-level security to the Linux system. CSF includes a wide range of features, such as IP blocking, port blocking, and DoS protection. It also supports advanced security measures, such as rate limiting, connection tracking, and SSH login detection. In addition to its firewall features,…
I want to set up an FTP server and FTP user on my Lightsail instance running Amazon Linux 2, CentOS, Ubuntu or Debian. How can I do this? Resolution Note: FTP transmits all data and passwords as plain text. SFTP is a more secure way to connect to your instance and transmit data. For information on…
What’s ss Command? ss stands for socket statistics. It is used to dump socket statistics about network/socket connections. It’s showing information similar to netstat, it works better and faster compared with netstat. It can display more TCP and state information than other tools. Since the ss command gets all the information directly from kernel space…
Step-1: Add 2 hidden fields to the contact form [hidden your-first-name id:first-name-p] [hidden your-last-name id:last-name-p] Step-2: Write below jquery script in the footer $(“#name_field_id”).focusout(function(){ str = $(this).val(); if(str){ s = str.split(/(?<=^\S+)\s/); //split string in name field after first space found. $(“#last-name-p”).val(s[1]); //s[1] value after the first space set to hidden field. } }); Output will…