Tag: Shell

Shell : Deleting empty subdirectories in a directory

In Unix-based operating systems, it is common to write shell scripts to automate tasks. One common task is deleting empty…

Shell : Sync a folder from one Linux instance to another Linux instance in a specific path.

In Linux-based operating systems, it is common to synchronize files between different instances. One way to do this is by…

Shell : Script that takes a file name as an argument and checks if it’s readable or not.

One common task is checking if a file is readable before proceeding with a script. This is useful to prevent…

Shell : Script that checks if a file exists or not and outputs a message accordingly.

One common task is checking if a file exists before proceeding with a script. This is useful to prevent errors…

How to Generate the Private Key in Windows

Open a terminal window to create a private key first. Both an encrypted and an unencrypted copy of the private…

AWS EC2 @ Freshers.in

How to SSH or connect between two AWS EC2 instance ?

You can use the SSH command to connect to another AWS EC2 instance from the command line. Here are the…

ubuntu@freshers_in

In AWS EC2 how to know your ubuntu version using the command line commands

lsb_release lsb stands for Linux Standard Base. Certain LSB (Linux Standard Base) and Distribution information is printed by lsb_release command….

Shell @ Freshers.in

How to find if a substring exists in a string or not in Shell/Unix scripting

This will be a common use case when we need to check some substring in a log or some file. …