• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

A space in a *nix filename

mattg1981

Senior member
There is a folder that I need to delete from a Unix system that has a space in it (ie. /My Folder) ... when I say rmdir My Folder ... it only sees rmdir My .... what is the character or whatever for a space? I thought it was %20 but I am wrong ... can someone shed some light please.

Thanks
 
either put the dirname/filename in quotes
rm -r "My Folder"

or

escape the space

rm -r My\ Folder
 
Originally posted by: adrianwalters
either put the dirname/filename in quotes
rm -r "My Folder"

or

escape the space

rm -r My\ Folder


yep. Anything with spaces in it you can put a preceding \ right before the space (and other special characters) and that will treat it as a literial instead of thinking you want to type in a second thing to delete/edit/whatever.
 
Back
Top