Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 4 of 4
  1. #1
    tench is offline Registered User
    Join Date
    Sep 2002
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    $HOME/bin -- terminal question

    hi!

    i have a shell script that i need to copy in $HOME/bin.

    Now, this is my first real encounter with the terminal. What is $HOME/bin and how do I accomplish this simple move? (the insturctions i'm following assume i know the basics...)

    Please help!

    yours,

    tench

  2. #2
    d1taylor is offline Writer, et. al.
    Join Date
    Aug 2002
    Location
    Boulder, CO
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    $HOME is your home directory. When you start up a Terminal session, that's where you begin. Type pwd to see where that is.

    Once you're in your Terminal session, type mkdir bin to create the $HOME/bin directory, then copy your script in with, perhaps, cp source destination.

    Good luck!
    Author, Learning Unix for Mac OS X (O'Reilly), among other books.
    Check out http://books.intuitive.com/

  3. #3
    BSDimwit is offline Registered User
    Join Date
    Mar 2002
    Location
    Denver
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Open a terminal.
    type "cd" you are now in your home dir.
    type "mkdir bin" you have now created a bin directory.

    now either use the finder to copy this script into your newly created bin directory or use the cp command in the terminal. If its a shell script, you will probably need to make sure that it's permissions are set to executable... like so.

    cd ~/bin
    chmod 755 myscript.sh

    voila!
    BSDimwit
    Titanium Powerbook 550
    512MB ram

  4. #4
    tench is offline Registered User
    Join Date
    Sep 2002
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    great!!!
    thanks a lot guys.

 

 

Similar Threads

  1. Replies: 4
    Last Post: January 7th, 2003, 09:48 AM
  2. Terminal FTP Question
    By Sogni in forum Unix & X11
    Replies: 5
    Last Post: December 2nd, 2002, 08:56 AM
  3. Terminal Login Question
    By Zeus in forum Mac OS X System & Mac Software
    Replies: 3
    Last Post: March 27th, 2002, 04:21 AM
  4. terminal question
    By buc99 in forum Mac OS X System & Mac Software
    Replies: 7
    Last Post: February 6th, 2002, 10:07 AM
  5. Terminal or tcsh question.
    By Balatro in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: June 5th, 2001, 01:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •