Let's take a look at a problem in which you may want to capture Tcpdump output in your Java Program. You may need TCPDump data with N number of possibilities. This is a tcpdump Tutorial and Tcpdump …
Linux Unix Tutorials • Category Archive
Linux and Unix are two of the most popular and widely-used open-source operating systems. They are known for their stability, security, and versatility and are used by individuals, organizations, and governments worldwide for a variety of purposes, including web servers, cloud computing, and scientific computing.
How to Install Docker Container on Linux? (Ubuntu and CentOS)
Docker no doubt is the Best Container Management Platform for your Enterprise and/or Personal project need. Why we need Docker? Consider this simple scenario for your project. You have a …
Read Article about How to Install Docker Container on Linux? (Ubuntu and CentOS) →
What is Ansible pre_tasks? How to Update OS, Install Python and Install JRE on Remote Host [Linux]?
What is pre_tasks in Ansible? pre_tasks is a task which Ansible executes before executing any tasks mentioned in .yml file. Consider this scenario. You provisioned a new instance on Amazon EC2 …
How to fix “java.lang.RuntimeException: can not run elasticsearch as root” Exception?
Are you getting below exception while running ElasticSearch? java.lang.RuntimeException: can not run elasticsearch as root Why is it ElasticSearch is not allowed to run as root? Elasticsearch is …
Ansible: How to copy File, Directory or Script from localhost to Remote host?
As a part of IT management department, folks deal with lots of scripts and command line tools. I'm sure you face day to day situation in which you have copy files or scripts to thousands of remote …
Read Article about Ansible: How to copy File, Directory or Script from localhost to Remote host? →
Linux: How to Generate TimeoutException for a specific IP using TC qdisk and netem command?
TC is a linux command using which you could manipulate traffic control settings. In Linux, TC command is used to Show or Manipulate traffic control settings. Why do you need to add small …
How to change Default Java /JDK Version and ClassPath in Linux using .bash_profile?
When you install Java with default apt install command on Ubuntu or CentOS Linux OS then it will install Java under default folder /usr/bin/java. First thing first. How to install or upgrade …
My Favorite Linux Commands – List of Top 25+ Basic Linux Commands and Cheat Sheet
I've been working on Linux environment since very long time and recently explored a lot more commands. In this tutorial we will go over some most commonly used Linux Commands for your handy …
How to SSH-Login to your Shared Hosting Account using ‘SSH Access’ Utility in cPanel?
I tried setting up SSH Access from cPanel first time last week and it worked seamlessly without any issue. I was able to login and execute some commands to check higher CPU usage and memory …
What is uptime in Linux & How to Parse Result in Java using Regular Expression (RegEx)?
What is uptime in Linux? Sometimes you have to get load averages from uptime result via Java Program to perform certain operations. Like nuke, restart app, etc based on high load average. I'm …
Bash / Sh: How to read a file line by line? Linux Loop example
What is a simple way to run simple Linux Loop? How to read file line by line? There are many-many way to read file in bash script, look at the first section where I used while loop along with pipe …
Read Article about Bash / Sh: How to read a file line by line? Linux Loop example →
How to Automatically Delete /tmp folders in Linux? Automatic Disk Log Cleanup Bash Script
Here is a simple script which will perform Automatic Disk Log Cleanup for any Linux Environment. You just have to provide correct CRUNCHIFY_TMP_DIRS . When a disk has no free space left, all …