Linux

How to Check WSL Version

How to Check WSL Version?

To check the current version of WSL, the “wsl –list –verbose” or “wsl -l -v” command is utilized in the Windows Command Prompt.

Fix ssh connection refused port

Fix: ssh connection refused port 22

The “ssh connection refused port 22” error can be resolved by installing “OpenSSH” packages or checking the active status of SSH services or port numbers.

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

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 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.

How to Install Cisco WebEx in Linux?

How to Install Cisco WebEx in Linux?

To install the Cisco WebEx on Linux distributions, download the Debian or RPM package of Webex and install it using the apt, yum, or dnf package managers.

Kill Command in Linux Explained

kill Command in Linux | Explained

The kill command is used to pass different signals in Linux to manage the behavior of the processes. In this blog, the kill command has been explained in detail.

cp Command in Linux | Explained

cp Command in Linux | Explained

The cp command in Linux is used to copy files and directories from different source locations to the destination in the computer

cd Command in Linux | Explained

cd Command in Linux | Explained

The cd command in Linux is used to change the directory. We can change our directory to another directory, home directory, or directly to the root directory

su Command in Linux | Switch User

su Command in Linux | Switch User

su Command in Linux | Switch User
Excerpt: We can switch from one user account using the terminal instantly. To switch from another user account to the already logged-in user, we use the “su command”.

Linux ifconfig Command Explained

Linux | ifconfig Command Examples

In Linux, the purpose of the ifconfig command is to configure the network interfaces, specifically those associated with Kernel modules

What is Uname Command in Linux

What is Uname Command in Linux

The uname command is used in Linux to display the basic information of the computer, including kernel name, hostname, kernel version, and processor type.

How to Count Files in Directory in Linux

How to Count files in Directory of Linux?

To count files in directory, use the “ls [path] | wc -l”, “find [path] | -type f | wc -l”, “tree [path]”, and “rsync –stat –dry-run -a [path]” commands.

How to Set or Change Hostname in Linux

How to Set or Change Hostname in Linux

To set or change the hostname in Linux, use the command “sudo hostnamectl set-hostname [name]” or by changing the computer name in Sharing of Settings.

How to check Services running in linux

How to Check Services Running in Linux

Run the command “systemctl list-units –type=service –state=running” or “service –status-all | grep ‘\[ + \]’” to check the running service on Linux.

How to Compile a C++ file in Linux

How to Compile a C++ file in Linux

In Linux, the “GCC” and “G++” compilers can be used to compile a C++ program using the name of the file to be compiled with the “lstdc++” option in “GCC”.