Articles by Deepak Prasad
How to PROPERLY Rename Column in Pandas
In this tutorial we will learn use pandas dataframe.rename() and other methods to rename column in a List, CSV files, Dictionaries or any other type of object …
How to append string in Python
Python append string using different operators and functions such as str.join, + operator, += and format strings. Concatenate strings to one another.
How to declare global variables in Python
How can we define global variables in Python. What is the difference between local vs global variables. What are namespaces, scope and functions in Python …
Your Friendly Guide to Type Checking in Python
Discover the transformative power of Type Checking in Python and enhance your coding precision. Explore essential strategies, avoid common mistakes, and unlock …
Print variable in Python like a PRO [7 Methods]
In this tutorial we will learn how to print variable in python using different methods. Use plus to concatenate strings and print them, use format strings to …
How to disable SELinux (with and without reboot)
What is SELinux and how can i disable SElinux permanently with or without reboot. Change SELinux mode runtime using setenforce. Enable permissive mode for …
Found a swap file by the name .XXX.swp
What is .swp file? Why this file is created? How to get rid of Found a swap file by the name warning? Another program may be editing the same file. An edit …
Beginners guide to use ssh config file with examples
beginners guide to learn and use ssh config file with example to define different SSH client arguments, There are different configuration files which can be …
Bash if else usage guide for absolute beginners
Beginners tutorial to learn bash if else statement in Linux and Unix. Nested if statement, Bash if multiple condition, if elif else statement with shell script …
Bash Function Usage Guide for Absolute Beginners
How to define bash function, pass command line arguments to a function and store it as variable or array, Use return value to return different exit codes from …
chmod Recursive in Linux: Change File & Directory Permissions Safely
Learn how to use chmod recursive (-R) in Linux with clear examples. Change permissions for all files or directories using 755 or 777, avoid common mistakes, and …
10 examples to generate SSH key in Linux (ssh-keygen)
Use ssh-keygen to generate SSH key to use public key based authentication in Linux. Create key pair with custom filename, change passphrase of existing private …
Bash while loop usage with examples for beginners
Absolute beginners guide to learn bash while loop with shell script examples. Use while true loop with break and continue statement, nested while loop, while …
Bash For Loop usage guide for absolute beginners
For loop in bash is used to iterate a certain command or task for a definite or infinite range. You can also use this in C programmer style, combine with …
SOLVED: SSH fails with postponed publickey error
[Solved} Steps to debug and fix postponed publickey error leading to SSH connection failure. You may also get ROOT LOGIN REFUSED, Failed pubkey, permission …
