Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

GPG basic file encryption doesn’t required public/private key. But to make a encrypted file more secure you can use RSA/DSA algorithms. These algorithms generates public and private keys to encrypt file. This article will help you to do following three tasks for File Encryption using GPG Key Pair in Linux. Create key pair Encrypt/Decrypt file locally for same user account. Encrypt file for other user. Decrypt other users file. Step 1: Create GPG Key Pair The very first step is to generate key pair. Use the following command to generate gpg key pair. # gpg –gen-key Output: gpg (GnuPG) 1.4.5;…

Read More

The tar command is an essential tool for Linux users, especially for those who work with a large number of files. The tar command allows you to combine multiple files into a single archive file and also to extract files from an archive. In this article, we will provide a comprehensive guide for beginners on the basics of tar command in Linux. What is tar Command? The tar command is short for “Tape ARchive”, which is a popular file archiving utility in Linux. Tar is used to create archive files by combining multiple files and directories into a single file.…

Read More

The zip command in Linux is a utility used for packaging a group of files into a zip archive. The zip command can also be used to compress files, making them take up less space on your computer’s hard drive. In addition, the zip command can be used to encrypt files, making it more difficult for unauthorized users to access the contents of the zip archive. To unzip a zip archive, you can use the unzip command. This command will decompress the files in the zip archive, allowing you to access them. Zip Command Examples Go through the below real…

Read More

AS we know, now a days it’s not safe to send and receive data over internet. There are many option available to secure your data while traveling over internet. GnuPG also provides you to encrypt your data on key basis and transfer them securely over internet. GPG is an encryption and signing tool for UNIX/LINUX like OS. GnuPG provides many methods for file encryption and decryption. click here to read more about GnuPG. This article will help you about File Encryption using GPG key on linux system. Step 1: Create Test File Firstly create a test file to encrypt. you…

Read More

RNDC controls the operation of a name server. rndc uses tcp connection to communicate with bind server for sending commands authenticated with digital signatures. Configure RNDC Key for Bind9 using below steps. Step 1: Create RNDC Key and Configuration File First step is to create rndc key file and configuration file. rndc provides command line tool rndc-confgen to generate it. # rndc-confgen Sample Output: # Start of rndc.conf key “rndc-key” { algorithm hmac-md5; secret “DTngw5O8I5Axx631GjQ9pA==”; }; options { default-key “rndc-key”; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf # Use with the following in named.conf, adjusting the allow list…

Read More

Command named-checkconf checks the syntax only of a DNS (bind) configuration file. The file is parsed and checked for syntax errors, along with all files included by it. If there is no file specified with the command, /etc/named.conf is read by default. 1. Check bind9 (DNS) Configuration In case of any changes done in the bind configuration, I recommend checking the DNS configuration file before restarting the service. named-checkconf /etc/named.conf If the bind is running in chroot environment use the below command also along with the above command named-checkconf -t /var/named/chroot /etc/named.conf The above command will show nothing if there…

Read More

The DNS (Domain Name System) is a distributed system, used for translate domain names to IP address and vice a versa.For example when we type domain name in browser url like “https://tecadmin.net”, Our computer sends a request to DNS and get an ip address of domain. This article will help you to step by step setup dns server on CentOS and RedHat systems. Network Scenario: DNS Server IP: 192.168.1.254 DNS Server Name: ns1.tecadmin.net, ns2.tecadmin.net Domain Name: demotecadmin.net Domain IP to point: 192.168.1.100 Step 1 – Install Bind Packages Bind packages are available under default yum repositories. To install packages simple…

Read More

xargs is a Linux/Unix powerful command to build and execute command lines from standard input. It takes output of a command and pass it as argument of another command. xargs takes standard input, delimited by blanks or newlines, and executes the command one or more times with any arguments followed by items. Blank lines on the standard input are ignored. Syntax xargs [OPTION]… COMMAND [INITIAL-ARGS]… Here the COMMAND is executed with arguments INITIAL-ARGS and more arguments read from the input. xargs Command Options The xargs commands provides a limited number of command line arguments but enough to utilize its features.…

Read More

Fsniper is a useful tool for directory monitor, and execute predefined actions on files created or modified in that directory. For example, if we want to make a backup of each files created in your web upload folder or ftp directory, Using fsniper we can copy all files created in that folder to backup disk. Fsniper uses inotify to watch for when a file is closed after being written to. Step 1: Install Required Packages First install the required packages for fsniper installation on your system. # yum install file-libs file-devel pcre pcre-devel Step 2: Download Fsniper Source Download the…

Read More

wget is Linux command line utility. wget is widely used for downloading files from Linux command line. There are many options available to download a file from remote server. wget works same as open url in browser window. Tip 1: Download File using Wget Below example will download file from server to current local directory. $ wget https://tecadmin.net/file.zip Tip 2: Download File & Save to Specific Location Below command will download zip file in /opt folder with name file.zip. -O is used for specify destination folder # wget https://tecadmin.net/file.zip -O /opt/file.zip Tip 3: Download File from FTP Some time you…

Read More