How to use the command 'archey' (with examples)

How to use the command 'archey' (with examples)

  • Osx
  • December 25, 2023

The ‘archey’ command is a simple tool for stylishly displaying system information. It can be used to quickly view various details about a system, such as the operating system, kernel version, hostname, and IP address.

Use case 1: Show system information

Code:

archey

Motivation: This use case is useful when you want to quickly view system information without any additional options.

Explanation: The ‘archey’ command without any additional arguments will display the system information with colored output. It uses the default settings to fetch the information and displays it in a stylish format.

Example output:

          /)                |    _   |/  |       
  _/_   // _)_  _  _  __    |   (_|  |\      _  
/(__)\_/|(_|(_(_(_)/ _)   _|_ __  ) |_)|_|_)_>
                        /             

Use case 2: Show system information without colored output

Code:

archey --nocolor

Motivation: This use case is helpful when you prefer a plain output without any color highlighting.

Explanation: The ‘–nocolor’ argument is used to disable colored output. When this option is specified, the system information is displayed in a plain format without any color highlighting.

Example output:

          /)                |    _   |/  |       
  _/_   // _)_  _  _  __    |   (_|  |\      _  
/(__)\_/|(_|(_(_(_)/ _)   _|_ __  ) |_)|_|_)_>
                        /             

Use case 3: Show system information, using MacPorts instead of Homebrew

Code:

archey --macports

Motivation: This use case is useful if you have MacPorts installed on your system and want to display the system information using the packages provided by MacPorts.

Explanation: The ‘–macports’ argument directs the ‘archey’ command to use MacPorts instead of Homebrew. This option ensures that the system information is fetched from the MacPorts installation and displayed accordingly.

Example output:

          /)                |    _   |/  |       
  _/_   // _)_  _  _  __    |   (_|  |\      _  
/(__)\_/|(_|(_(_(_)/ _)   _|_ __  ) |_)|_|_)_>
                        /             

Use case 4: Show system information without IP address check

Code:

archey --offline

Motivation: This use case is helpful when you want to display system information without performing the IP address check.

Explanation: The ‘–offline’ argument disables the IP address check in the ‘archey’ command. By default, ‘archey’ fetches the IP address of the system and displays it along with other information. However, using this option, the IP address check is skipped, and the system information is shown without any IP address details.

Example output:

          /)                |    _   |/  |       
  _/_   // _)_  _  _  __    |   (_|  |\      _  
/(__)\_/|(_|(_(_(_)/ _)   _|_ __  ) |_)|_|_)_>
                        /             

Conclusion:

The ‘archey’ command is a handy tool for displaying system information in a stylish manner. Whether you want to view the system information with or without color highlighting, use MacPorts instead of Homebrew, or skip the IP address check, ‘archey’ provides options to cater to your specific requirements.

Tags :

Related Posts

How to use the command `snowsql` (with examples)

How to use the command `snowsql` (with examples)

SnowSQL is a command-line client for Snowflake’s Data Cloud. It allows users to execute SQL queries and SnowSQL commands on Snowflake instances.

Read More
How to use the command 'az version' (with examples)

How to use the command 'az version' (with examples)

The command ‘az version’ is used to display the current version of Azure CLI modules and extensions.

Read More
rmlint (with examples)

rmlint (with examples)

Check directories for duplicated, empty and broken files: rmlint path/to/directory1 path/to/directory2 .

Read More