Tutorials on Linux, Programming & Technology

Linux rmdir Command Examples

Linux rmdir Command Examples

Linux provides a built-in command line tool “rmdir” command to remove the directories and subdirectories from the local system.

How to List USB Devices in Linux

How to List USB Devices in Linux?

In Linux, to list down the USB devices, use the “lsusb”, “dmesg”, “usb-devices”, “lsblk”, “df”, or “fdisk” utility in the terminal.

How to List GPG Keys in Linux

How to List GPG Keys in Linux?

We can list GPG keys in Linux that help the users to view the information of public keys, secret keys, signatures, and fingerprints of the GPG keys.

How to Install GNOME on Ubuntu

How to Install GNOME on Ubuntu?

To install the GNOME desktop environment and minimal version, run the “ubuntu-gnome-desktop” and “ubuntu-desktop-minimal” commands in the system.

Cron Jobs Complete Beginners Tutorial

Cron Jobs: Complete Beginners Tutorial

The “cron” daemon is the built-in software utility that generally runs the process at a fixed time, day, date, or interval without any user interference.

Cron Job Scheduling by Examples

Cron Job Scheduling by Examples

For cron job scheduling, access the “crontab” file. It will automatically execute all the cron jobs after every minute, hour, weekday, month, and year.

5 quick ways to kill a process in Linux

5 Quick Ways to Kill a Process in Linux

To kill a process in Linux, the “kill”, “kilall”, “pkill”, “xkill” and “top” commands are used.
They require the process name or id to kill the process.

Install MySQL on CentOS 7

How to Install MySQL on CentOS 7?

To install MySQL on CentOS 7, the “mysql-server” package is required after enabling the repository of MySQL 8.0. It installs all dependencies in the system.

Ufw Firewall Allow SSH

Ufw Firewall Allow SSH

The ufw service can be allowed on SSH for a specific IP address, subnet, port number, and connection, as done in this article.

How to install Notepad++ on Linux

How to install Notepad++ on Linux?

In Linux, the “Notepad++” application can be installed using the command “sudo snap install notepad-plus-plus”. Or GUI support can also be used.

How Do I Close a Screen Session

How Do I Close a Screen Session?

To remove the screen sessions, run the screen utility using the “r” flag with its session ID and then type exit or use the shortcut key “Ctrl+A+D”.

What is a Boot Loader

What is a Boot Loader?

The boot loader loads the OS into memory and starts it. It is responsible for initializing the system, performing hardware tests, and giving control to the OS.

Days to a Date in Python

How to Add Days to a Date in Python?

To add days to date, the “timedelta()” class of the “datetime” module and “pd.Dateoffset()” function of the panda’s module are used in Python.

Print Object's Attributes in Python

How to Print Object Attributes in Python?

To print an object’s attributes, different methods are used in Python, such as the “dir()” function, “vars()” function, and “inspect.getmembers()” function.

Python Callback Function

Python Callback Function | Explained

A “callback function” is a defined function that is passed as a parameter value to another function. It is called at a specific point in the main function.

String Builder Equivalent in Python

String Builder Equivalent in Python

To create the string builder equivalent, the “join()” function, the “+=” operator, string concatenation, and the IO module are used in Python.

Modulo-Operator(%) in Python

Modulo-Operator(%) in Python

In Python, the Modulo operator “%” divides the two numbers and retrieves the remainder as output. It is also used for string formatting.

How to Sort a Set in Python

How to Sort a Set in Python?

To sort a set, the “sorted()” and the “list.sort()” functions are used in Python. These functions sort the set elements and retrieve them as a list.

How to Overwrite a File in Python

How to Overwrite a File in Python?

To overwrite a file in Python, the “open()” method, “seek() and truncate()”, “re.sub()”, “os.remove()”, “replace()”, and “fileinput()” methods are used.

Cosine Similarity in Python

Cosine Similarity in Python

To calculate the cosine similarity, the functions of the “Numpy”, “scipy”, and the “scikit-learn” module are used in Python.

Inverse of Matrix in Python

To find the inverse of the matrix, the “numpy.linalg.inv()” function, “numpy.matrix” class, and the “scipy.linalg.inv()” function is used in Python.

How to Convert Float to String in Python

How to Convert Float to String in Python?

To convert float to string, the “str()” function, “f-string” method, “repr()”, and “format()” functions, Numpy, and List Comprehension, are used in Python.

Convert Hex String to Int in Python

Convert Hex String to Int in Python

To convert hex string to integer, the built-in “int()” function and the “ast.literal_eval()” function of the “ast” module is used in Python.

How to Copy a Folder in Linux

How to Copy a Folder in Linux?

Linux offers the “cp(copy)” and the “rsync(remote sync)” commands to copy a folder from the source to the destination place. It can also be done via the “GUI”.

Linux Home Directory Explained

Linux Home Directory | Explained

Linux “home” directory is the subdirectory of the “root” directory denoted by the “~(tilde)” slash. It also refers to the “Login Directory”.

How to shut down your Linux system

How to Shut Down Your Linux System?

The “shutdown”, “poweroff”, and “halt” commands are used to shut down the Linux system. Moreover, it can also be achieved from the GUI.

How to Delete a Partition in Linux

How to Delete a Partition in Linux?

Linux offers the “fdisk” and “cfdisk” utilities to delete a partition from the device. Furthermore, It can also be performed via the “GParted” software tool.

/bin/rm: argument list too long

/bin/rm: argument list too long

The error “ /bin/rm: argument list too long” can be resolved by deleting the directory using the “rm” command. It can also be fixed via the “find” command.