File operations using Java are my favorite part. There are number of tutorials you may have seen on Crunchify like append data to file, read data from file, read and parse JSON file, read …
Linux and Unix Tutorials Archives...
Beginners guide to the UNIX / Linux operating system. I do work on Linux console terminal every day. Some of my favorite tips and tutorials which includes Shell script and Bash programming.
Ansible – How to Grep (ps -few) and Kill any linux process running on Remote Host?
Ansible is pretty amazing system admin tool. We have published number of articles on Ansible in last few weeks on how to copy files on remote host, How to Execute Commands on remote Hosts, how to …
Ansible: How to terminate all AWS EC2 instances using Ansible script?
As by now you probably know, I've been working on Ansible a lot lately. In this tutorial we will go over how to terminate all AWS EC2 instances programmatically using Ansible script. Before you go …
Read Article about Ansible: How to terminate all AWS EC2 instances using Ansible script? →
Ansible: How to Accept User Input using vars_prompt and Command line?
It's been few months I started playing with Ansible. In this tutorial, we will go over how to use vars_prompt ansible section if you may wish to prompt the user for certain input while running ansible …
Read Article about Ansible: How to Accept User Input using vars_prompt and Command line? →
Linux and Curl: How to use Bash to Read a File Line by Line and Execute Curl command to get HTTP Response Code
Linux Curl command is very amazing. It's very simple command which is use to send or get data from and to any server. Server would be any server like end point URL, ftp endpoint, etc. In this …
How to create executable .jar file using Linux commands and without Eclipse Shortcut?
So far for me it it was so easy to right click in Eclipse IDE and create executable .jar file with few simple clicks. Last week I had to create executable .jar file manually on my Digital Ocean node …
How to Execute tcpdump Linux Command using Java Process Class and Capture TCP/IP Packets
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 …
Shell Script: How to append TimeStamp to file name?
I need to create a shell script that appends a timestamp to existing file. I mainly use Mac OS X for development. Wanted to create the same on Mac Terminal. Here are some basics on date …
Read Article about Shell Script: How to append TimeStamp to file name? →
How to Install and Configure Prometheus on Linux? (Ubuntu and CentOS)
What is Prometheus? Prometheus is world class Monitoring System comes with Time Series Database as default. It's an open-source systems originally built in year 2012. World's top 500 companies …
Read Article about How to Install and Configure Prometheus on Linux? (Ubuntu and CentOS) →