Tutorials on Linux, Programming & Technology

How to List Open Ports in Firewalld

How to List Open Ports in Firewalld?

To list the open ports in firewalld, the “firewall-cmd” command works with the “–list-ports” option. Before it, users ensure the active services of Firewalld.

How to Find Mtime in Linux

How to Find mtime in Linux?

The “stat”, “ls” and “find” commands are used to find the mtime of files in Linux. They display the modification time when the file’s content is modified.

How to Edit Hosts File on Linux

How to Edit Hosts File on Linux?

Linux provides the “nano” and “vim” text editors to edit or modify the host or any other file using the “sudo” privilege. It is easy to access and use.

How to Use fg Command in Linux

How to use fg Command in Linux?

To use the fg command in Linux, follow the general syntax “fg [Job]”. You can use different symbols to bring the jobs into the foreground in Linux.

Linux | ping Command

Linux | ping Command

In Linux, the ping command is used to troubleshoot networks, including the local machine network. The ping command comes preinstalled on Linux.

Bash until Loop Explained

Bash until Loop | Explained

In Bash, the until loop iterates the code until the specified condition is met. Using the until loop, users can modify conditions according to requirements.

What Exactly Does tar xvf Do?

What Exactly Does tar xvf Do?

The tar command compresses and extracts the files/directories. The tar xvf is used to extract the contents of the archive file with its verbose.

How to Clear Command History in Linux

How to Clear Command History in Linux?

Linux offers the “history” utility with the “-c” option and “-w” option to clear the current session’s command history and all previous session history.

How to Create a Ramdisk in Linux

How to Create a Ramdisk in Linux?

Linux offers the “tmpfs” and “/etc/fstab” files to create a ramdisk in the operating system. It is useful for storing and accessing data.

How to Adjust the tmux Pane Size

How to Adjust the tmux Pane Size?

To adjust the tmux pane size, use the mouse keys, the arrow keys with the prefix, or the commands used with the prefix.
Quest Score: 0%

How to Ping a Specific Port?

How to Ping a Specific Port?

To ping a specific port in Linux, we can use the tools of nc, nmap, and telnet. All these tools are useful for managing network interfaces.

How to Check the CentOS Version

How to Check the CentOS Version?

CentOS offers the “lsb_release”, “hostnamectl”, and “uname” commands to check the CentOS version. Also, the “centos-release” file contains version information.

Sort “du” Command by Size

Sort “du” Command by Size

Sort output from largest to smallest by a combination of “du” and “sort” commands with the “h” option. It displays output in a human-readable format.

Linux more Command With Examples

Linux more Command With Examples

Linux offers a “more” command that allows you to view the contents of a text file or output one page at a time. The syntax with multiple examples is given here.

Scheduling Cron Jobs with Crontab

Scheduling Cron Jobs with Crontab

The cron jobs are scheduled by following the five asterisks pattern. Each asterisk denotes a time (minute, hour, day of the month, month, day of the week).

Linux ls Command File Size Formatting

Linux ls Command File Size Formatting

In Linux, the “ls” command works with “-l” and “-h” options to display the list of file sizes in a long and human-readable format, respectively.

How to check RAM in a Linux

How to Check RAM in a Linux?

In Linux, the “free”, “top”, and “htop” commands are used to check the usage of RAM in the system. The “/proc/meminfo” file also contains RAM information.

fdisk Command in Linux Explained

fdisk Command in Linux | Explained

Linux offers the “fdisk” command to create, delete, and modify the partition in the system. It requires the name of a hard disk to display information.

How to Use Nmap to Scan All Ports

How to Use Nmap to Scan All Ports?

To use the nmap to scan all the computer ports from 0 to 65535, run the command “sudo nmap -p0-65535 ”. Read this post for more details.

source ~/.bashrc | Explained

source ~/.bashrc | Explained

The “source ~/.bashrc” command in Linux is used to update or refresh the changes made in the bashrc file to be applicable in shells permanently.

How to use mail command in Linux

How to use mail command in Linux?

To use the mail command for sending emails to the recipients, use the syntax “mail [Option] [Address]”. Different examples are used to explain its usage.

How to run SSH command and exit

How to Run SSH Command and exit?

To run the SSH command for executing different commands in the remote machine, enter the remote machine’s shell with “ssh user@ip_address”.

How to Record Audio in Ubuntu 22.04

How to Record Audio in Ubuntu 22.04?

Users can use the default recorder package known as gnome-sound-recorder or the audio recorder. The process of their usage/installation is explained.

How to merge pdf files in linux

How to Merge PDF files on Linux?

To merge PDF files on Linux, pdftk, a command-line tool, and pdf arranger, a GUI tool, can be installed. A demonstration of the steps is provided in this post.

cURL Headers Explained

cURL Headers | Explained

The cURL command is used in Linux to transfer data between two servers. The HTTPS Headers are responsible for sharing the additional data.

The xxd Hex Dumper Guide

The xxd Hex Dumper Guide

The xxd command converts the file’s contents into the Hexadecimal format. The xxd command can be used with its different options.

How to List Containers in Docker

How to List Containers in Docker?

To display the list of containers in docker, run the “sudo docker container ls -a” command. It displays the information of the running container in the system.

What Does File Permission 755 Mean

What Does File Permission 755 Mean?

The file permissions 755 means that the owner has full access (read, write, and execute permissions), and the remaining users have only read and execute rights.

How to Take a Screenshot on Linux

How to Take a Screenshot on Linux?

In Linux, the “PrtScr”, “Alt+PrtScr”, and “Shift+PrtScr” keys and third-party tools (Flameshot and Kazam) are used to take a screenshot.

Fix plt.show() not working

Fix: plt.show() not working

In Linux, the “plt.show() not working” can be fixed by executing the “sudo apt install python3-matplotlib” script in the terminal.

Fix command not found nvm

[Fixed] command not found: nvm

To fix the “command not found: nvm” make sure the package of the nvm is installed, and the load lines are included in the shell script of Linux.

Fix xterm DISPLAY is not set

Fix: xterm: DISPLAY is not set

To fix the error of the “xterm: DISPLAY is not set”, we have to set the value of the DISPLAY environmental variable in the operating system.

How to count in a for loop in Python

How to Count in a for Loop in Python?

To count in a “for” loop, the traditional “for” loop, along with the addition operator “+” and the “enumerate()” function, is used in Python.

How to Play DVD in Ubuntu 22.04

How to Play DVD in Ubuntu?

To enable the playing mode of DVD, your Ubuntu system must be equipped with a media player and the “libdvd-pkg” which contains all the required codecs.

How to List Cron Jobs in Linux

How to List Cron Jobs in Linux?

To list all the cronjobs, use the command “crontab -l”. To list specific cron jobs, use the command “ls -la /etc/cron.hourly/daily/weekly/monthly”.