Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th August 2010, 08:53 PM
CamoAnimal Offline
Registered User
 
Join Date: Mar 2008
Location: USA
Posts: 67
linuxfedorafirefox
Accessing Directories From Terminal

Hey there,

So, incredibly simple problem that I am having a terrible time finding an answer to. I am trying to setup a program in Fedora to be redirected to a folder in my 64-bit Window$ partition, however I am not sure how to tell Terminal that it has a "(" and ")" in the path name.

The exact path in standard value is as follows:
"/media/12842F85842F6A85/Program Files (x86)/Steam/steamapps"
What SHOULD this look like in Terminal?
__________________
Music: it's not just a hobby, it's a lifestyle
- Linux MultiMedia Studio
- Registered Linux user #498244
Reply With Quote
  #2  
Old 29th August 2010, 09:15 PM
skolnick Offline
Registered User
 
Join Date: Nov 2007
Posts: 108
linuxchrome
Re: Accessing Directories From Terminal

When you find a ( in a filename, replace it with \(. Same for ), \, * and most other special characters.

Example:

ls /media/12842F85842F6A85/Program\ Files\ \(x86\)/Steam/steamapps

Notice how the spaces in the filename also require the preceding "\". This is called escaping. Another option, is enclose the whole filename between double quotes like this:

ls "/media/12842F85842F6A85/Program Files (x86)/Steam/steamapps"

Yet another option, would be using the tab key to autocomplete. Type the first part of the filename and press "tab", it will autocomplete.

Regards.

Last edited by skolnick; 29th August 2010 at 09:19 PM.
Reply With Quote
  #3  
Old 29th August 2010, 09:18 PM
lewis41 Offline
Registered User
 
Join Date: Jul 2007
Location: pisa
Posts: 66
linuxfedorafirefox
Re: Accessing Directories From Terminal

Have tried the back-slash, \, that escapes spaces and special characters?

Program\ Files\ \(x86\).

(skolnick was faster in replay)

Greetings

Last edited by lewis41; 29th August 2010 at 09:20 PM.
Reply With Quote
  #4  
Old 29th August 2010, 09:31 PM
CamoAnimal Offline
Registered User
 
Join Date: Mar 2008
Location: USA
Posts: 67
linuxfedorafirefox
Re: Accessing Directories From Terminal

Thank you both very much!! This seems to have done the trick
__________________
Music: it's not just a hobby, it's a lifestyle
- Linux MultiMedia Studio
- Registered Linux user #498244
Reply With Quote
  #5  
Old 29th August 2010, 09:57 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfedorafirefox
Re: Accessing Directories From Terminal

Or you could just put quotations around the whole thing and not worry about it....
Reply With Quote
Reply

Tags
accessing, directories, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing VPN and Terminal server at work cockney Servers & Networking 3 21st August 2009 12:19 AM
while accessing X-window terminal problem remeshk_tvm Using Fedora 2 5th October 2006 05:45 AM
browsing into directories from terminal ah.heng Using Fedora 5 11th June 2005 10:29 PM


Current GMT-time: 03:57 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat