Tag: Shell Script
-
Different Use Cases of Bash and EXP (Expect)
What Bash can do, Expect can also achieve; but what Expect can do, Bash may not necessarily be able to accomplish. In system administration and automation tasks, bash and EXP (the command from the Expect tool) are two powerful utilities. While both are used in the command-line environment to execute tasks, they serve distinct purposes… Read more…
-
Using LFTP and Dynamic Variables to Backup Files to a Remote FTP Server
This article provides a simple guide for using LFTP, a powerful command-line FTP client, to automate file backups to a remote FTP server. We will leverage dynamic variables like date and time to create unique backup directories and filenames. What is LFTP? LFTP is a robust command-line tool that supports a wide range of features,… Read more…
-
How to Sort Files by Size in Multilevel Directories in Linux / macOS
Managing files on Linux often involves identifying the largest files within a directory and its subdirectories, particularly when disk space is at a premium. This article explains how to search for files in Linux and sort them by size, with the largest files appearing first. We’ll explore a few efficient command-line methods to achieve this.… Read more…
-
Linux User Management: A Comprehensive Guide
Linux is a multi-user operating system, and user management is a critical aspect of system administration. It involves creating, modifying, and removing users, as well as managing groups, permissions, and access. In this article, we’ll go over several key Linux user management operations, providing examples along the way. 1. Creating a Group In Linux, groups… Read more…