Linux Sed Command Tutorial

In this lesson on the Linux sed command, you’ll learn how to: Perform text substitutions. Remove text from a stream. Perform in-place edits while preserving the original data as a backup. Use sed addresses to work on very specific sections of input. And much more… This lesson is just one of the 55 shell scripting … Read more

Resetting File Permissions And Ownership On RPM-Based Linux Systems

If you’ve come here looking to fix an errant recursive chmod or chown command on an RPM-based Linux system, then here is the quick solution. Run the following commands using root privileges: The –setugids option to the rpm command sets user/group ownership of files in a given package.  By using the -a option we’re telling … Read more