September 2017 – POFTUT

Monthly Archive: September 2017

0

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 Tutorial With Examples Simple POST Example We will start with...

0

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 or Tunnel Local System Port To Remote System Port Local...

1

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 provide them after the script name. Following syntax assumes the...

0

What is Ftp Port Numbers and How Ftp Port Used?

Ftp or File Transfer Protocol is popular protocol used to transfer data, file, directory over networks. These networks may be our local network or internet. FTP has simple mechanisms which makes is easy to implement and use. In this tutorial we will look some FTP related information like port numbers, modes etc. Ftp Port Default FTP port is TCP 21. TCP is transmission level protocol which provides reliable data transfer...

Python Subprocess and Popen() with Examples 0

Python Subprocess and Popen() with Examples

Python provides a lot of functionalities with different modules and libraries. When we need to open a 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 call() function. call() function accepts related binary or executable name...

0

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 will be some inconsistencies. While using sleep function Linux can use...

2

How To Get Current Date Time or Now In Python?

Date and time is important part of the applications development. We generally need to set, get and change some data time information to our records. In this tutorial we will examine the python date time now functions and use cases with examples. For more information about Python date time functions can be get from following tutorial. Python Date Time Functions With Examples Python Date Time Operations Import datetime In order...

0

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 in Linux. Save Ipv4 Rules in Debian, Ubuntu, Mint, Kali...

4

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, Debian, Mint distributions too. Ufw or Ubuntu Firewall Ubuntu rebranded...

0

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. There is no restriction about the count of inner for loop....

Enjoy this blog? Please spread the word :)