Tutorials on Linux, Programming & Technology

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.

Fix: No LSB modules are available

To fix No LSB modules are available, install the “lsb-core” package or if already installed, then try to remove it and then reinstall it.

How To Install RustDesk on Ubuntu 22.04

How To Install RustDesk on Ubuntu 22.04?

On Ubuntu 22.04, the RustDesk application can be installed using the “sudo apt install ./rustdesk.deb” command. It is not available on the official repository.

How to Count Lines in a Linux File

How to Count Lines in a Linux File?

To count the lines in a Linux file, different methods are used, like, wc (word count), grep, sed, awk, nl (number of lines), and perl commands.

-bashrc in Linux Explained

.bashrc in Linux | Explained

In Linux, the .bashrc configuration file is executed when the user logs in. It can be used to create custom functions for various commands or operations.

Less Command in Linux Explained

less Command in Linux | Explained

In Linux and its distributions, the “less” command helps get the content of the file in an organized way. Read out this post to learn more.

Linux rm command explained

Linux rm Command | Explained

The “rm” command can delete or remove files from the specified directory in Linux. It contains a lot of supported options mentioned in this guide.

Linux Server Monitoring Commands

Linux | Server Monitoring Commands

Several commands are used as server monitoring tools, like; top, ps, vmstat, lsof, free, tcpdump, and netstat, which help us to monitor system performance.

How to Run a Program in Linux

How to Run a Program in Linux?

In Linux, a program can be run using different methods, including GUI, terminal, Run command, and custom shortcut keys, as discussed in this article.

How to Install G++ on Ubuntu

How to Install G++ on Ubuntu?

In Ubuntu, the G++ compiler comes by default. The G++ compiler compiles the C++ program written on the command line with the help of the default nano editor.

Cal command in LinuxExplained

cal Linux Command | Explained

The “cal” command displays the current/specific month and year calendar. To execute this command, install the “ncal” (new calendar) package in Linux.

How to print integer values in Python

How to Print Integer Values in Python?

To print integer values, the “print()” function, “f-string” method, and “sys.stdout.write()” function of the “sys” module are used in Python.

What is the Super Key

What is the Super Key?

In Linux, the super key is the system key which can be used with other keys as shortcut keys. Shortcut keys give the user quick access to specific tasks.

How Many Threads Per Core

How Many Threads Per Core?

Threads provide an execution path within the process that can be found using the “lscpu” command in the terminal. Read this article for more details.

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

Fix syntax error unexpected end of file

syntax error: unexpected end of file

The error “syntax error: unexpected end of file” occurs due to the syntax error like the closing bracket missing or the loop is started but not closed.

Chown Command in Linux

Chown Command in Linux | Explained

The Linux “chown” command changes the ownership of files, directories, or groups. The file ownership is changed using the “sudo chown owner filename” command.

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.

How to check if a file exists in bash

How to Check if a File Exists in Bash?

Three different methods are used to check if a file exists in bash, which are executed using the “test EXPRESSION”, [EXPRESSION], and [[EXPRESSION]] commands.

How to Analyze Disk Usage in Linux

How to Analyze Disk Usage in Linux?

To analyze the disk usage in Linux, run the “df” command, and the “du” command in the terminal or use the disk usage analyzer application (GUI).

add user to docker group

How to Add User to Docker Group?

A docker is an open-source application managing platform where users can be added to the docker group using the “sudo usermod -aG docker user-name” command.

How to List Users in Linux

How to List Users in Linux?

To list users in Linux, run the “cat /etc/passwd” command. Use “cat /etc/passwd | cut -d: -f1”, and “awk -F: ‘{ print $1}’ /etc/passwd” commands for user names.

How to Undo and Redo in Vim

How to Undo and Redo in Vim?

To undo in Vim, the “u”, “:u”, or “:undo” commands and to redo the “:r” or “ctrl + r” commands are used in “Normal” mode.

How to Cite Chicago Style on Google Docs?

How to Cite Chicago Style on Google Docs?

Google Docs enables users to cite the “Chicago” style by pressing the “Citations” option from the “Tools” tab. It requires some information for citations.

How to Make a Long Dash in Google Docs?

How to Make a Long Dash in Google Docs?

Making a long dash is possible by inserting the “em-dash” character and shortcut key “ALT+0151” in Google Docs. It is used to pause between two phrases.