Linux Hacks for everyone

  • tar

    Tar The tar command is a powerful tool used to create and manage archives of files on Linux systems. It stands for Tape Archive, but it’s not limited to archiving data to tape media anymore. With tar, you can package multiple files into one single file, compress them, and even extract archives from various formats.…

  • du

    du The du command stands for „disk usage“ and is used to estimate the disk space occupied by files and directories on a Linux system. It’s a versatile tool that can be used by beginners, intermediate users, and even professionals. What is it used for? Checking file sizes: du displays the total size of each…

  • df

    df The df command is a built-in Linux utility that displays information about the file system disk space usage. It shows the total amount of used, available, and percentage of space used on each file system mounted on your system. Use cases: Checking the disk space usage on a specific file system (e.g., /, /home,…

  • top

    Top The top command is a system monitoring tool that provides real-time information about the system’s processes, memory usage, CPU load, and other vital statistics. It’s a powerful and essential tool for any Linux user to understand the current state of their system. What does it do? When you run top, it displays a dynamic…

  • ps

    ps The ps command, short for „process status“, is used to display information about currently running processes on your system. This includes details such as process IDs, user accounts associated with them, CPU usage, memory consumption, and more. Basic Use Case You can use the ps command in various forms, depending on your needs. Here…

  • grep

    grep The grep command is a powerful tool used to search for specific text patterns within one or more files. It stands for „Global Regular Expression Print“, which aptly describes its functionality. With grep, you can quickly scan through text data, whether it’s in log files, source code, or documentation. Use Cases Searching Log Files:…