recursively delete all empty subdirectories

Caution!

find /home/user/somedir -depth -type d -empty -exec rmdir -v {} \; This CAN and WILL destroy all your data and eat your small { dog | cat | turtle | parrot } if you aren’t careful! ALWAYS check the path twice and then check it again before using.

Archive & Compression utilities

Compression types and utils in Linux There are many compression utilities available to the average users on a linux system, so which one is best? well it all depends on what your intended use/goal for the file(s) is. Are you planning on sending the file to other OS’s? are you planning on decompressing the file… Continue reading Archive & Compression utilities

Sed 101

SED aka stream editor is a utility app in linux / bsd systems (among others) which allows you to parse text in files based on simple regexp and change them based on its own set of rules. simple syntax for parsing and replacing text in a file called test.txt that contains the text I love… Continue reading Sed 101

Exit mobile version