As a system administrator, you know that checking service ports and running commands is an essential part of your job. But what happens when you need to run a command that requires a certain port, and that port is not found? In this blog post, we'll show you how to become a pro at checking service ports and running …
Read MoreLinux is a free and open-source operating system that is widely used in servers, supercomputers, embedded systems, and many other devices. It was first released in 1991 by Linus Torvalds, and since then, it has become one of the most popular and widely used operating systems in the world. In this post, we'll go over …
Read MoreTransferring files between a local machine and a remote server is a common task in software development, data science, and IT operations. One way to transfer files securely is to use Secure Shell (SSH), a cryptographic network protocol that allows you to access and manage remote systems securely over an unsecured …
Read MoreSSL/TLS pinning is a security technique that helps protect against man-in-the-middle attacks by ensuring that the client (e.g. a mobile app) only trusts the server if it presents the expected certificate. In SSL/TLS pinning, the public key of a certificate is embedded into the client. In this blog post, we'll go over …
Read MoreToday we will see how to migrate all ECR images from one AWS region to another AWS region. First, we will learn come basic. To list the repositories in your AWS Elastic Container Registry (ECR) using the AWS CLI, you can use the following command: 1 2aws ecr describe-repositories This command returns a list of …
Read MoreIn this blog we will learn, how to add permission or role in existing User. In this we will use db.updateUser() method to update the user’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values. This includes updates to the user’s roles array. Steps to …
Read MoreIn this post we will change the timezone of dokcer. Method 1: Via Dockerfile. Add below lines in Dockerfile to chnage the timezone to IST. 1RUN date 2ENV TZ=Asia/Calcutta 3RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 4RUN date Example of Docker file: 1From tomcat:9.0 2RUN date 3ENV …
Read MoreInotify (inode notify) is a Linux kernel subsystem, which monitors changes to the filesystem, and reports those changes to applications. It can be used to automatically update directory views, reload configuration files, log changes, backup, synchronize, and upload. The inotifywait and inotifywatch commands allow using …
Read MoreFind Largest Directories in Linux To display the biggest directories in the current working directory: 1du -a | sort -n -r | head -n 5 Let us break down the command and see what says each parameter. du command: Estimate file space usage. a : Displays all files and folders. sort command : Sort lines of text files. -n : …
Read MoreToday we will install PHP 5.6 on Amazon Linux 2 OS. Step 1: First we need to install the dependencies: 1 > sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2 3 > wget https://repo.ius.io/ius-release-el7.rpm 4 5 > sudo rpm -Uvh ius-release*.rpm Step 2: So all dependencies are …
Read More