• 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

How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8

by admin

NX stands for No eXecute and XD stand for eXecute Disable is a technology used in processors to prevent the execution of certain types of code. NX/XD is a hardware cpu feature which is provided in almost all the hardware. Some BIOS has an advanced option of enabling or disabling it. This post will help to check NX/XD the feature is enabled or disabled.

Use the following command to check the status of NX/XD from the OS level.

For example:

1. From dmesg command:

# dmesg | grep "Execute Disable"
[ 0.000000] NX (Execute Disable) protection: active 

2. From journaltcl command:

# journalctl -b | grep 'Execute Disable'
Dec 31 14:30:23  kernel: NX (Execute Disable) protection: active 
Note: It is a hardware feature and available in almost all the hardware, some of the hardware has this feature Enable/Disable in BIOS itself. But it is not recommended to Disable this feature.

Conclusion

NX stands for No eXecute and XD stands for eXecute Disable. Both are the same and are a technology used in processors to prevent the execution of certain types of code. You can also use /var/log/messages file and dmesg command to check if this feature is enabled.

For example:

# cat /var/log/messages | grep "Execute Disable"
[ 0.000000] NX (Execute Disable) protection: active 
# dmesg | grep "Execute Disable"
[    0.000000] NX (Execute Disable) protection: active

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. “userdel: user xxx is currently used by process yyy” – Unable to delete an User
  2. add-apt-repository Command Examples
  3. Oracle OS watcher (OSWatcher) – Understanding oswiostat
  4. fprintd-delete Command Examples in Linux
  5. CentOS / RHEL 6 : How to limit memory resources for a specific user using cgroups
  6. aa-disable: command not found
  7. modprobe Command Examples in Linux
  8. telinit: command not found
  9. How to use ipset Command in Linux
  10. Linux Interview Questions – Linux Printing (CUPS)

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright