Linux Articles

Page 2 of 134

Screen Command Examples to Manage Linux Terminals

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 328 Views

In the world of Linux system administration and development, working with multiple terminal sessions is a common necessity. The screen command is a powerful terminal multiplexer that allows you to create, access, and manage multiple terminal sessions within a single window. This comprehensive tutorial will explore the screen command in detail, covering its functionalities, options, and practical use cases, empowering you to manage your Linux terminals more efficiently. Why Use screen? screen offers several key advantages − Detaching and Reattaching Sessions − You can detach from a screen session and reattach to it later, even from a different location. ...

Read More

Command Line Archive Tools for Linux

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 390 Views

Archiving and compressing the files is a fundamental task, whether for backups, software distribution, or simply organizing data. The command line offers a powerful and efficient way to handle archives. This comprehensive tutorial explores the most commonly used command-line archiving tools in Linux, including tar, gzip, bzip2, xz, and zip, demonstrating their functionalities, options, and practical use cases. Understanding Archiving and Compression Before diving into the tools, it's essential to understand the difference between archiving and compression − Archiving − Combining multiple files and directories into a single file (archive). This simplifies file management and transfer but doesn't necessarily ...

Read More

How to Create a Linux Swap File?

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 303 Views

In Linux, swap space acts as an extension of your system's RAM. When your physical memory (RAM) is fully utilized, the operating system moves less frequently used data to the swap space, freeing up RAM for active processes. This can prevent your system from crashing or becoming unresponsive under heavy load. This guide will walk you through the process of creating and enabling a swap file on your Linux system, providing you with the knowledge to manage your system's memory effectively. Understanding Swap Space Swap space can be a dedicated partition or a file. Using a swap file is ...

Read More

How to Configure sudo in Linux?

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 284 Views

sudo (SuperUser DO) is an indispensable tool in Linux, allowing authorized users to execute commands with root privileges. However, blindly granting sudo access can pose significant security risks. Properly configuring sudo is crucial to maintain a secure and manageable system. This comprehensive guide will explore the intricacies of configuring sudo in Linux, covering various techniques, options, and best practices to ensure controlled and secure root access. Why Configure sudo? The default sudo configuration grants full root access to users in the sudo or wheel group. While this is convenient for administrators, it's often too permissive for regular users. Configuring ...

Read More

How is the Linux kernel tested?

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 402 Views

The Linux kernel is the heart of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. Given its critical role, rigorous testing is paramount to ensure its stability, reliability, and security. This guide explores the multifaceted testing methodologies employed to safeguard the Linux kernel, from automated suites to community-driven efforts. The Importance of Kernel Testing The Linux kernel is incredibly complex, with millions of lines of code and support for a vast array of hardware. Testing is crucial to − Prevent regressions − Ensure that new code changes don't ...

Read More

How to Clear BASH Command Line History in Linux?

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 854 Views

The Bash command-line history is a powerful feature that allows you to easily recall and reuse previously executed commands. However, there are times when you might want to clear this history for privacy reasons, security concerns, or simply to start with a fresh slate. This comprehensive guide will explore various methods for clearing your Bash command-line history in Linux, covering different techniques, options, and best practices. Why Clear Bash History? Clearing your Bash history can be important for several reasons − Privacy − If you've been working with sensitive information or executing commands you don't ...

Read More

Testing and Debugging a Cron Job in Linux

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 902 Views

Cron jobs are essential for automating tasks on GNU/Linux systems, from backups and system maintenance to scheduled reports and data processing. However, setting up cron jobs correctly is only half the battle. Testing and debugging them is equally crucial to ensure they run as expected and don't introduce unexpected issues. In our comprehensive guide we will explore various techniques for testing and debugging cron jobs in Linux, helping you keep your automated tasks running smoothly. Why Test and Debug Cron Jobs? Cron jobs run in the background, often without direct user interaction. This makes it essential to test and debug ...

Read More

Show Asterisks While Typing Sudo Password in Linux

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 350 Views

Security is paramount in any GNU/Linux environment. One common concern is the visibility of passwords, especially when using sudo. By default, when you type your password for sudo, nothing is displayed on the screen. This "blank" input is a security measure, but some users prefer to see asterisks (*) or other characters as they type to confirm that something is being entered. This guide will explore how to configure your GNU/Linux system to display asterisks or other masking characters when typing your sudo password, along with important security considerations. But Why Mask Passwords? Actually, The primary reason for masking ...

Read More

Shell Initialization Files and User Profiles in Linux

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 477 Views

The power and flexibility of Linux is deeply intertwined in its shell environment. Understanding how shell initialization files and user profiles work is crucial for customizing your Linux experience and optimizing your work-flow. These files control everything from your command prompt appearance to the environment variables available to your shell sessions. In this tutorial, we will explore the intricacies of shell initialization files, explaining their purpose, differences, and how to effectively use them. What are Shell Initialization Files? Shell initialization files, often referred to as "dotfiles" because of their leading dot (making them hidden by default in file managers), are ...

Read More

Linux Boot Process - A Basic Guide

Ahmed Abdul-Monem
Ahmed Abdul-Monem
Updated on 26-Mar-2025 713 Views

The Linux boot process, while seemingly complex, is a well-defined sequence of events that brings your system from a powered-off state to a fully functional operating system. Understanding this process is crucial for troubleshooting boot issues, customizing your system, and gaining a deeper understanding of Linux internals. In this tutorial, we will provide a basic overview of the Linux boot process, explaining each stage in detail. The Stages of the Linux Boot Process The Linux boot process can be broadly divided into the following stages − BIOS / UEFI − Basic I/O System or Unified Extensible Firmware Interface. MBR ...

Read More
Showing 11–20 of 1,337 articles
« Prev 1 2 3 4 5 134 Next »
Advertisements