LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-25-2005, 10:32 AM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
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, 10:43 AM   #2
visaris
Member
 
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
 
  


Reply


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 07:35 AM
folder names difference in KDE and the command line twallstr Linux - Newbie 2 10-04-2004 02: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 07:40 PM
Handling filenames with spaces in PHP gw1500se Programming 2 03-14-2004 02:03 PM
remove folder from command line demmylls Linux - General 3 02-15-2004 10:52 AM


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

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