How-to articles, tricks, and solutions about LINUX
"No X11 DISPLAY variable" is an error message that you might see when trying to run a Java program that uses the X Window System to display a graphical user interface (GUI).
The location of the curl installation depends on the operating system and the method used to install it.
This error message is indicating that the script is trying to write to the file "composer.json" in the current directory (indicated by "./"), but it doesn't have the necessary permissions to do so.
If you are trying to download the Java Development Kit (JDK) on Linux using wget and you are being shown the license page instead of the JDK download, it is likely because the download page has changed since the wget command was written.
To activate a virtual environment in Linux, you can use the source command and the path to the activate script that is located in the virtual environment's bin directory.
To check if PHP is installed on your Ubuntu system, you can use the following command:
4 ways to clean your ubuntu machine. Here are some ways to clean your ubuntu PC and make it faster. Try the examples yourself and see the results.
SCP is being used to copy files from one machine to an other one. It can be used to transfer (download and upload) files vis ssh.
PHP provides a range of extensions and functions for getting the number of pages in a PDF document. Let’s check out the most efficient ones, here.
Learn How to Find All Files Containing Specific Text on Linux with W3docs tutorial. Also, try the examples yourself and see the results.
To find the Java heap size and the amount of memory used on a Linux system, you can use the jstat command and specify the process ID (PID) of the Java process.
To find your PHP-FPM socket file, you will need to first determine the location of your PHP installation.
SSH is a network protocol that helps to login from one computer to another securely. In this tutorial, you will read how to generate the SSH key for Git.
Working with Git starts with installing. This tutorial shows how to install Git on Linux. Get the codes of installing Git from repository and source code.
To set the JAVA_HOME environment variable in Linux for all users, you will need to add a line to the /etc/environment file.
Here is a code snippet that demonstrates how to use the open() function in Python to create a new file if it does not already exist:
In PHP, you can use the proc_open function to run a process and read its output in real-time.
To use a specific version of PHP with Composer, you can specify the version you want to use in the config section of your composer.json file.
This error occurs when a file or string that is being decoded using the UTF-8 encoding contains an invalid byte sequence.
You can use the alias command in your terminal to create a new command that runs a different version of PHP.
On a CentOS system, the php.ini file is usually located in the /etc directory.