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..

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

What is Checken/Egg Problem. Chicken/Egg problem occurred in booting process of Linux. A Linux kernel required modules to mount root partition which typically uses ext3 file system, LVM, RAID, etc. All the Linux modules resides in /var/lib/($uname -r) directory but Linux kernel could not access them without mounting it. So the problem was that how Linux kernel access modules required to mount root partition. How Linux Kernel Get it Solve The grub boot loader and Linux kernel works together to get solve this problem using Initial Ram Disk ( initrd ), which is part of GRUB specification for a Linux…

Read More

Optimize your Java development and runtime environment with this comprehensive guide on installing Java Development Kit (JDK) and Java Runtime Environment (JRE) on Linux systems. Java developers need both JDK and JRE to craft and run Java applications and applets efficiently. JDK offers the essential tools for developing Java applications, including the Java compiler, while JRE provides a runtime environment necessary for Java applications. How to Install Java on Ubuntu and Linux Mint This guide simplifies the process of installing OpenJDK Java on popular Linux distributions such as Ubuntu and Linux Mint. OpenJDK, an open-source implementation of the Java Platform,…

Read More

.htaccess stands for “hypertext access”. This is the default Apache directory level configuration file. .htaccess can be used to secure a particular directories in web server. One of the most common uses is to require user authentication in order to serve certain web pages. Create .htaccess File. First create a .htaccess file in your website document root to protect entire site or in specific directory and add following content. AuthType Basic AuthName “Secure Content” AuthUserFile /home/myuser/public_html/.htpasswd require valid-user AuthType: defines the type of authentication. Basic means there is no encryption and the password hash is sent as clear text. AuthName:…

Read More

In the realm of Linux, the at command stands as a powerful yet often overlooked tool for scheduling tasks. This utility is specifically designed for one-time job scheduling, allowing users to execute commands or scripts at a later time. This article delves into the functionality, usage, and practical applications of the at command, providing insights into how it can streamline workflow and automate tasks in a Linux environment. Understanding the ‘at’ Command The at command in Linux is a job scheduling tool, distinct from the more commonly known cron. While cron is used for recurring tasks, at is the tool…

Read More

The find command is a versatile and powerful utility in Linux, allowing users to search for files and directories based on various criteria such as name, type, size, modification time, and more. Mastering the find command can significantly improve your efficiency and effectiveness when working with Linux systems. This article will provide a comprehensive guide to the find command, accompanied by practical examples. Find Command Syntax and Options The basic syntax of the find command is as follows:

PATH: The directory in which to start the search. EXPRESSION: The search criteria, including options and tests. Some common options include:…

Read More