Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-25-2005, 09:32 AM   #1
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
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).
Old 03-25-2005, 09:43 AM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify sets of filenames on cmd line? Kropotkin Linux - Newbie 8 11-20-2004 06:35 AM
folder names difference in KDE and the command line twallstr Linux - Newbie 2 10-04-2004 01:26 PM
how do I copy a whoel folder form one directory to another form the command line? zwyrbla Linux - Newbie 8 08-24-2004 06:40 PM
Handling filenames with spaces in PHP gw1500se Programming 2 03-14-2004 01:03 PM
remove folder from command line demmylls Linux - General 3 02-15-2004 09:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration