Category: Linux

How to disable “did you mean…” feature in Linux shell

How to disable offers to install a package with an incorrectly entered command In case the command you entered into the Linux console is not found, some distributions show additional information suggesting which packages the entered command might be in and how it can be installed. An example of such a message: Command 'magick' not found, did you mean: command...

awk and tabs in input and output

Why does awk incorrectly detect tab delimited data boundaries (input field separator) The following command will return an empty result instead of the expected third column: echo '1 2 3 4 5 6' | awk -F'\t' '{ print $3 }' In the command, instead of the standard FS (Input field separator), which is a space by default, the -F'\t' option...

How to convert a string to lowercase in Bash

This note will show you how to convert a string to lowercase (small letters) on the Linux command line. To convert a string to lower case regardless of its current case, use one of the following commands. tr echo "Hi all" | tr '[:upper:]' '[:lower:]' hi all Attention! If you want to change the case of any letters other than...

How to convert a string to uppercase in Bash

This note will show you how to convert a string to upper case (capital letters, uppercase) on the Linux command line. To convert a string to capital letters regardless of its current case, use one of the following commands. tr echo "Hi all" | tr '[:lower:]' '[:upper:]' HI ALL Attention! If you want to change the case of any letters...

How to print from specific column to last in Linux command line

In this note, we will consider how to display from a specific column to the last one. For example: how to output from second column to last how to display from third column to last how to display from the fourth column to the last how to output from nth column to last how to display the last column To...

How to remove newline from command output and files on Linux command line

How to remove newline from a string in Bash The following characters are used for line breaks in operating systems: '\n' (newline) '\r' (carriage return) Moreover, \n is used in Linux (also called EOL, End of Line, newline). There may be variations on other operating systems. By default, many programs, Linux command line utilities automatically add the newline character –...

Error “convert: delegate failed `’potrace’ --svg --output ‘%o’ ‘%i” @ error/delegate.c/InvokeDelegate/1911” (SOLVED)

Scalable Vector Graphics (SVG) is an XML-based vector image format for defining two-dimensional graphics, having support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium (W3C) since 1999. SVG images are defined in a vector graphics format and stored in XML text files. SVG images can thus be scaled in size...

How to show all errors in PHP 8

How to display all errors in PHP 8 By default, PHP 8 disables showing errors, so if there is a problem while executing a PHP script, nothing will be displayed on the screen. If an error in the program occurred before the output of the HTML code, then you will see a white screen of the web browser. Where is...

What is the difference between Suspend and Hibernate in Linux. Why is the Hibernation button missing?

When shutting down Linux, instead of completely shutting down the computer, you can select Suspend or Hibernate. These modes are also offered when configuring the behavior of the computer during inactivity (to save power), when the laptop battery is low, and when configuring the behavior after closing the lid of the laptop. Suspend means stopping all applications and puts the...

How to increase the swap partition in Linux Mint and Ubuntu. How to create a Swap file in Linux

In this article, using Linux Mint and Ubuntu as an example, we will learn how to view information on the swap partition, create a swap file, and also increase the space available for swap. The swap file is a specific place on permanent storage (for example, on a hard disk), where data that does not fit in RAM is temporarily...
Loading...
X