Tag: linux

Introduction WC (word count) is the Linux command which allows you to count the number of bytes(or characters), words and lines in a provided text file. It might not seem very useful, but there are actually a lot of situations where you might need to get the number of words or lines in a file

Introduction The hostname is the name of your computer. It is generally used to identify your PC on the network and it’s also usually part of the command prompt in Linux terminal. The hostname is assigned to the computer during the operating system installation, but you can change it later, if you want. In this

Introduction If you are getting error similar to this “Unable to negotiate with X.X.X.X port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc” you might want to read this post to understand the problem and see how you can solve it. I’m using Linux Mint but this article is applicable to any other Linux distribution.

Introduction In this article we will learn how to calculate and verify a checksum of a file in Ubuntu. We will also see what a checksum actually is and why we should care. You can jump straight to the CLI commands. What is a checksum? A checksum (also called a hash or a digest) is

Introduction. In this post we will see how we can reset password for our OpenLDAP users using the special utility ldappasswd. Change user password using admin credentials. When it comes to resetting user passwords, one of the most common things is to reset user’s password providing our admin credentials. Let’s change the password for the

Introduction This post will cover another important LDAP data manipulation – adding new entries to the directory tree. We will be using ldapadd utility. Prerequisite I assume that you have a working OpenLDAP server and OpenLDAP client. You might want to read this post which explains step by step how to install and run OpenLDAP

Introduction In this post we will learn how to search OpenLDAP directory using ldapsearch command. Prerequisite I assume that you have a working OpenLDAP server and OpenLDAP client. You might want to read this post which explains step by step how to install and run OpenLDAP server on Ubuntu 18.04. It also shows the basic

Introduction In this post we will install OpenLDAP on Ubuntu 18.04. OpenLDAP is a free open-source implementation of LDAP (Lightweight Directory Access Protocol). LDAP is a datastore mostly used for storing user identities and for user authentication. What is LDAP? LDAP stores the information in a hierarchical format called Directory Information Tree(DIT). The DIT contains

Introduction In this post we will learn how to use ss command, which can give you a lot of useful socket related information. ss comes pre-installed with all modern popular Linux distributions. We will go through several examples, so you could easily modify them and get the desired result. I will be using Ubuntu 18.04

Introduction In this article we will see why we are getting “user is not in the sudoers file” error and what we can do about it. But before we start, let’s learn some theory. I will be using CentOS 7 for demo. What is sudo? sudo is a command that allows you to run other