Command Line

Command Line
How to Keep Server Processes Running After Closing SSH

We’ve all experienced it: you’ve SSH-ed into a server and started a long-running task. Unexpectedly, it’s taking much longer than anticipated, and now you can’t close your laptop without interrupting the process. Fortunately, there’s a simple solution to close the terminal window without killing the ongoing task. Quick and Easy Method Follow these steps to […]

Command Line
How to List Cron Jobs in Linux

Cron, the time-based job scheduler in Unix-like operating systems, is a powerful tool for automating repetitive tasks. From system maintenance to data backups, cron jobs play a crucial role in keeping Linux systems running smoothly. This guide will walk you through various methods to list and review cron jobs, helping you maintain better control over […]

Command Line
Cron Job Scheduling for 5, 10, and 15-Minute Intervals

Cron jobs are automated tasks executed at specified intervals in Unix-like operating systems. These tasks can be scheduled to run by minute, hour, day of the month, month, day of the week, or any combination thereof. They’re invaluable for system maintenance and administration tasks such as database backups, security updates, disk space checks, and email […]

Command Line
Scheduling Cron Jobs with Crontab: Automating Tasks in Linux

Introduction to Cron Cron is a powerful scheduling daemon in Linux that executes tasks at specified intervals. These tasks, known as cron jobs, are essential for automating system maintenance and administration tasks. Understanding Crontab Crontab (cron table) is a configuration file that defines scheduled jobs. There are two types: Crontab Syntax The basic syntax for […]

Command Line
How to Rename Files and Directories in Linux: From Basics to Batch Operations

Renaming files is a fundamental task in Linux, whether you’re organizing your personal documents or managing server data. While renaming a single file is straightforward, batch renaming can be more challenging. This guide will walk you through using the mv and rename commands to efficiently manage file names in Linux. The mv Command: Simple and […]

Command Line
How to Rename Files and Directories in Linux Terminal

Renaming files is a fundamental task in Linux systems. While it’s straightforward for single files, batch renaming can be challenging, especially for newcomers. This guide will walk you through using the mv and rename commands to efficiently manage file names in Linux. The mv Command: Basic File Renaming The mv (move) command is versatile, used […]

Command Line
How to Unzip Files in Linux with command line

ZIP files are ubiquitous in the digital world, offering lossless data compression for files and directories. This guide will walk you through using the unzip command in Linux to extract ZIP archives efficiently. Installing Unzip Before we begin, ensure you have the unzip utility installed: Basic Usage To extract all files from a ZIP archive […]

Command Line
How to Extract .gz Files: A Comprehensive Guide

Gzip, a widely-used compression algorithm, efficiently reduces file sizes while preserving original attributes like mode, ownership, and timestamp. It’s particularly popular for compressing web content to enhance page loading speeds. Understanding .gz Files Files compressed with gzip typically end with .gz or .z extensions. This guide focuses on extracting (or unzipping) .gz files across different […]

Command Line
Grep Include Only *.txt

The grep command supports recursive file pattern option as follows: To limit your search for *.txt, try passing the –include option to grep command Syntax and examples for –include option The syntax is: You can include files whose base name matches GLOB using wildcard matching. A file-name glob can use *, ?, and […] as wildcards, and \ to quote […]