• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

a2query Command Examples in Linux

by admin

A2query is a command-line tool that is used to manage the Apache HTTP Server on Ubuntu and other Linux-based systems. It allows you to view, modify, and configure various aspects of the Apache web server, such as virtual hosts, modules, and directories.

To use A2query, you need to have the Apache HTTP Server installed on your system and be logged in as a user with sufficient privileges to modify Apache configuration.

a2query Command Examples

1. List enabled Apache modules:

# a2query -m

2. Check if a specific module is installed:

# a2query -m module_name

3. List enabled virtual hosts:

# a2query -s

4. Display the currently enabled Multi Processing Module:

# a2query -M

5. Display the Apache version:

# a2query -v

For more information about A2query and its usage, you can consult the Apache HTTP Server documentation or run the command man a2query to view the A2query manual page.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to test a PHP script
  2. How to Restart Network Services in CentOS/RHEL 8
  3. Basic vim commands (cheat sheet)
  4. CentOS / RHEL : How to add iptable rules
  5. krita Command Examples in Linux
  6. How to Update the hostname in Shell Prompt Once it is Changed in the Linux OS
  7. resize2fs Command Examples in Linux
  8. chage Command Examples in Linux
  9. How to delete a non-root use with UID 0 in Linux
  10. dir: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright