How to summarize detailed system resource usage for given command on a Linux or Unix

To summarize the detailed system resource usage for a given command on Linux or Unix, you can use the time command. The time command provides information about the resources used by a command, including the real time elapsed, user time, and system time. Here’s how: Open a terminal window. Type the following command, replacing command … Read more

How to find out macOS version information from Terminal command prompt

You can find the version of macOS installed on your Mac from the Terminal command prompt by using the sw_vers command. Here’s how: Open Terminal. Type the following command and press Enter: sw_vers This will display the version of macOS installed on your Mac, including the ProductName, ProductVersion, and BuildVersion. For example: ProductName: Mac OS … Read more

How to install Composer on Debian / Ubuntu Linux

Composer is a dependency manager for PHP, which helps you manage the packages and libraries required for your PHP projects. Here’s how to install Composer on Debian or Ubuntu Linux: Open a terminal window. Download the Composer installer script by running the following command: curl -sS https://getcomposer.org/installer | php Move the composer.phar file to a … Read more

How to Force Apache To Show a HTTP-410 Gone Status Code

To force Apache to show a HTTP-410 Gone status code, you need to add a custom error response in your Apache configuration file. Here’s how to do it: Open the Apache configuration file, usually located at “/etc/httpd/conf/httpd.conf” or “/etc/apache2/httpd.conf”, using a text editor as root or using sudo. Add the following line inside the VirtualHost … Read more

How To Read CPUID Instruction For Each CPU on Linux With x86info and cpuid Commands

The “x86info” and “cpuid” commands are tools in Linux that allow you to read the CPUID information for each CPU in your system. Here’s how to use them: Using “x86info”: Open a terminal window. Run the following command to display information about your CPU using “x86info”: x86info -a This will show you a list of … Read more