How to analyze Nginx configuration files for security misconfiguration on Linux or Unix

H ow do I install Gixy for Nginx configuration static analyzer on GNU/Linux operating system to to prevent security misconfiguration and automate flaw detection?   From the project page: Gixy is a tool to analyze…

How to ping and test for a specific port from Linux or Unix command line

I wanted to see if a specific port of a desktop computer or server is open from a Linux or Unix command line shell. How do I ping a specific port? Is it possible possible…

How to use sed to find and replace text in files in Linux / Unix shell

I am a new Linux user. I wanted to find the text called “foo” and replaced to “bar” in the file named “hosts.txt.” How do I use the sed command to find and replace on…

Delete a non-empty directory when you get directory not empty error on Linux

I am trying to remove a directory named data in my $HOME. However, I am getting an error that read as ‘rmdir: data/: Directory not empty‘. How do I delete a non-empty directory in bash…

How to unzip a zip file using the Linux and Unix bash shell terminal

I grabbed a master.zip file from the Github public repo on my Linux VPS hosted at AWS. How do I unzip the file using bash ssh terminal? How can I unzip a file on Ubuntu/CentOS/Debian…

How to login with root password when using Ansible tool

I need to run a Linux command over 20 servers using a root user and password in Ansible too. How do I pass a user and password in Ansible over ssh based session? How can…

How to use the cURL command to do a POST data to fields on Linux or Unix

H ow do I use the cURL command on Linux or Unix to post data i.e. upload something on Linux or Unix? How do I make a POST request with the cURL Linux command-line to…

How to count total number of word occurrences using grep on Linux or Unix

I want to find out how many times a word (say foo or an IP address) occurs in a text file using the grep command on Linux or Unix-like system?   You can use the…

How to extract multiple tar ball (*.tar.gz) files in directory on Linux or Unix

I have tried tar -xvf *.tar.gz command, but getting an error that read as: tar (child): *.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned…

How to configure Nginx SSL/TLS passthrough with TCP load balancing

H ow do I configure SSL/TLS pass through on Nginx load balancer running on Linux or Unix-like system? How do I load balance TCP traffic and setup SSL Passthrough to pass SSL traffic received at…