How to cd to a directory that contains spaces in the name

A brain dead application has created a directory hierarchy that contains white spaces in the directory path. For example: /first_dir/second dir/third dir/filename.
I want to look at the file from the command line via iTerm/Terminal but I can not get there because the whitespace is interpreted as the end of the text string. Example: cd /first_dir/second dir results in "/first_dir/second no such file or directory"
If I try "escape" the whitespace with: cd /first_dir/second\ dir/third\ dir I get an error that says "/first_dir/second dir/third dir no such file or directory"
How can I change to the desired target directory?
Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space??
Thanks

How can I change to the desired target directory?
Drag the file or enclosing folder into the Terminal window instead of attempting to type the path out.
Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space?
Because they write applications intended for the majority of Mac users, who only go into the Terminal or similar software when troubleshooting.
(56433)

Similar Messages

  • How move a physical disk directory that contains images

    PSE 11. How can I move a directory on my hard drive that contains images to another drive from within PSE 11? Thanks.

    Hi Bazsl,
    Just a quick answer, late to pick up my wife -grin.
    Starting with the assumption you are just seeing the column of directories without the indication of what drive they are on:    If So then:
    On the left margin next to the begining of the yellow folders aka directories, there is a small symbol of two yellow folders, if you click it the normal directory view will appear  (also assuming you are familar with earlier versions of PSE ).
    Then you can click and drag the directory to its new location, again the system may take a few minutes to complete the move if you have a big catalog of pictures...
    gotta run..
    Al

  • Spool filename that contains spaces

    Hi Folks,
    Does anyone know a technique for creating spool files that
    contain spaces in the path name?
    I have a script that I want to pass in a directory path as a
    parameter. The script then uses this directory as the path for
    dynamically created scripts which are run later in the main
    script, but SQL*Plus won't allow spaces in the path name.
    e.g.
    myScript.sql
    DEFINE P_DIR = '&1'
    SPOOL &P_DIR.script1.sql
    -- Dynamic SQL statements
    SPOOL OFF
    @&P_DIR.script1.sql
    Called by plus80 @myScript 'C:\Documents and Setting\andy\'
    I've tried various combinations of single and double quotes
    around the variable references and even tried a HOST cd &P_DIR
    command, all to no avail. I'm sure I've seen this done
    somewhere before.
    BTW Using a batch file is not a possible solution :(
    Any help would be much appreciated.
    Regards
    Andy

    This is logged as a SQL*Plus bug, #898051. It used to work in SQL*Plus 3.
    If you have access to MetaLink http://metalink.oracle.com/ you can view the complete text of the bug.
    -- CJ

  • Ear deploy problems if dir contains '.' in the name

    Is there a fix that will allow Weblogic 8.1 SP for RedHat to deploy an ear that contains directory structure containing '.' in the name?
    We currently have to extract the ear and modify the application.xml to deploy the app in question due to this limitation.

    "Don Maxwell" <[email protected]> wrote in message news:27286804.1095364176807.JavaMail.root@jserv5...
    Is there a fix that will allow Weblogic 8.1 SP for RedHat to deploy an ear that contains directory structure containing '.' in thename?
    >
    We currently have to extract the ear and modify the application.xml to deploy the app in question due to this limitation.What is the problem? Can you show a stacktrace?
    óÌÁ×Á

  • Can Java be started in a directory that contains non ascii char

    I installed a product developed using Java in a folder whose name contains non-ascii chars, such as Japanese chars or german chars.
    This will cause error said: unable initialise java virtual machine, error code -1
    Some one said Java doesn't like being started in a directory that contains non ascii characters. There appears to be no way of passing it unicode parameters.
    Is there anyone once hit the similiar issue or know the root cause of such problem?
    Thanks

    Yes you can use your web start application console. To enter data which is required for your application it is better idea to use java application which runs in console mode althou you may try to run console of windows and then read data from its input stream.

  • How do I recover a directory that I accidentally emptied in the trash?

    How do I recover a directory that I accidentally emptied in the trash?

    Restore it from your backups. If you don't have backups now you have a really good reason to start keeping a backup. Visit The XLab FAQs and read the FAQ on backup and restore. You may also find my FAQ on maintenance helpful.
    Basics of File Recovery
    If you empty the Trash the files are gone. Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When you delete files you erase only the directory entries, not the files themselves. However, the space occupied by the files has been returned to the system as available for storage. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    If you stop using the drive it's possible to recover deleted files that have not been overwritten with recovery software such as Data Rescue II, File Salvage or TechTool Pro. Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.0 is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.2 is Intel Mac compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. The current version, 1.5.1, is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • What is the directory that contains the init directories ?

    What is the directory that contains the init directories (rc0.d/ to
    rc6.d/)? 
    I want to install a copy of vmware5

    I think you've missed the point. Arch uses BSD-style init - /etc/rc.d. If vmware, or any other app, has an init script, it should be installed in /etc/rc.d, and if you want the app to start/stop on system boot/halt, the daemon name should be added to rc.conf DAEMONS. Creating rcX.d directories is pointless, because the Arch init process won't do anything with them.

  • HT203433 How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contain the app and try to open it,  It doesn't open.

    How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contains the app and try to open it, it doesn't open.

    Howdy Hestersfree,
    This can be done through the App Store on the device that you'd like the app installed on.
    Apps on iOS
    Open the App Store on your device.
    Make sure you are signed in with the same Apple ID used for the original purchase.
    Tap Updates from the bottom navigation bar. 
    Tap Purchased on the resulting screen.
    Locate the app in your Purchased tab.
    Tap the download button.
    The app will begin downloading and you'll be taken back to your home screen. 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • Pass parameters that contain spaces between web pages

    Hi,
    I have a .jsp . Inside it, I only need to call a link with a parameter.
    The problem is that the parameter contains spaces:
    name="ALARM LEVELS"
    If I write:
    <a href=modif_list.jsp?name=<%=paramName%>>See list</a></p>The parameter received in modif_list is "ALARM" and not "ALARM LEVELS"!!!
    How can I pass parameters that contain spaces between web pages?
    Thanks

    The think is that the parameter is a label and obviously I don't know the value before hand.
    In fact, I am using
    <a href=modif_list.jsp?table=<%=paramName%>&label=<%=label%>
    <%=tableName%></a></p>.....So I can't help it if the label contains spaces.
    Now if there is no solution, I suppose I can always replace the space by "_" and when I collect the parameter, I replace the "_" by a space!

  • How do i make a form that will tell me the difference between 2 figures?

    how do i make a form that will tell me the difference between 2 figures? ie: the jan. value of account is 32,010 and feb value is 34,013 and march value is 31,089 i would like it to tell me the difference automatically... whichever it is bigger or less... i am sure that this is possible... but i am a complete newby to all of this and could use some help...
    jan = 34,013
    feb = 34,013
    march = 31,089
    etc...
    etc...

    panahead wrote:
    i guess what i am trying to make is a form that will automatically calculate the difference in my investment account each month... and sometimes it goes up and sometimes it goes down... but having the difference calculated for me (without the possibility of me making a mathematical mistake) and then also giving me the percentage would be what i am looking for....
    Numbers will do the calculations, but it doesn't read minds.
    The formulas shown in my previous post assume a table arranged like the example below:
    The results in the bottom three rows (Apr, May and Jun) are correct for the simple formulas given and for the data entered in the Amount column as the empty cells are evaluated as containing zero. In practice, you would want a formula that suppressed the calculation until something was entered in that row of the Amount column. That's easy enough to add, should you think doing so will be useful.
    But it won't make Numbers read your mind.
    Regards,
    Barry

  • I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. After long hours, I discovered that if I change the name of the mailbox, the content works.

    I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. The title of the mails stored in the mailbox appear, but the content was unavailable.
    After 4 long hours at the phone with the Apple staff unable to help me, I discovered that if I change the name of the mailbox, the contents of the mails stored there become available.
    Please, make this solution available to other people!

    You have found the the way to share it.   Include your problem and its solution in a forum post in the Mavericks forums.   Then mark you own post with a green solved star.
    Note.  You won't get any points for that; points are only awarded where you mark someone else's post as either helpful or solved.

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • My ipod has 760 songs on it.  I had to reload my computer that contained itunes.  The new installation of itunes won't allow me to copy the songs into the library.  What can I do?

    My ipod has 760 songs on it.  I had to reload my computer that contained itunes.  The new installation of itunes won't allow me to copy the songs into the library.  What can I do?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

Maybe you are looking for

  • External display monitor suddenly is not working; power is on

    Hello, My LG external monitor display suddenly is not working today. It powers on, and it says "analog power saving mode", and it is detected by my ibook G4. When I go to preferences, and show displays, it shows that two displays are active, my lapto

  • Java newbie - loadField onto an HTML page

    Hi, I have very limited Java knowledge and this is probably a dumb question but I am hoping for some help. I am using "loadField" to pre-load a value on an HTML form but I also want the user to change that value if they think it is incorrect (in this

  • Problem with buddies list in yahoo on messages

    In messages on Mountain Lion i am not able to see the friend list from yahoo.Anyone knows any fix for this? many thanks!

  • IDE integration support

    Hi I'm trying to find the best IDE to use with WLS and are struggling a bit. I've been trying to select IDEs for WLS development for quite some time now (and for several projects), and I've always concluded that none of the IDEs support a tight enoug

  • Why won't my notes in an epub  sync between Mavericks or ios devices?

    Why won't my notes in an epub book sync between Mavericks and my ios devices?  I have checked to make sure that sync between devices is selected on all of my devices.