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 […]

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 […]

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 […]

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 […]

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 […]

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 […]

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 […]

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 […]

Apache window appears and immediately disappears (SOLVED)

When I click on httpd.exe, a black window flickers and then disappears Apache (httpd) is a command line utility. Strictly speaking, this is a service that is designed to run in the background without a graphical interface. That is, Apache does not have a graphical interface in the form of a familiar window. Therefore, Windows […]

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 […]

Loading...
X