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

Sometimes the long running requests failed with the error message “504: Gateway Timeout” in NGINX web server. To solve this issue, you need to increase request timeout in NGINX server configuration. The default, NGINX request timeout is 60 seconds. Which can be increased or decreased by updating the configuration files. In this quick FAQ, you will learn to change the request timeout in NGINX web server. Increase Request Timeout in NGINX For example, you want to increase request timeout to 300 seconds. Then you need to add proxy_read_timeout, proxy_connect_timeout, proxy_send_timeout directives to http or server block. Here the http block…

Read More

The HTTP methods are used to perform create, read, update, and delete (or CRUD) operations. The most common methods are POST, GET, PUT, PATCH, and DELETE. Its good practice to disable methods, which are unused and insecure like PUT, PATCH, and DELETE. This tutorial explains, how to disable HTTP methods for an apache web server. Disable HTTP Methods in Apache Create a “.htaccess” file under the document root directory and add the following code. Make sure that the Apache rewrite module and .htaccess are enabled. RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(HEAD|PUT|DELETE|PATCH|TRACK|OPTIONS) RewriteRule .* – [F] The above configuration will disable HEAD,…

Read More

FTP is a file transfer network protocol used to efficiently transfer files among servers and clients over a computer network without any complexity. FTP first applications were written on the command line before GUI OS appeared. Although there are various clients of GUI FTP, software developers still create FTP clients for users based on CLI who prefer utilizing the old-fashioned way. There are numerous Linux FTP Clients which are secure and robust and easily accessible in the market. This article conveys the most reliable and best Linux FTP Clients that one ought to select the finest one to fulfill the…

Read More

Whenever we work with bash, we use the echo command to print a standard output as it is easy to use and fits perfectly in our needs. But with the simplicity of echo, a few limitations are also attached like output formation with echo is not easy. So Printf is an effective alternative to echo. It can be easily used in bash just like we use it in other programming languages. The syntax of printf command is: printf [-v var] format [arguments] Printf can have escape sequences, format specifiers, arguments, or ordinary characters. For example: printf “hello world” Output hello…

Read More

In this new age watching movies or tv shows is easily done through online streaming sites such as Netflix, Amazon Prime, and Hulu. But not always these streaming sites are available in your region nor everyone can afford a paid subscription. In such cases, people prefer free-online sites but those come with the excessive ads pop-ups after every few mins. To avoid such situations and hassle-free watching of your favorite movies and shows users simply download their favorite shows and movies from different online sources and watch them using Video Players. Finding the best video player is also a task,…

Read More

The Sequence Expression is used to create a range of characters and integers by defining a start and endpoint. Usually, the Bash Sequence Expression is used with For Loops. The syntax of Sequence Expression is: {START..END[..INCREMENT]} Here the start and end values are mandatory and can be either characters or integers. Next, the increment value is optional and if we use it then it must be separated from the End value with two dots. If we do not use an increment value then the default value would be 1. Sequence Expression Examples in Bash Let’s take some examples of printing…

Read More

Bash Select construct is used to create a numbered menu from the list of items. Syntax The select statement has a similar syntax as ‘for loop’ and it is: select ITEM in [List] do [commands] done Here the List can be an array, a range of numbers, a series of strings separated by space, output of a command, etc. And when the select construct will be invoked, each item from the list will be printed with a numbered sequence. The construct will continue to run until the break command is executed. Bash Select Example Let’s understand the select construct with…

Read More

One of my development server contains millions of files under a single directory. To free the disk space, we decided to move to them a new folder created on another disk attached to same system. When tried to move file with mv command, received the following error. -bash: /bin/mv: Argument list too long The “Argument list too long” error, generally comes, when we passed a large number of parameters to single command. A system variable ARG_MAX defines the Maximum Character Length of Arguments In a shell command. The Solution The quick solution is to use xargs command line utility or…

Read More

Python is an object-oriented, high-level programming language. As of today, Python 3.10 is the latest stable version available for productions environments. Most of the Debian-based Linux distribution includes older versions of Python in software repositories. Also, the Debian packages are not available for all distributions. This tutorial has been tested on Ubuntu 20.04 Linux system. This tutorial will help you to how to install Python 3.10 on Ubuntu, Debian, and Linux Mint systems using source code. Prerequisites First of all, Log in to your Debian-based system with sudo privileged account access. Open a terminal (CTRL+ALT+T) and execute the below commands…

Read More

Loops in a programming language, allows you to run commands multiple times till a particular condition. Even in Bash we have mainly three loops – until, while, and for. Sometimes you need to alter the flow of a loop and terminate it. Here comes the Break and Continue statement. They help you in terminating or managing the cycle of a loop. Here we will show you how you can use Break and Continue statements in Bash. Bash Break Statement The Bash Break statement helps in terminating the current loop and passing program control to the command that follows the terminated…

Read More