Month: September 2017

Curl Post Data From Terminal with Examples

curl is useful tool used to create HTTP, HTTPS, FTP, … and similar protocol request from command line. This provides us the ability to simulate web browser behavior or similar application logic without a GUI. In this tutorial we will look different use cases for curl POST and JSON. For more information about curl can be get from following tutorial. Linux curl Command

Continue reading

Linux Ssh Tunneling or Port Forwarding Local and Remote Ports with Examples?

Ssh protocol secure remote connections which is shell or terminal based to the remote systems. Ssh protocol and tool provides more than that. We can use ssh to create tunnels over local and remote systems or connect remote system X server. In this tutorial we will look how to tunnel and port forward locally and remotely. Local Port Forwarding – Forward

Continue reading

How To Pass and Parse Linux Bash Script Arguments and Parameters

Bash is powerful scripting language provides by various Linux distributions,Unix and BSD. If we need to make our script dynamic we generally use arguments. Arguments are provided to the script through command line. In this tutorial we will examine different use cases of argument passing and examples. Syntax In order to use externally provided values inside bash script we should

Continue reading

Python Subprocess and Popen with Examples

Python provides a lot of functionalities with different modules and libraries. When we need to open new process inside a Python application we can use subprocess library and related functions. Import subprocess Module In order to use related functions and libraries we should import the subprocess library.

Start with call Function The simples use case to create a subprocess is using

Continue reading

How To Use Python Time Sleep To Delay Application Execution?

While developing applications we may need some rest for the execution. Python provides sleep() function for different use cases in order to delay program execution. In this tutorial we will examine Python sleep() function for different conditions. Sleep Time Precision Before starting tutorial we should know that Python is an interpreted language and is not real time. So while using python there

Continue reading

How To Save and Restore Iptables Rules Permanently In Ubuntu, CentOS, Fedora, Debian, Kali, Mint?

Iptables is standard and popular firewall provides by Linux distributions like Ubuntu, CentOS, Fedora, Debian etc. Iptables rules are managed in run time where a lot of rules are added, changed and remove. These changes are temporary changes where only running configuration is changed but do not saved temporarily. In this tutorial we will look how to save iptables rules permanently

Continue reading

How To Start, Stop and Enable, Disable Iptables or Ufw In Ubuntu, Debian, Kali, Mint

Ubuntu is popular Linux distribution used in different enterprise or personal IT environment. Security is important part of the today IT. We can use firewall services like iptables in order to tighten security of our Ubuntu system. In this tutorial we will look how to install, remove, enable, disable, start and stop Ubuntu iptables. This tutorial can be used for Kali,

Continue reading

How To Create Nested For Loops In Python?

While creating applications with python we generally need to use list like or array data structures. If we will iterate over list like data we generally use for loop. But some times the data may have multiple dimensions. In order to cope with multiple dimensions we have to define nested for loops. Nested For Loop for loops can be nested inside each other.

Continue reading
Open

Enjoy this blog? Please spread the word :)