User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux [2026/09/07 16:37] – reddylinux [2026/10/25 21:18] (current) – Added sysctl commands reddy
Line 181: Line 181:
 smartctl -H /dev/sda  # Perform health check smartctl -H /dev/sda  # Perform health check
 smartctl -A /dev/sda  # Look at Reallocated_Sector_CT and Current_Pending_Sector smartctl -A /dev/sda  # Look at Reallocated_Sector_CT and Current_Pending_Sector
 +</code>
 +
 +==== Grub Boot ====
 +
 +<code>
 +sudo grub-install --recheck /dev/sda
 +sudo update-grub
 +</code>
 +
 +==== Sysctl ====
 +
 +<code>
 +sysctl -a  # List all parameters
 +sysctl <param>  # List a specific parameter Eg. kernel.hostname, vm.swappiness
 +sysctl -w <param>=<value>  # Temporary change to parameter
 +sysctl -p <config_file>  # Reload from config (If no file specified, /etc/sysctl.conf)
 </code> </code>
  
linux.1788791830.txt.gz · Last modified: by reddy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki