RHEL or Centos: How to count number of files inside a directory in Linux ?
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...
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...
Today we will see how to find the files which are modified recently on our linux system. We will see the files modified in last few minutes, hour, and days....
In ext2, ext3, or ext4 filesystems, we used the command filefrag. However for xfs filesystem, the filefrag command shows the offset values and the exact file extent values are not...
Today we will look at an interesting topic “how to read compressed i.e. gzip files” in Linux. Lets see below example: 1. Reading .tar.gz compressed zip file in Linux. [root@nglinux...
I. Playing with Docker Images 1. Take backup of an image $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mariadb 10.1 5a34bfc8f676 2 weeks ago 375MB phpmyadmin/phpmyadmin latest 15ca549393be...
In this post, we will look how to use docker-compose.yml file to deploy multiple containers of an application. Setup LAMP Server ### Create directories and file structure $ touch docker-compose.yml...
Today lets have a look at an ansible playbook to copy a shell script to remote server and then run it as root. And finally get its output on our...
Till now we have looked at ansible playbook to get the ping response, server uptime, date and its syntax. In this post, we will see how to copy a file,...
In the last post, we have seen how to install ansible on our system. After ansible install before creating YML script and running it, we should setup some files to...