Check basic info in Linux

 

Check System Information:

  • Display general system information.
    bash
    uname -a

2. Check Linux Distribution:

  • Identify the Linux distribution and version.
    bash
    lsb_release -a

3. Check Kernel Version:

  • View the Linux kernel version.
    bash
    uname -r

4. Check CPU Information:

  • Display information about the CPU.
    bash
    lscpu

5. Check Memory Usage:

  • View memory usage statistics.
    bash
    free -m

6. Check Disk Space:

  • Display disk space usage.
    bash
    df -h

7. Check Network Configuration:

  • Show network interface information.
    bash
    ip a

8. Check Running Processes:

  • Display information about running processes.
    bash
    top
    • Press q to exit.

9. Check System Uptime:

  • Find out how long the system has been running.
    bash
    uptime

10. Check Users Currently Logged In:

  • View a list of currently logged-in users.
    bash
    who

11. Check File System Information:

  • Display file system information.
    bash
    cat /etc/fstab

12. Check Active Network Connections:

  • View active network connections.
    bash
    netstat -tulpn

13. Check System Logs:

  • Check system logs for errors and messages.
    bash
    dmesg

14. Check Last System Reboot:

  • Display information about the last system reboot.
    bash
    last reboot

15. Check Installed Packages:

  • List installed packages.
    bash
    dpkg -l # For Debian-based systems (e.g., Ubuntu) rpm -qa # For Red Hat-based systems (e.g., CentOS)

These commands provide a quick overview of various aspects of a Linux system. Adjustments may be needed depending on the specific Linux distribution being used.

Comments