How to get length of a string/integer variable in linux bash shell ?
Today in this post, we will look how to get length of a variable in linux whether its a string or integer. Getting variable length in Linux 1. Using shell...
Today in this post, we will look how to get length of a variable in linux whether its a string or integer. Getting variable length in Linux 1. Using shell...
In this post, we will look different ways to get owner of a file in linux. We generally use ls command, however there are different ways available to achieve this....
In this article, we will look different ways or tricks to count number of files inside a directory in linux. I. Get files inside /tmp Using “wc -l” command on...
Let us have a look how to view IPv6 addresses in Linux. For this, we can use the same “ifconfig” command. 1. Viewing IPv6 Address [root@ngelinux ]# ifconfig -a enp0s3:...
Today we will see another data structure that can be defined in Python known as dictionary. As its name suggests, we keep the “key:value” pairs in this datatype. Let us...
Let us start creating the ansible yaml scripts or playbooks. The first playbook that we create involves checking if the host is alive or not i.e. ping status of all...
Lets start creating YAML scripts in ansible. The first script we have created included the ping response of all hosts. The second YAML(Yet Another Markup Language) script we have created...