LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command line handling folder/filenames (https://www.linuxquestions.org/questions/linux-newbie-8/command-line-handling-folder-filenames-305899/)

Basslord1124 03-25-2005 09:32 AM

command line handling folder/filenames
 
I was just wondering what the correct syntax when issuing commands when you are dealing with folders/filenames that contain spaces, apostrophes, and what not. I've got a couple folders that use apostrophes and I have been able to fully access via command line. I have use the backslash before for spaces (I am sort of familiar with using backslashes from my programming classes).

visaris 03-25-2005 09:43 AM

You're right. Most things can be "escaped" with a '\'. Though, I like quotes myself. For example: cp "Why the hell would you ever want to use a space in a filename" Ahhhh_much_better


All times are GMT -5. The time now is 07:23 PM.