Tutorials on Linux, Programming & Technology

What Port Does SSH Use

What Port Does SSH Use?

In Linux systems, SSH uses Port 22 that can visualize through the “getent” command, “systemctl” command, and “sshd_config” file

How to Check the PHP Version

How to Check the PHP Version?

In Linux, the “php –version” or the “php -i” commands are used to check the installed version of PHP. You can also search for specific PHP versions.

Ps Command in Linux Explained

ps Command in Linux | Explained

The ps command in linux is used to display all the running processes in the terminal. Detailed information about the processes will be displayed.

tr Command in Linux With Examples

tr Command in Linux With Examples

The “tr” command is utilized to transform strings from standard input and display the output after performing operations(deleting, replacing characters, etc.).

pwd Command in Linux | Explained

pwd Command in Linux | Explained

In Linux, the pwd command prints out the directory you are currently working on and provides an exact path from the root to the current directory.

How to Change User Password in Linux

How to Change the User Password in Linux?

To change the users’ password in Linux, use the commands “passwd” or “chpasswd” in the terminal or open the “Users” option in Settings using the GUI method

diff Command in Linux | Explained

diff Command in Linux | Explained

The diff command is used to make the comparison between two files comparing their every line. The diff command comes pre-installed in Linux distributions

Check if a variable is Null in Python

Check if a Variable is Null in Python

The “is” and “is not” operators, “==” and “!=” operators, and “if-else” Statements are used to check the “Null/None” variable in Python.

How do I Open a Text File in Linux Terminal

How do I Open a Text File in Linux Terminal?

To open a text file in a Linux terminal, we can use the “cat”, “head”, “tail”, “more”, “less”, “nl”, and “xdg-open” commands and text editors, “nano” and “vim”.

How to Install XAMPP On Ubuntu

How to Install XAMPP On Ubuntu?

First, download the XAMPP installer from its official website. Then, make it executable and run the installer to start the installation of XAMPP.

Python return Statement | Explained

Python return Statement | Explained

Python’s “return” function has a “return” statement inside the function, and when executed, it sends back the value to the main program.

Python math.pow() | Power of a Number

Python math.pow() | Power of a Number

To calculate the power of a number “math.pow()” function is utilized in the Python program. It returns a value of base raised to a power of exponent

Python map() Function | Explained

Python map() Function | Explained

To execute a specified function on each of the elements of an iterable such as a tuple, list, etc., the “map()” function is used in Python.

__init()__ function in Python

Python __init__() function | Explained

In Python, the “__init__()” function is used to initialize the value of the object attribute of the class. It calls automatically when the object is created

How to Reverse a String in Python

How to Reverse a String in Python?

To reverse a string in Python, the “string slicing”, “for” loop, “while” loop, “recursion” function, and “reversed()” function are used.

netcat Linux Command Explained

netcat Linux Command | Explained

In Linux, the netcat command is utilized to monitor the data across multiple devices within the network. This post has briefly explained the netcat command

KeyError 0 exception in Python

KeyError: 0 exception in Python

The “KeyError: 0 exception” occurs in Python when we try to access a “0” key in the given dictionary where the key value is not present.