Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Delete Folder at Root

Status
Not open for further replies.

kurio71

Technical User
Oct 1, 2009
172
MX
I mistakenly copied a folder "s -lah com.papercut.client.plist" to the root of all my machines using ARD. I tried rmdir /s\ -lah\ com.papercut.client.plist but get folder not found. Looking for the correct command and syntax, thanks

ls
.DS_Store
.DocumentRevisions-V100
.Spotlight-V100
.Trashes
.file
.fseventsd
.hotfiles.btree
.vol
Applications
Library
Network
System
Users
Volumes
bin
cores
dev
etc
home
installer.failurerequests
net
private
s -lah com.papercut.client.plist
 
You probably need to either quote it, or use wildcards. Try these...

Code:
cd /
rm -rf "s -lah com.papercut.client.plist"
rm -rf 's -lah com.papercut.client.plist'
rm -rf *.plist

If the dash is causing parser problems, you can add a '--' just after the "rm -rf".

Code:
cd /
rm -rf -- "s*.plist"

 
I ran a LS from a machine and got -lah com.papercut.client.plist?. rm -rf *.plist? worked. Thanks SamBones

Support Technician in an Educational Environmant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top