Menu

Dipesh Majumdar

Blog and Paintings

Blog posts : "linux commands and shell script"

vi editor tips and tricks

  1. go to top of screen
  2. go to middle of file
  3. go to end of file
  4. start inserting just …

Read more

Difference between awk and cut

$ docker images |grep simplev01
dipeshm77-ubuntu                                        …

Read more

escape single quote and forward slash in sed command

Requirement is pretty simple - 

In my .gitlab-ci.yml file i need  this line - 

k…

Read more

How to post notification on slack channel with bash script

In order to do this first go to your slack channel (home page) and scroll down... if you …

Read more

generate ssh keys in linux

[root@local-some-env ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Ente…

Read more

rhel vs centos - which one to choose

it's better to choose centos because it's not licensed  and you get the work done just as…

Read more

Some useful Linux Commands - 4

Lets talk about performance - 

load average - 1 for one core is just about right, les…

Read more

Some useful Linux Commands - 3

  1. Do you really want to know if something is running on a port?

    Use this - 

Read more

Some useful Linux Commands - 2

New things learnt... these are the things i didn't know... Mostly we will cover a few net…

Read more

Some useful Linux Commands - 1 (helpful in getting useful information form access and error logs)

We will cover mostly Find commands in this section

  1. Many a times there will be an en…

Read more

Run a script in crontab

Why not?

Why the hell bother to do something manually - particularly some periodic tas…

Read more

How to have OR in condition in an IF statement of a shell script

Showing below the if statement to illustrate this. The condition shown is just an example…

Read more

How to get the absolute value of a number in shell script

Suppose you have a number A which is -10 but you need to work with the absolute value of …

Read more

Using awk to manage string output

====Part 1=====

For example you have a file like this -> awk_example1.txt

xyz_user@…

Read more

14 Blog Posts