Linux

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

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

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.

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.

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

How to Connect to a Docker Container

How to Connect to a Docker Container?

Docker provides the “docker attach” and “docker exec” commands to establish the connection with the running containers specifying the container name.

How to Check if Crontab is Working?

How to Check if Crontab is Working?

To check crontab services, “status” utility, “ps aux”, “pgrep”, and “tail” commands are used. It provides currently active/dead running processes in the system.

Understanding the etcpasswd File in Linux

Understanding the /etc/passwd File in Linux

The /etc/passwd file holds the information of “Username”, “Password”, “UID”, “GID”, “GECOS”, “Home directory”, and “Login shell” of the system and normal users.

Fix tar not found in archive

Fix: tar not found in archive

The error “tar not found in archive” is fixed by following the syntax correctly alongside the target directory name and its position in the syntax.

Fix: sudo apt-get command not found

Fix: sudo apt-get command not found

The error “sudo apt-get command not found” can be fixed by downloading the latest APT package manager to install, remove or update packages in the system.

Fix: no module named pkg_resources

Fix: no module named pkg_resources

The error “no module named pkg_resources” can be resolved by installing the python package via “sudo apt install python-pkg-resources”.

How to Rename Directories in Linux

How to Rename Directories in Linux?

To rename the directories in Linux, use the find command, mv command, or the GUI method. In this blog, all these methods are explained in detail.

5 Best Windows Emulators in Linux

5 Best Windows Emulators in Linux

Emulators are used in Linux to run Windows and Windows-based applications. 5 best windows emulators and their installation guides are provided in this post.

unlink Command in Linux Explained

unlink Command in Linux | Explained

In Linux, the “unlink” command removes the file and link after accessing the required directory. It is useful to remove unnecessary files from the system.

How to Save a File Using Nano

How to Save a File Using Nano?

The existing file can be saved by pressing the “Ctrl+S” key in Nano Editor. Also, the “Ctrl+O” key overwrites the file with a different name or file format.

How to grant root privileges in Linux

How to grant root privileges in Linux?

In Linux, the “sudo” command is utilized with “- s”, “su -” and “-i” utilities to grant the root privileges from a normal user after authentication.

grep Command in Linux

grep Command in Linux | Explained

In Linux, the grep command is utilized to highlight (shows the match) the specific word, character, or string after searching the entire content in a file.

Sysctl Command in Linux Explained

sysctl Command in Linux | Explained

The sysctl command allows the user to modify the kernel parameters on the Linux system at runtime. You should only do that if you are fully aware.

Fix ssh no route to host

Fix: ssh no route to host

In Linux, the “ssh no route to host” error is fixed through the “ping” command, updating firewall rules for Port 22, and installation of the “OpenSSH” utility.

Fix sudo unable to resolve host

[Fixed] sudo: unable to resolve host

In the Linux system, the “sudo: unable to resolve host” error can be resolved by configuring the hostname properly (either to change it or use it correctly).

Fix export ld_library_path

Fix: export ld_library_path

The error “export ld_library_path” can be encountered by setting the environment variable to the “/usr/local/lib” directory.

How to Increment a Variable in Bash

How to Increment a Variable in Bash?

In Linux, the “+”, “+=”, “Prefix”, and “Postfix” operators are used to increment a variable in bash. The bash can be executed as “bash ”.