Linux Server Basics: Essential Commands, Permissions, and Log Management
Linux server administration is essential for developers. This article covers the most practical Linux commands for file management and system administration.
Linux server administration is essential for developers. This article covers the most practical Linux commands for file management and system administration.
To extract parts of a path in Shell scripts, use ${variable#...}, ${variable##...}, ${variable%...}, and ${variable%%...} pattern matching to quickly strip directory components or extensions.
Use a for loop in Linux to compress every folder in the current directory into a zip file with the same name, or use tar to package multiple folders into one archive. This article covers both common batch compression approaches.