LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-18-2005, 02:29 PM   #1
blazintilda2005
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
Wine - changing directories with spaces


everytime i try to execute an .exe file in my terminal with "wine" i get an error when theres a space inbetween a name in a file. such as "program files" if it was named "programfiles" it would cd into it. does anyone know how to fix this problem?
 
Old 12-18-2005, 02:38 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Use slashes, e.g. "cd Program\ Files". If you type the first few letters and there isn't anything else in the current folder with the same name, the file/folder name will be completed when you press TAB. This is known as tab completion, unsurprisingly!
 
Old 12-18-2005, 02:51 PM   #3
Bremsstrahlung
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: Debian & Slackware
Posts: 77

Rep: Reputation: 15
Just to elaborate on Nylex's explanation:

there are a number of "special characters" in the shell, including "!", " "(space), and "&". Preceding such characters with \ tells the shell to read such a character in an alternate way, usually by interpreting it as just a character. So entering "\ " is just a space. This is how you refer to any file or directory with a space in the name, and the same goes for any files with ( or ), or any of those other characters.

Tab completion is pretty awesome. Not only does it fill in the value/name if there's one possible value (thus saving typing time for the lazy and impatient.. aka me), but if you hit tab twice it will list out for you all of the possible files/folders you COULD enter. This is one of the many features to the terminal that makes using it fast and powerful.
 
Old 12-18-2005, 03:05 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
if you're not suer how to use the \ (escape) character for special characters you can also simply write the whole filename/path and put it between " ". It'll also work. However I suggest you have a good look at the use of \ and tab-completion as explained above because it comes in handy very often.
 
  


Reply



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
Bash Scripting Directories with Spaces gtwilliams Linux - Software 3 07-06-2005 03:16 PM
Changing Permissions on Directories... bob4432 Linux - Newbie 6 06-25-2004 02:50 PM
Persmissions changing on root directories? granatica Linux - Security 2 06-14-2004 02:52 PM
script problem changing directories richie72 Linux - Newbie 3 04-15-2004 03:25 PM
Directories with spaces Blitzkrieg Linux - General 4 11-28-2002 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 AM.

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
Open Source Consulting | Domain Registration