Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-12-2004, 02:45 PM   #1
Registered: Oct 2004
Location: Canada -> Ontario -> Toronto
Posts: 34

Rep: Reputation: 15
Spaces in folder/file names ~ termial

Is there a key to replace the spaces in file names, folder names? Whenever there is a space in a path name, the terminal thinks its a break, even if it isnt. This, makes it difficult to do alot of things and I dont want to manually change the names of things. Any suggestions?
Old 11-12-2004, 02:56 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You need to escape the space with the backslash key. Example. let's say you have a folder in your home directory named My Music. To have the filename correctly interpreted by bash, you would have to enter it like this: ~/My\ Music, or /home/<username>/My\ Music (note the space after the backslash).
1 members found this post helpful.


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 handle file names with spaces in them bahadur Programming 14 04-04-2005 01:04 PM
how to handle file names with spaces in them bahadur Programming 3 03-23-2005 06:15 AM
du or wc and file names with spaces bramadams Slackware 2 01-27-2005 12:43 PM
Spaces in file names JohnKFT Slackware 3 11-09-2004 04:44 PM
File/Direcory Names with Spaces ar1 Linux - General 3 01-15-2004 11:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 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