VWVortex


+ Reply to Thread
Results 1 to 9 of 9

Thread: Mac Terminal help

  1. Member KeiCar's Avatar
    Join Date
    Jul 22nd, 2002
    Location
    Philly (past & present) -- Bangkok, HK, Singapore (future).
    Posts
    9,151
    Vehicles
    2000 Honda CRV SE / 2012 Samsung Galaxy S3
    05-01-2012 10:22 PM #1
    How do I open the terminal by default in / not bin/bash.


    I need to access a folder which live in root (ADB) and I can't get the commands to run when terminal opens in the user directory.
    Few people understand the psychology of dealing with a highway traffic cop. A normal speeder will panic and immediately pull over to the side. This is wrong. It arouses contempt in the cop heart. Make the bastard chase you. He will follow.

  2. Member jerk's Avatar
    Join Date
    Aug 28th, 2000
    Location
    Idaho
    Posts
    14,847
    05-01-2012 11:13 PM #2
    sudo cd /<folder name>

    ?

    Your post has me puzzled because when you open terminal, it puts you in /Users/<username>, not /bin/bash. /bin/bash is the shell you're using.

    Sounds like you're trying to do some Android rooting; this looks like it could end very badly (based on my perception of your experience with terminal commands and root access.) Good luck!

  3. Member XClayX's Avatar
    Join Date
    Apr 30th, 2005
    Location
    Minnesota
    Posts
    3,946
    Vehicles
    2001 W.E Jetta
    05-01-2012 11:26 PM #3
    I believe you have to update the .profile or .bashrc file to set your default path. The files are located in your /Users/username as hidden files. If you don't have them you can create them.

  4. Member jerk's Avatar
    Join Date
    Aug 28th, 2000
    Location
    Idaho
    Posts
    14,847
    05-02-2012 12:06 AM #4
    Ah, I see what he's saying, he doesn't know how to run commands that aren't in his path.

    cd <directory with commands>
    ./<command>

    I doubt he'll be using them enough to warrant editing his .bashrc file.

  5. Member XClayX's Avatar
    Join Date
    Apr 30th, 2005
    Location
    Minnesota
    Posts
    3,946
    Vehicles
    2001 W.E Jetta
    05-02-2012 08:30 AM #5
    Yeah I was wondering why you'd want to change your default path...

    ^like he said

    Or in envoke it from a distance ./path/path/ect/file from a home directory. This generally works if program doesn't need to be launched from a specific directory.

    As far as sudo, if your new to this its easy to blow away directories, files and permissions.

    Are you pretty confortable working in unix OP?

  6. Member KeiCar's Avatar
    Join Date
    Jul 22nd, 2002
    Location
    Philly (past & present) -- Bangkok, HK, Singapore (future).
    Posts
    9,151
    Vehicles
    2000 Honda CRV SE / 2012 Samsung Galaxy S3
    05-02-2012 09:11 AM #6
    ok, I'll show you what it looks like:


    I managed to get it working though. And no worries with rooting, I've been doing it for a long time and I always do a nandroid backup incase I bonk the phone.

    I downloaded a script that installs ADB (and in the process fixed my install) and now it works. And your right about messing around with sudo, I have no idea what Im doing (well maybe 1%) but I am usually pretty good at following directions...
    Last edited by KeiCar; 05-02-2012 at 09:14 AM.
    Few people understand the psychology of dealing with a highway traffic cop. A normal speeder will panic and immediately pull over to the side. This is wrong. It arouses contempt in the cop heart. Make the bastard chase you. He will follow.

  7. 05-02-2012 12:25 PM #7
    you can also avoid terminal altogether..
    from your desktop
    click on the go menu
    and then choose 'go to folder'
    and then type in /etc or /var or what ever path you need
    and your good to go
    and the folder will pop up ... [ in locked mode - so you can browse.. if you need to make changes, then type in your password as needed. ]
    simple.
    2011 Benz GLK350 4MATIC - 20s - Xenons, Premium Package - Calicite White
    2011 Benz ML350 BLUETEC 4Matic - 20s - Avante Garde Package, Running Boards, tow pkg - Palladium Silver
    2008 Jeep Patriot - Silver

  8. Member KeiCar's Avatar
    Join Date
    Jul 22nd, 2002
    Location
    Philly (past & present) -- Bangkok, HK, Singapore (future).
    Posts
    9,151
    Vehicles
    2000 Honda CRV SE / 2012 Samsung Galaxy S3
    05-02-2012 03:13 PM #8
    I don't think you understand, ADB is a terminal command and needs to be run using the terminal.
    Few people understand the psychology of dealing with a highway traffic cop. A normal speeder will panic and immediately pull over to the side. This is wrong. It arouses contempt in the cop heart. Make the bastard chase you. He will follow.

  9. Member XClayX's Avatar
    Join Date
    Apr 30th, 2005
    Location
    Minnesota
    Posts
    3,946
    Vehicles
    2001 W.E Jetta
    05-03-2012 07:44 AM #9
    OP how often do you need to run the command? Maybe you could schedule it using crontab? (crontab -e)

    Or when I get home I can look up the program I use to launch on startup in the backround without a terminal session firing up. I want to say its platapus, but I'd have to double check.

    What does the command do?

    "I don't think you understand, ADB is a terminal command and needs to be run using the terminal. "

    Also I'm pretty sure you can make a desktop icon using platapus so your scripts run with just a click without firing up a terminal session. I'd have to double check on that too.

    Last script I wrote took screenprints every 10secs and saved to disk. (My roomate was using my laptop )
    Last edited by XClayX; 05-03-2012 at 07:53 AM.

+ Reply to Thread

Posting Permissions

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