Linux Hacks for everyone

  • vmstat

    VMSTAT The vmstat command is a powerful tool used to display information about system resources and memory usage on Linux systems. It’s a simple yet informative utility that provides detailed statistics about various system metrics, making it an essential tool for sysadmins and power users. Use of VMSTAT When you run the vmstat command without…

    Read more …

  • selinux

    SELINUX SELinux stands for Security-Enhanced Linux, a kernel feature that provides a robust security policy framework. It’s designed to restrict access to system resources based on labels assigned to users, processes, files, and other objects. SELinux helps prevent unauthorized access, malware propagation, and privilege escalation by enforcing a strict access control model. Use of SELINUX…

    Read more …

  • ip

    IP: The Command You Never Knew You Needed The ip command is a powerful tool that has been available in Linux since the days of Netfilter, but its usage has increased dramatically with the introduction of the IPROUTE2 suite. This command has largely replaced the older ifconfig and route commands, offering more features, flexibility, and…

    Read more …

  • watch

    Watch The watch command is a utility that allows you to run a command repeatedly over time, displaying its output each time it runs. It’s often used to monitor system processes, network traffic, or file system activity. Use cases: Monitoring a specific process: You can use watch to run ps aux every few seconds to…

    Read more …

  • semanage

    semanage semanage is a command-line tool used to manage SELinux (Security-Enhanced Linux) contexts and policies. It provides a way to view, modify, and update the SELinux security context of files, users, and processes on a Linux system. The main use of semanage is to: View and modify SELinux contexts for various resources (files, users, domains)…

    Read more …

  • hexdump

    Hexdump The hexdump command is a utility that displays the contents of a file or input stream in hexadecimal format, along with optional ASCII and binary conversions. This powerful tool is often used for debugging, data analysis, and reverse engineering. What’s its use? The primary use of hexdump is to: Examine binary data, such as…

    Read more …