- Tags/
Tips-and-Howto's
2011
Remove all files but one with rm
··94 words·1 min
Tips & How-To's
Terminal
Tips-and-Howto's
Tutorials
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
2010
Five tips for a more efficient Linux desktop | Five Tips | TechRepublic.com
··130 words·1 min
Linked
Commands
Cover
Find
Linux
Open Source
Tips
Tips-and-Howto's
Tutorials
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.
Desktop 2 is for writing/office tools.