Part of the official requirements for Kubernetes is to disable swap space completely before attempting to launch Kubernetes. In some recent patch notes, Kubernetes has begun implementing support for swap space in some scenarios, but it is not fully supported. The official reason for not supporting swap space is because it is hard to predict how a pod might utilize memory when swap is enabled.
filesystem
Download file from URL on Linux using command line
How to write a Bash script to run commands
Bash scripting is a powerful tool for automating complex tasks in Linux and Unix systems. One of the key features of bash scripting is the ability to run system commands within a script, enabling developers to automate repetitive tasks or complex workflows. In this article, we will explore the basic syntax and best practices for writing a bash script to run commands. Whether you’re a beginner or an intermediate-level bash programmer, this article will provide you with the foundational knowledge and skills to create robust and efficient scripts that can automate even the most complex tasks.
Resolving the ‘File Not Found’ Error on Linux
If you receive the File Not Found
error on your Linux system, it typically means that the file or directory you are attempting to access does not exist. It could also indicate that you do not have the proper file permissions on the file or directory. There are a ways we can resolve this error, which we will look at how to do in this tutorial.
Resolving the ‘No Space Left on Device’ Error on Linux
The No Space Left on Device
error on a Linux system means that the partition you are trying to write data to or save files on lacks sufficient space for the operation. There are several things that users can do to resolve the error, all of which involve either freeing up additional space on the partition or extending the total size of available space. In this tutorial, we will show you how to resolve the No Space Left on Device
, and go over some basic Linux commands that can help us to identify the problem.
Fixing the ‘Too Many Open Files’ Error on Linux
Every Linux system imposes some upper limit on the number of files that can be opened simultaneously. If you exceed this limit, you will encounter the Too Many Open Files
error. This is a security feature and failsafe to keep the system from becoming overwhelmed, since opening thousands of files is ordinarily unnecessary and indicative of a program gone haywire or a malicious user trying to crash the system.
Fixing the ‘Permission Denied’ Error on Linux
If you receive the Permission Denied
error on your Linux system, it usually means that your user account does not have the proper permissions on the file or directory you are trying to interact with. All files and directories in the Linux file system have user and group permissions attached to them that delegate access to read, write, or execute the file. These permissions work independently of each other, so just because you are able to open a file, does not mean you can edit it.
Ubuntu 22.04 not booting: Troubleshooting Guide
If you are having trouble booting into your Ubuntu 22.04 system, there is a tool called Boot Repair that can remedy a broad range of frequent issues. Usually trouble with booting can be due to the GRUB boot menu or a corrupt file in the /boot
directory. Whatever the case may be, Boot Repair is an excellent software to help us start troubleshooting.
How to find a string or text in a file on Linux
On a Linux system, the need to find a string in a file can arise quite often. On the command line, the grep command has this function covered very well, but you’ll need to know the basics of how to use it. On GUI, most text editors also have the ability to search for a particular string.
How to save and exit file using nano editor in Linux
In this tutorial, you will learn how to save a file in the Linux nano editor. The nano editor is one of the most popular ways to edit files via the command line on Linux systems. There are plenty of others, like vim and emacs, but nano is praised for its ease of use.
How to mount a remote filesystem over SSH with sshfs
SSH (Secure Shell) is a protocol used to establish an encrypted connection with a remote machine using a client-server model: the ssh server runs on the machine we want to access remotely, while a client is used on the machines from which we want to connect. Thanks to sshfs, we can use an existing SSH connection to mount a remote directory in a secure way, without using additional services like NFS or Samba.
How to extend the Thunar file manager with custom actions
Thunar is the file manager included in Xfce, a free and open source Desktop Environment which implements the traditional desktop metaphor, and has become the favorite of many users which switched to it when the GNOME project introduced the GNOME shell. Thunar is light on resources but doesn’t lack functionalities which can be extended further by creating custom actions.