Articles by Deepak Prasad
8 simple steps to configure ldap client RHEL/CentOS 8
Steps to install and configure ldap client using SSSD on RHEL and CentOS 8 Linux. The configuration using SSSD over TLS and SSL encryption for ldap client
How to create, read, append, write to file in Python
use open() or with open() function with different modes to create, write, append content to a text or binary file. Python write to file by overwriting the …
grep Exact Match in Linux (Match Whole Word or Exact String)
Learn how to grep exact match in Linux using the grep command. This tutorial explains how to match exact words, exact strings, and entire lines using options …
How to add user to sudoers with best practices & examples
How to add user to sudoers file? How to give root privileges to a user in linux? how to give superuser permission in linux? sudoers syntax with examples
3 simple and useful tools to grep multiple strings in Linux
How to grep multiple strings and patterns in single line from a file in Linux or Unix? Is it possible to grep multiple strings using single command from a file? …
grep Recursive Search in Linux (Examples, Include/Exclude, Multiple Patterns)
Learn how to perform grep recursive search in Linux with practical examples. This guide covers recursive grep commands, searching directories and …
Mastering Python subprocess Module [In-Depth Tutorial]
The different functions available with python subprocess are Popen(), call(), run(), check_call(), check_output(). What is the difference between these …
4 easy methods to check sudo access for user in Linux
How to check sudo access for a normal user? Is it possible to know if a user has sudo access using a script without password prompt?
Use Python Logging Like a PRO: Don't be a Rookie
Learn how to use python logging module with examples. Write to console, stdout, stderr, to log file or syslog. Create single or multiple handlers using …
How to use python if else in one line with examples
Learn how to use python if else statement in one line using ternary operator. You can also hack your way to use nested if else or if elif else in single line
Python if else statement usage with examples
Learn about python if else statement, nested if statement with different examples using comparison and logical operators
The Only OpenSSL CheatSheet You Will Need!
In this tutorial we will cover different examples using openssl command, so in short let's get started with our openssl cheatsheet.
Master Python datetime() Function: The Clock Is Ticking
In this tutorial we will learn about python datetime module which can be used to get current date and time based on different timezone. Use strptime() or …
Check if Python String contains Substring [5 Methods]
How to check if string contains substring in Python. Look out for exact match, case insensitive match or use regex to match the pattern in Python script
Master Python Enum Classes: A Comprehensive Guide
The python enum class provides an implementation of an enumeration type, with iteration and comparison capabilities. It can be used to create well-defined …
