tips-and-howto's
Remove all files but one with rm
· β˜• 1 min read · ✍️ Sathyajith Bhat
Is there any way to remove all of the files in a directory except for one with a certain filename? For instance, if I had a directory containing the files file1, file2, and dontdelete. Would there be any way to quickly delete file1, and file2 and not dontdelete? I know that I could just do rm file1 file2 but that wouldn’t work for a bunch of files. Also, I’m on Mac OS X if that makes a difference

Five tips for a more efficient Linux desktop | Five Tips | TechRepublic.com
· β˜• 1 min read · ✍️ Sathyajith Bhat
1: The pager I am always shocked at how few people actually use the Linux pager. It’s been around forever and has always served the same functionality β€” it offers the user multiple desktops to keep the desktop better organized. I employ the pager like this: With four workspaces, I dedicate each workspace to a different use. My layout looks like this: Desktop 1 is for networking tools.