Setting $PATH using the terminal

Hi All! I am a newbie with OS X and I am wondering as to how to add a directory into the PATH using the terminal. Thank you very much!

Ustilago wrote:
Hi All! I am a newbie with OS X and I am wondering as to how to add a directory into the PATH using the terminal. Thank you very much!
Welcome to Apple Discussions!!
export PATH=/path/to/your/directory:$PATH
Note that you should supply the complete path to the directory you want to add.
To make this automatic for each time you start the Terminal, you need to arrange for it to appear in ~/.bash_profile or ~/.bashrc. It's best to put it in the latter, since this is run for every Terminal window. ~/.bash_profile is only executed for the initial login window, but you can avoid duplication by having it source ~/.bashrc. Stripped to its essentials, my ~/.bash_profile is just
if [ -r ~/.bashrc ]; then
. ~/.bashrc
fi
If you have further questions, you might find posting them in the UNIX forum better. One of the regular posters there, Bill Scott, has this page which you may find useful: Unix Links, especially under the Mac OS X heading.

Similar Messages

  • How can I add to an existing path using the pencil tool?

    This probably seems like a rather elementary question, but
    whenever I draw a path using the pencil tool, reselect it,
    hover over the endpoint, and the click and drag to extend
    the line off into a different direction, Illustrator will often
    (but not always) erase the existing path and leave only the
    new one that I drew.
    To wit:
    In step 1 above, I draw a line with the Pencil tool.
    In step 2 above, I reselect the line from step 1, hover over the endpoint, and then continue to draw further.
    However, as can be seen in step 3, the line from step 1 disappears after I draw the new path.
    I am aware of the pencil setting, "Edit selected paths", and I have checked it to edit selected paths
    within 12 pixels for the above example. What I am doing in the above example, and what I
    want to do, is to be able to add more paths onto an existing one using the pencil tool,
    rather than have a completely new path being drawn every time I lift up my pen to finish
    drawing the previous path.
    I also realize that I can do this with the pen tool; but the pen tool is a more
    precise tool (and somewhat more cumbersome), and I prefer to have more
    of the rough-handed look from time to time.
    Finally, I also know that I can use the direct selection tool to select endpoints
    from two different paths and then join them using the join command;
    but this seems to be more trouble than it's worth in many cases, especially
    if I want to do it frequently for a more long and complicated line.
    Am I expecting too much out of Illustrator?
    Is my idea of how to use the existing tools wrong in this case?
    Is there some piece of knowledge I'm missing?
    I'm on Illustrator CS5, Mac OS X 10.6.8, using a Wacom Intuos4 tablet.
    However, I have confirmed the above on Illustrator CS4 for Mac as well.
    Any help or comments would be much appreciated.
    Jeff

    Thanks @rcraighead - the Live Paint process seems a bit overkill for simply adding
    a new path onto an existing pencil path, but I did try the first idea you suggested,
    which was tracing a bit over the last part of the existing path and then continuing
    on to extend the path. It's a bit imprecise because the existing path gets slightly
    modified, but it seems to work pretty well all in all. Nice idea indeed - thanks a million.
    I also found that in AI CS5, I can use the selection tool to select all of the paths
    in this case and then join them using the join command. I thought I needed to
    select individual anchor points for this to work, but it actually works really
    well, better than I thought. I seem to recall that previous versions of Illustrator
    were a lot more picky with the Join command, but then again this might just
    have been my lack of understanding.
    I'm curious to know what other solutions to the above problem that other users
    might have, so I will leave this question unanswered for a bit...
    but I will use your initial technique described - it seems to work
    pretty well, in absence of other options Many thanks again for your timely help.
    Jeff

  • Help using the terminal.

    I'm taking a survey course of languages and we are covering perl this week. I need to write perl script that will parse xml data, but I can't even figure out how to use the terminal.
    when I open the terminal I get this line(I subed out my name and username):
    firstName-LastName-MacBook-Pro:~ username$
    i have tried command from tutorials such as ls and that works, but I can't figure out how to run scripts from a file. I have tried a simple hello world app by typing:
    #!/usr/local/bin/perl
    print "Hello World!\n";
    in text edit saving it as hello.pl then I tried to type hello.pl in the terminal and it says
    -bash: first.pl: command not found
    can someone explain in simple terms how to run simple programs like this?
    thanks, aaron

    Thanks for the help. That was a lot of good information. I did have it saved wrong(as rich text).
    It is a common mistake, and I'm glad you avoided it.
    However I still could not figure out how to run first.pl. using ./first.pl and ~/first.pl
    The "chmod +x first.pl" step is need to mark the file as an executable. As previously suggested by etresoft and me, you can also just use "perl first.pl" and avoid the other configuration stuff.
    I downloaded fraise as you recommended. Can you guide me through the part were you said, "modify your PATH environment varialble so it includes a directory where you put your personal scripts." i did not understand what you meant by "Create the file .bash_profile in your home directory (you will need ls -a to see the file after you create it). In .bash_profile".
    Any file that begins with a period will be invisible to the Finder. And the 'ls' command will by default not show files that begin with a dot. "ls -a" will so all files in a directory, including those that begin with a dot. This was the Unix way of cutting down on clutter in a directory, by having 2 classes of file name, and the ones with a leading dot were then typically used for things like initialization files.
    In this case .bash_profile is a bash shell initialization file. By default Mac OS X Terminal sessions use the bash shell to service the commands you enter at the command prompt.
    However, a new Mac OS X account typically does NOT have a .bash_profile, so if you wish to customize various bash behaviors you would need to create the .bash_profile yourself.
    And as much as I happen to love the vim (and before that vi) text editors, they have a very steep learning curve, so I'm hoping that etresoft was being humorous when he suggested you should avoid a GUI text editor such as Fraise
    And besides, if you start down the vi/Vim path, it will only lead to text editor wars with the emacs uses of the world Since you are trying to get through a programming language survey course, perhaps you can skip the text editor debates until a later semester.
    With respect to PATH. PATH is a standard Unix environment variable that contains a list of directories that the shell (bash) will search when trying to find the executable file with the same name as the command you entered at the shell command prompt.
    If you do not modify your PATH environment variable, it generally looks like:
    echo $PATH
    /bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    where each directory is separated by a colon (:). The shell will take the command name you entered, and search each directory from left to right until it find an executable file that matches your command.
    What I was suggesting is that you create your own personal directory where you put executable programs and scripts, and then add that personal directory to your PATH environment variable.
    Since the bash shell is going to read .bash_profile when you start a new Terminal session and execute the commands it finds in .bash_profile, that is the idea place to customize your PATH
    # Assuming you have created a folder called 'bin'
    # in your home directory, and you put your personally
    # created executable programs and scripts in there
    # then the following export command would modify your
    # PATH to include your personal bin directory. It does
    # not need to be called bin, that is just a long standing
    # Unix convention.
    export PATH="$PATH:$HOME/bin"
    After changing the .bash_profile, you would need to either restart your Terminal session or issue the command
    source ~/.bash_profile
    I'm a complete beginner when it comes to this stuff.
    your help is greatly appreciated.
    We all had to start somewhere. In my case the Unix command line prompt was a step up in usability
    ps. how to I enclose my code quotes like you did?
    Code segments (or anything you do not want the forum software to touch) are enclosed in an identical pair of tags. For example:
    ... your code snippit here ...
    And one final point. etresoft pointed out that the she-bang (#!) line was wrong. I find the following to be the most portable way to specify the #! line
    #!/usr/bin/env perl
    print "Hello World!
    /usr/bin/env is a POSIX standard program that must list in /usr/bin/env, and it will invoke the script interpreter specified as its single argument. /usr/bin/env will use PATH to find the script interpreter, so as long as perl exists in one of the directories specified by PATH, my above #! will always find it, no matter what Unix platform I copy my perl script to, or hand it in for a homework assignment (OK, it is been a lot of years since I did homework, but you might find it useful for your survey course).
    etresoft also suggested included the -w option in your #! line. That is not possible when using "#!/usr/bin/env perl", however, you can can just add the "use warnings;" statement to the your perl script and get the same effect:
    #!/usr/bin/env perl
    use warnings;
    print "Hello World!
    And if you want perl to look even close at your code you can change warnings to strict
    #!/usr/bin/env perl
    use strict;
    print "Hello World!
    {code}
    which makes perl really picky about your code.

  • Error "Members, tuples or sets must use the same hierarchies in the function" in MDX

    the following MDX returns error: "Members, tuples or sets must use the same hierarchies in the function"
    WITH
    MEMBER [Measures].[Prev Year] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Year].Levels('Year'),
    1,
    [Exec Date].[Year].CURRENTMEMBER
    MEMBER [Measures].[Prev Month] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Month Num].Levels('Month Num'),
    1,
    [Exec Date].[Month Num].CURRENTMEMBER
    MEMBER [Measures].[Prev Day] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Day].Levels('Day'),
    1,
    [Exec Date].[Day].CURRENTMEMBER
    SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
    SELECT (
    STRTOSET(@ExecDateHierarchy, CONSTRAINED)
    ) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    and when I replace "StrToMember(@ExecDateLevel)" with
    StrToMember("[Measures].[Prev Month]") the MDX is compiled correctly.
    what is the problem?
    How can I solve that?

    Hi Breceive,
    In your scenario, the issue is caused by that you select dimension members and measures on the same axis without a crossjoin.
    SELECT NON EMPTY {  StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS
    To avoid this issue, you can use the query below.
    WITH
    MEMBER [Measures].[Prev Year] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Year].Levels('Year'),
    1,
    [Exec Date].[Year].CURRENTMEMBER
    MEMBER [Measures].[Prev Month] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Month Num].Levels('Month Num'),
    1,
    [Exec Date].[Month Num].CURRENTMEMBER
    MEMBER [Measures].[Prev Day] AS
    [Measures].[returns],
    PARALLELPERIOD
    [Exec Date].[Day].Levels('Day'),
    1,
    [Exec Date].[Day].CURRENTMEMBER
    SELECT NON EMPTY { StrToMember("@ExecDateLevel")*[Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
    SELECT (
    STRTOSET(@ExecDateHierarchy, CONSTRAINED)
    ) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Here is a similar thread for you reference.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3c21d9a8-640d-4dde-bc76-08d1fcbb3a31/multiple-dimension-query?forum=sqlanalysisservices
    Regards,
    Charlie Liao
    TechNet Community Support

  • Spry Tabbed Panels set to use the Opacity fade out / in

    can the Spry Tabbed Panels be set to use the Opacity fade out / in similar to the Spry Image SlideShow effects?

    First add an ID to the tab as follows or similar
    <h2 id="second">Tab 2</h2>
    Then add a style rule to add a background image as follows or similar
    .TabbedPanelsTab#second {
        background:url(myImage.gif);
    Gramps

  • I have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found.help

    have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found please help !!

    You need to restart the iMac and hold down the Command and R keys immediately.
    You will then have the utilities drop down and you choose Terminal
    When Terminal opens, type exactly:
    resetpassword
    and press Return.
    When the Reset Password window opens, select the user for which you want to change the password.
    Enter the new password twice, and then click Save.
    Accept the next dialog window,
    And then Apply
    When finished click the apple at the left side of the menu bar, and the Restart.

  • Using the terminal????

    I am new to the hole MAC world and know very little about using its terminal. How do I write a command using the terminal to find a file? Also are there any good tutorials out there that I can study from? Thanks.

    Additionally, check the AppleScript and Unix forums under OS X Technologies. Note, that the default shell for OS X is bash. Check Terminal's help if you want to use another.
    Since you're new to Macs, these should help:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    MacFixIt Tutorials, and
    MacTips Learning Centre.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides, and
    A guide for switching to a Mac.

  • Does anyone know the command and sequence to empty trash using the Terminal utility?

    Does anyone know the command and sequence to empty trash using the Terminal utility?

    Hi d,
    1. Open Terminal (in Applications, Utilities).
    2. Copy and paste the following command into theTerminal window (or type it exactly as follows):
    sudo rm -rf ~/.Trash/*
    3. Press Return.
    4. Type in your password when asked (note: you will not see anything being entered as you type your password).
    5. Hit Return.
    6.Wait until the process finishes/the Terminal prompt returns.
    7. Quit Terminal.

  • Accessing dot mac email using the terminal

    Is it possible to access one's dot mac email account using the terminal?
    Thanks-
    db
    Powerbook G4   Mac OS X (10.4.7)  

    Hm, Windows has this dang tendency to make simple things hard :-/
    First note that Putty won't help you much, because it allows you to log into remote SSH servers, but I don't think it gives you a "local shell", i.e. replace or extend the normal DOS shell (or whatever it's called nowadays) that comes with Windows.
    That said, I don't know whether you can find Windows ports of some Unix tool that would help you somewhere in the "vicinity" of Cygwin http://www.cygwin.com/ or so ... I don't use Windows enough to know that
    My personal solution to a similar problem is to rent a Linux root server, together with a few friends, which gives us all a platform to perform anything in the internet as long as we have an SSH capable computer where we are.
    If you have an ADSL flatrate you could even leave a computer at home on and SSH into that...

  • Any unix commands to view network status & activity using the terminal?

    I don't use the terminal much and was wondering if there are any unix network commands that let you view packet contents, connection status and other network information. I'm not interested in making any changes, I just want to use the terminal to get network and related information.
    Thanks in advance to anybody who answers.
    - Mark
    G4/450MHz Sawtooth   Mac OS X (10.4.7)  

    Hi Mark,
       There are tons of commands; it would help to know what you want to know. You can monitor the status of all ports with:
    sudo lsof +Mi
    That will display all network connections and all listening daemons. A command that is similar to that is:
    netstat -a -f inet
    Of course netstat specializes in network information and there are lots of different stats it will display.
       If you run a firewall, it keeps stats on rule matches. You can see them with:
    sudo ipfw -atdN list
       As has already been mentioned, Mac OS X comes with tcpdump but there's only one great packet sniffer: Ethereal. It doesn't come with OS X but if you have X11, it can be installed with a packet manager like Fink.
       Finally, many running services keep their own stats or logs. You would have to read up on the ones you're running to see what information they provide.
    Gary
    ~~~~
       A diplomat is man who always remembers a woman's
       birthday but never her age.
             -- Robert Frost

  • Setting PATH in X11 terminal (different than Terminal for some reason)

    When I start up the Terminal in Mac, and type
    $echo $PATH
    I get what's in ~/.profile
    When I start X11 ans use xterm and type
    $echo $PATH
    I don't get the path being echoed from ~/.profile
    What file do I edit to set the path when I'm using xterm in X11?

    Hi sugapablo,
       The short and dirty answer is to create a ~/.bashrc containing the following line:
    source ~/.profile
    The ~/.profile is only sourced by the loging shell, which is generally the first shell you open after booting. Subsequent shells source the ~/.bashrc instead, which is supposed to be lighter-weight. It is assumed that subsequent can shells can inherit the environment from the login shell but xterms can't inherit from Aqua terminals. Thus, the above source command is needed often enough to make this a reasonable fix.
    Gary
    ~~~~
       You climb to reach the summit, but once there,
       discover that all roads lead down.

  • How do I use the Terminal to run the 10.6.8 update?

    After my iMac crashed during the 10.6.8 update install, the Finder won't launch (tried via the Dock and "Force Quit" command). I've used a Terminal window to get to the folder (ChangeDirectory) with a downloaded copy of the 10.6.8 update but I don't know how to launch the Installer program to try to re-install the update (Software Update won't help here because the Mac is updated enough to claim to be running 10.6.8 so it doesn't think there is anything to update).
    TIA.

    now able to create logical drive but installation again failed, here is the console log:
    6/30/11 11:41:30 PM          Installer[966]          Mac OS X Update  Installation Log
    6/30/11 11:41:30 PM          Installer[966]          Opened from: /Volumes/Mac OS X 10.6.8 Update/MacOSXUpd10.6.8.pkg
    6/30/11 11:41:57 PM          Installer[966]          ========================================================================== ======
    6/30/11 11:41:57 PM          Installer[966]          User picked Standard Install
    6/30/11 11:41:57 PM          Installer[966]          Choices selected for installation:
    6/30/11 11:41:57 PM          Installer[966]                    Install: "Mac OS X Update"
    6/30/11 11:41:57 PM          Installer[966]                    Install: "Mac OS X Update"
    6/30/11 11:41:57 PM          Installer[966]          ========================================================================== ======
    6/30/11 11:41:57 PM          Installer[966]          Configuring volume "HD"
    6/30/11 11:41:57 PM          Installer[966]          Free space on "HD": 63.61 GB (63612735488 bytes).
    6/30/11 11:41:57 PM          Installer[966]          Create temporary directory "/var/folders/eW/eWl9WrwqGQ0hARMov5qLTk+++TI/-Tmp-//Install.9664INg9O"
    6/30/11 11:41:57 PM          Installer[966]          IFPKInstallElement (1 packages)
    6/30/11 11:41:57 PM          installd[984]          PackageKit: ----- Begin install -----
    6/30/11 11:42:14 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:14 PM          kernel
    6/30/11 11:42:14 PM          kernel
    6/30/11 11:42:21 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:21 PM          kernel
    6/30/11 11:42:21 PM          kernel
    6/30/11 11:42:29 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:29 PM          kernel
    6/30/11 11:42:29 PM          kernel
    6/30/11 11:42:36 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:36 PM          kernel
    6/30/11 11:42:36 PM          kernel
    6/30/11 11:42:51 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:51 PM          kernel
    6/30/11 11:42:51 PM          kernel
    6/30/11 11:42:58 PM          kernel          disk0s2: I/O error.
    6/30/11 11:42:58 PM          kernel
    6/30/11 11:42:58 PM          kernel
    6/30/11 11:43:06 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:06 PM          kernel
    6/30/11 11:43:06 PM          kernel
    6/30/11 11:43:13 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:13 PM          kernel
    6/30/11 11:43:13 PM          kernel
    6/30/11 11:43:27 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:27 PM          kernel
    6/30/11 11:43:27 PM          kernel
    6/30/11 11:43:34 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:34 PM          kernel
    6/30/11 11:43:34 PM          kernel
    6/30/11 11:43:42 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:42 PM          kernel
    6/30/11 11:43:42 PM          kernel
    6/30/11 11:43:49 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:49 PM          kernel
    6/30/11 11:43:49 PM          kernel
    6/30/11 11:43:58 PM          kernel          disk0s2: I/O error.
    6/30/11 11:43:58 PM          kernel
    6/30/11 11:43:58 PM          kernel
    6/30/11 11:46:47 PM          installd[984]          Deferred path /usr/bin/mdcheckschema is not in sandbox and will be skipped.
    6/30/11 11:47:16 PM          kernel          disk0s2: I/O error.
    6/30/11 11:47:16 PM          kernel
    6/30/11 11:47:16 PM          kernel
    6/30/11 11:47:24 PM          /System/Library/PrivateFrameworks/PackageKit.framework/Resources/shove[100 3]          [source=file] failed _RelinkFile(/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/System/Library/Frameworks/SystemConfiguration .framework/Versions/A/_CodeSignature/CodeResources, /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/_CodeSignat ure/CodeResources): Input/output error
    6/30/11 11:47:24 PM          kernel          disk0s2: I/O error.
    6/30/11 11:47:24 PM          kernel
    6/30/11 11:47:24 PM          com.apple.installd[984]          Input/output error
    6/30/11 11:47:24 PM          kernel
    6/30/11 11:47:24 PM          installd[984]          PackageKit: Install Failed: (null)
    Error Domain=PKInstallErrorDomain Code=120 UserInfo=0x1040d2e70 "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=5 "The operation couldn’t be completed. Input/output error") {
        NSLocalizedDescription = "An unexpected error occurred while moving files to the final destination.";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=5 \"The operation couldn\U2019t be completed. Input/output error\"";
        arguments =     (
            "-f",
            "-s",
            "/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root",
    6/30/11 11:47:25 PM          Installer[966]          Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    6/30/11 11:47:27 PM          Installer[966]          IFDInstallController 3EFB090 state = 7
    6/30/11 11:47:27 PM          Installer[966]          Displaying 'Install Failed' UI.
    6/30/11 11:47:27 PM          Installer[966]          'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
    6/30/11 11:47:27 PM          Installer[966]          The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
    6/30/11 11:47:29 PM          /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982]          MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds

  • A Guide on How to Use the Terminal?

    hey all, i've been looking for a guide on how to use the command prompt in Lion and haven't  been able to find anything. i'm brand new to the OS X and would appreciate any help. i'd like to learn the different commands first instead of the GUI.
    by the way, are there any guides on what to do in the first stage of setting up OS X on a mac mini?
    thanks

    I'd start here: Terminal 101.  Reading books on UNIX would be helpful too.

  • I deleted my bootcamp via DU and then deleted the hard drive by using the terminal. My BOOTCAMP is still there and now my fusion drive is separated from the SSD portion and I have no idea how to fix it.

    First off I have a 3tb fusion drive.
    I created a 200gb bootcamp, I tried deleting the bootcamp because I thought I messed it up and googled how to delete a mac partition which told me to use Disk Utility, did that and then erased it and somehow it got locked and wouldn't let me do anything to any partition on my hard drive (everything was greyed out)
    After looking up and googling for hours I found a post saying the only way to fix it would be to go into CMD+R and go into the terminal window and type out disklist and then find the first UUID number and do something along the lines of disklist delete (UUID) i forget the exact formula. I did this, and then I had 3 separate untitled hard drives.
    One in the size of 1.9gb on in 800gb and one in 121.3gb (which is the SSD), I put my time machine backup onto the 1.9gb untitled and now my computer is booting slowly (because it's no longer running off of the SSD and the original bootcamp is still there.
    To be honest I am absolutely confused on what else to do!
    Is there anyway I can fix this?

    How do I go about deleting and then re-adding the hard drives? Completely lost on how to make it back to being a 3gb fusion drive.
    Thank you for all your help, I honestly really appreciate it.
    I followed your instructions and got the following
    diskutil list:
    -bash-3.2# diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            120.5 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *3.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         1.9 TB     disk1s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3
       4:          Apple_CoreStorage                         251.9 GB   disk1s4
       5:                 Apple_Boot Boot OS X               134.2 MB   disk1s5
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     Apple_partition_scheme                        *1.3 GB     disk2
       1:        Apple_partition_map                         30.7 KB    disk2s1
       2:                  Apple_HFS OS X Base System        1.3 GB     disk2s2
    /dev/disk3
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Untitled               *1.9 TB     disk3
                                     Logical Volume on disk1s2
                                     FD9357F1-1A71-44A0-A01E-41C84F1C8047
                                     Unencrypted
    /dev/disk4
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Untitled               *251.5 GB   disk4
                                     Logical Volume on disk1s4
                                     31B60F49-6981-47A3-9815-6396AD3A9BD6
                                     Unencrypted
    /dev/disk5
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *5.2 MB     disk5
    /dev/disk6
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk6
    /dev/disk7
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk7
    /dev/disk8
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk8
    /dev/disk9
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk9
    /dev/disk10
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk10
    /dev/disk11
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *6.3 MB     disk11
    /dev/disk12
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *2.1 MB     disk12
    /dev/disk13
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *1.0 MB     disk13
    /dev/disk14
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk14
    /dev/disk15
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *524.3 KB   disk15
    /dev/disk16
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *1.0 MB     disk16
    /dev/disk17
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *319.4 GB   disk17
       1:                        EFI EFI                     209.7 MB   disk17s1
       2:                  Apple_HFS IMAC TMB                319.0 GB   disk17s2
    /dev/disk18
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            untitled               *6.3 MB     disk18
    /dev/disk19
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:        CD_partition_scheme                        *804.4 MB   disk19
       1:     Apple_partition_scheme                         700.4 MB   disk19s0
       2:        Apple_partition_map                         32.3 KB    disk19s0s1
       3:                  Apple_HFS WD SmartWare            237.5 MB   disk19s0s2
    -bash-3.2#
    diskutil cs list
    -bash-3.2# diskutil cs list
    CoreStorage logical volume groups (2 found)
    |
    +-- Logical Volume Group 687E889E-B4A1-4F20-8B36-43D7A3701076
    |   =========================================================
    |   Name:         Untitled
    |   Status:       Online
    |   Size:         1946162462720 B (1.9 TB)
    |   Free Space:   5402624 B (5.4 MB)
    |   |
    |   +-< Physical Volume 7BCD8D9C-AEB2-4D48-B248-257EFC7EA922
    |   |   ----------------------------------------------------
    |   |   Index:    0
    |   |   Disk:     disk1s2
    |   |   Status:   Online
    |   |   Size:     1946162462720 B (1.9 TB)
    |   |
    |   +-> Logical Volume Family 3A8A9627-5963-49BA-8E2F-96DC7A1B033D
    |       ----------------------------------------------------------
    |       Encryption Status:       Unlocked
    |       Encryption Type:         None
    |       Conversion Status:       NoConversion
    |       Conversion Direction:    -none-
    |       Has Encrypted Extents:   No
    |       Fully Secure:            No
    |       Passphrase Required:     No
    |       |
    |       +-> Logical Volume FD9357F1-1A71-44A0-A01E-41C84F1C8047
    |           ---------------------------------------------------
    |           Disk:                  disk3
    |           Status:                Online
    |           Size (Total):          1945804734464 B (1.9 TB)
    |           Conversion Progress:   -none-
    |           Revertible:            No
    |           LV Name:               Untitled
    |           Volume Name:           Untitled
    |           Content Hint:          Apple_HFS
    |
    +-- Logical Volume Group 98213AE6-9EA8-4FB7-8B72-8E08BFBFD82C
        =========================================================
        Name:         Untitled
        Status:       Online
        Size:         251864797184 B (251.9 GB)
        Free Space:   5226496 B (5.2 MB)
        |
        +-< Physical Volume 20CEF763-635D-4A0D-A107-40E8FB161D06
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk1s4
        |   Status:   Online
        |   Size:     251864797184 B (251.9 GB)
        |
        +-> Logical Volume Family 2D3173B3-5B04-47E6-B331-49D1BA58E9F2
            Encryption Status:       Unlocked
            Encryption Type:         None
            Conversion Status:       NoConversion
            Conversion Direction:    -none-
            Has Encrypted Extents:   No
            Fully Secure:            No
            Passphrase Required:     No
            |
            +-> Logical Volume 31B60F49-6981-47A3-9815-6396AD3A9BD6
                Disk:                  disk4
                Status:                Online
                Size (Total):          251507245056 B (251.5 GB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Untitled
                Volume Name:           Untitled
                Content Hint:          Apple_HFS
    -bash-3.2#
    Disk0
    -bash-3.2# gpt -vv -r show /dev/disk0
    gpt show: /dev/disk0: mediasize=121332826112; sectorsize=512; blocks=236978176
    gpt show: /dev/disk0: PMBR at sector 0
    gpt show: /dev/disk0: Pri GPT at sector 1
    gpt show: /dev/disk0: Sec GPT at sector 236978175
          start       size  index  contents
              0          1         PMBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6        
             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640  235298960      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      235708600    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      236978136          7        
      236978143         32         Sec GPT table
      236978175          1         Sec GPT header
    -bash-3.2#
    Disk1
    -bash-3.2# gpt -vv -r show /dev/disk1
    gpt show: /dev/disk1: mediasize=3000592982016; sectorsize=512; blocks=5860533168
    gpt show: /dev/disk1: PMBR at sector 0
    gpt show: /dev/disk1: Pri GPT at sector 1
    gpt show: /dev/disk1: Sec GPT at sector 5860533167
           start        size  index  contents
               0           1         PMBR
               1           1         Pri GPT header
               2          32         Pri GPT table
              34           6        
              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
          409640  3801098560      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
      3801508200     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      3802777736        1912        
      3802779648   491923432      4  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
      4294703080      262144      5  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      4294965224  1565567911        
      5860533135          32         Sec GPT table
      5860533167           1         Sec GPT header
    -bash-3.2#

  • How do you remove the filename/path using the SDK

    I have a program that uses the Adobe Acrobat SDK . It creates aPDF file from a HTML file that gets created after the program cruches some data. It can create the PDF file fine but how do I get it to do it with out the file name and path in the lower left corner. We insert the created PDF file into another document and do not want to show the data on these created pages.
    Have searched through this site and can not see it mentioned.   HELP !!!

    I am not the programmer, he is out of the office today.
    What I see happen is that our program is used to create a database of the content of a multipage PDF file (an old doucment that has been scanned and OCR'd), the program then outputs the data as a HTML file (not the Adobe SDK).
    This HTML file is then converetd into a PDF file and attached to certain subsets of the original PDF file, its does a whole bunch of splitting and recombining of the document into the sections we need. It does this fine, no problems at all. All of this is done using our program and the Adobe SDK.
    The issue is that the PDF file (generally just one page) that gets created from the HTML file includes file name and file path at the lower left corner of the page. We are looking for the commands within the SDK that can turn the feature/function that creates this text on/off.
    As the Adobe Acrobat on this machine is used for many different jobs, some that require this text to be shown on other documents that are created (by using Acrobat itself and not the SDK) we really don't want to have to open Acrobat itself everytime we want to run this process.
    The SDK seems to have commands for pratically everything else, we were hoping it also has the commands within it that we can then program to not create this one area of text when converting the HTMl to PDF file from within our program..
    I hope that comes across OK
    PS
    I just ran a test creating a PDF file froma  webpage, and I can see the field Place Headers and Footers on a new page. I have tried creating the page with and without the Headers and Footers, that works fine. But can this be done just by using the SDK and if so where is that command located.
    Message was edited by: MichaelEastick

Maybe you are looking for

  • Excise Duty  at the time sales and utilization

    HI, There is requirement of the client that when making the billing - Outgoing Excise Invoice. The Entry should come this way Excise Duty Suspense Account Debit To Excise Duty Collect on Sales Credit (P&L - Income) When at the end of the month when d

  • Folio Builder Installer Damaged

    I recently launched my Folio Builder panel and signed it. I told me that I need to install an update. I followed the link and downloaded the update. When I opened the installer, I got this message: "Installer.app" is damaged and can't be opened. You

  • How can I video call with some one who doesnt have an iPhone?? I have the new iPhone 4s

    How can I video call with someone who doesnt have and iPhone???? I have the new iPhone 4s

  • Deploying  ejb in Jboss got error

    I have created the day05_signon.jar and META-INF directory and put it in default/deploy got error message day05_signon.jar status : null state fail watch day05_signon.jar am i doing anything wrong?pls advise

  • Flash CS5.5 iOS scale and arrange content on device rotation

    Hello All- I am new to developing iPad/iPhone apps, and am currently using Flash CS5.5 to create an iPad app for a client. Basically, the app is a multipage form with tons of radios, text fields, and text areas. It has a header and footer with some v