1

I would like to clean up the Ubuntu machine I am working on. In particular, I would like to check for every Eclipse workspace of Java projects eventually abandoned on the machine. Since the machine has been previously used by other users, I do not know how many they are, and how extensively they could be scattere around. Is there a strategy that allows me to do that? By now, I approached the problem as suggested by the answers provided to the question: How to find my old Eclipse workspace?

Unfortunately, I did not find them satisfactory, since they do not allow to proceed with an exhaustive across the whole system.

Worice
  • 3,847
  • 3
  • 28
  • 49

1 Answers1

2

Every Eclipse workspace contains a directory named .metadata. Searching for this directory name should give you all workspaces.

find / -type d -name '.metadata'

If you want to clean up Eclipse installations from the system, check my answer on How to uninstall Eclipse for a list of other directories that are usually left behind after removing Eclipse.

kapex
  • 28,903
  • 6
  • 107
  • 121
  • Simple and effective indeed. I did not consider to approach the problem this way. Thank you! – Worice Mar 01 '19 at 17:15