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!

FreeBSD Deletion of Directory Unknown

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
We have a garbage directory (we presume), we don't know where it came from, and we need to delete it. We can not use the "ls" command to view the directery, and we have tried various methods of deleting it, such as "rm -r", "rmdir", and various others. On attempt to delete the directory we recieve an error, "zsh: bad patter: [file name]". Oddly the file name contains hidden characters and unknown characters (to us). It is a FreeBSD system.

Does anyone have any ideas on how you might solve this? ?
 
Here is what I know to get around with hidden characters in Unix. Try to replace the suspicious characters in the dir name with wildcard characters, such as * or ?. To avoid mistakes, you should have BSD to prompt for confirmation before any deletion. Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top