HowTo: Linux Rename Files

To rename files in Linux, you can use the mv command. Here are some examples of how to use mv to rename files: Rename a single file: To rename a single file, simply use the mv command followed by the current file name and the new file name. For example, to rename a file named … Read more

Linux tar Extract Files Command

To extract files from a compressed tar archive on Linux, you can use the tar command with the xvf options. The x option specifies that you want to extract files, the v option stands for “verbose” and will show you the names of the files being extracted, and the f option is used to specify … Read more

Truncate Large Text File in UNIX / Linux

To truncate a large text file in UNIX or Linux, you can use the “truncate” command. The general syntax for the “truncate” command is: truncate [OPTION]… SIZE FILE… where: OPTION: Any options you want to use with the command (e.g., -s for specifying the size in bytes, -c for not creating the file if it … Read more

CentOS / Redhat Linux: Install Keepalived To Provide IP Failover For Web Cluster

Keepalived is a daemon that provides simple and robust facilities for load balancing and high-availability to Linux based infrastructures. It uses the VRRP (Virtual Router Redundancy Protocol) protocol to provide a highly available IP address to be used as a default gateway by clients. If the primary node goes down, Keepalived will automatically transfer the … Read more