curl command examples in Linux in details

In world of Linux, you must know various commands. One of them is “curl”. It is very powerful utility and helps in playing with URLs. It supports a wide range of protocols. It is used to transferring the data with URLs. Let’s have a look to its examples. Its syntax is “curl [option] [URL]”. A […]

Installation of Kubernetes Cluster on Ubuntu

Hosts Details for Kubernetes Cluster For configuring Kubernetes Cluster, we are having 1 Master and 3 Worker nodes. Master Node: kb-master.kb.comWorker Node1: worker1.kb.comWorker Node2: worker2.kb.comWorker Node3: worker3.kb.com Prerequisite before installation of Cluster Step1: Set hostname of all servers and make entry in /etc/hosts so that all servers can communicate each other via names.​ root@kb-master:~# cat […]

Linux Terminal Shortcuts

When you work in Linux Terminal, It involves using keyboard shortcuts to perform common tasks. Here are some useful shortcuts: History Shortcuts: Up Arrow / Down Arrow: Navigate through command history. Ctrl + R: Reverse search in command history. !!: Repeat the last command. !n: Repeat the nth command in history. Navigation Shortcuts: Ctrl + […]

Sudo in Linux

Sudoers file is a file which plays a very important role in managing user and group access which can be performed on system. You can assign privileges to users and groups as per requirement. Root is super user and have all access. You can also provide root level access to normal user. Root user has […]

Configure Static IP Address in Ubuntu 20.04.6 LTS

For configuring static IP Address in Ubuntu Server you need to make netplan configuration changes in /etc/netplan/ directory. # cd /etc/netplan/ Now go and edit the configuration file there named “00-installer-config.yaml” and add below configuration for static IP address: (Bold are added lines) # vi 00-installer-config.yaml # This is the network config written by ‘subiquity’ […]

Installation of SAR on Ubuntu/Debian

We can simply install and configure the SAR on Linux servers. In debian based server we can use the command “apt” to install the SAR utility.  First install sysstat package on the server with the help of apt command root@Ubuntu:~# apt install sysstat After install When we try to run sar  command to get below […]

Enable direct root login on Ubuntu

By default, direct root login is disabled in Ubuntu. You need to follow below steps to enable it. Step1: Login to server via sudo user and become root. testuser@master:~$ testuser@master:~$ sudo su – [sudo] password for testuser: root@master:~# Step2: Open /etc/ssh/sshd_config file using your favourite editor and make below changes: Current Configuration: root@master:~# cat /etc/ssh/sshd_config […]