Skip to main content

All Questions

Tagged with
0 votes
1 answer
3k views

Confirm if directory exists in a specific location then Run cmd 1 if not cmd 2

I have two scripts that I would like to merge into 1 batch file. The scripts just delete temp areas on windows 7 or xp, I would like to combine them by creating a conditional statement that states IF ...
user308945's user avatar
14 votes
5 answers
37k views

When running `rm -rf`, is it possible to exclude certain subdirectories?

I routinely use bind mounts to aid in making space available in multiple locations without having to have multiple logical volumes / physical partitions / LUNs, etc. For example, I may have a 200G LV ...
warren's user avatar
  • 10.2k