How do i get my commands in terminal

I am trying to get certain commands in terminal but it will not let me download them
I tried installing wget but it will not install in the usr/local/bin.
I dont think I have that folder or that file
What am i doing wrong on my mac?

You don't need to sudo su, just sudo /dev/tty
According to the man page,
The most common reason for stat(2) to return "permission denied" is if you are running
       an automounter and one of the directories in your PATH is on a machine that is currently unreachable.

Similar Messages

  • How do I undo these commands from terminal?

    I was trying to copy music from my iPod to my mac, so I copy & pasted these two commands into terminal:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall finder
    Now there's an icon on my desktop that i can't delete that says ".DS_Store and I can't open it with any of my applications.
    Please help!
    Thanks

    Not sure, try this:
    defaults write com.apple.finder AppleShowAllFile FALSE
    then
    killall Finder

  • How to stop get-eventlog command if it finds a hit in the date range... w/o scanning the whole thing first :-/

    Hi All, 
    I have a nice little PowerShell function that is scrubbing the eventlog for a 'positive' hit under a certain error code for each user in a defined window. 
    basically we are looking to see if they are still logging into OCS...
    Since it takes what seems like an eternity to scan the whole security log per the 'get-eventlog' statement and then evaluate it it is $true or not... i would like it to break out as soon as it finds one hit without going all the way back x days unless it
    has to.
    have been trying to use this for testing... with no avail
    if (Get-EventLog -LogName Security -ComputerName myOCSserver -after $date -InstanceId 540 -UserName "domain\myuser") {
    Write-Host -ForegroundColor Green "UserName found!... Check Passed"
    }Else {
    Write-Host -ForegroundColor Cyan "UserName not found... delete this account"
    if i run the command it will start writing each hit to the screen... i just need it to stop scanning if it finds one but not sure how to break out and now do an action since it is $true... (or $false) :)
    Thanks in advance!!!

    I'm not sure i'm understanding this correctly but i'm assuming you only care if one shows up in there at all. If so this might speed things up depending on where in the log the first entry is.
    Get-EventLog -LogName
    Security -ComputerName myOCSserver
    -after $date -InstanceId
    540 -UserName "domain\myuser" | select -first 1

  • How do I get elevated privileges in terminal

    I am trying to use terminal for serial access in trying to run the command /dev/tty I get permission denied
    so I then run sudo su and authenticate and still get then same thing. I am not sure what to do.
    2.6 GHz Intel Core i7
    OSX 10.10.3

    You don't need to sudo su, just sudo /dev/tty
    According to the man page,
    The most common reason for stat(2) to return "permission denied" is if you are running
           an automounter and one of the directories in your PATH is on a machine that is currently unreachable.

  • How do I get a decent remote terminal session?

    If I telnet in as a user and then use "su" I end up with a weak shell environment - no tab completion and a practically empty PATH setting. How do I set it up so that when I use "su" I have tab completion and a useful PATH setting?
    Thanks!

    You are coming in using the default shell. I prefer bash and set my passwd file to such.
    If you have set your root environment the way you like it you can do a su - root and that will send you in just like you were logging in as root at the terminal.
    oh my fingers... so tired after all that typing.
    should have just written
    "man su".....

  • Make, Make install - Command not found. How do I get these commands working

    Hi guys!
    I am trying to compile the php using the command ./configure and make, make install but every time I try to use the comand "make" it says "command not found". Do you know how can I install these bibliotec?
    Thanks in advance.
    Felipe Moreira.

    Hi Felipe, Welcome to Apple's Users Help Users Forums.
    Glad you got it solved.
    Thanks in Apple Forums is through the Stars system. See the blue box at the top of the thread as well as the Apple emails re new posts to the thread.
    With the buttons just to the left of "Reply" for the OP = Original Poster.
    1 Green Solved available. 10 pts.
    2 Gold Helpful available. 5 pts.
    Mark the buttons at the appropriate post. (Not this one. ;~) )
    Joyous Computing, JP

  • How do I get frame commands when I right-click?

    For some reason I thought there used to be a way to right-click a frame on a website, and from the menu that opens you could choose to view only the frame you right-clicked over, even possibly print only that frame or open it in a new window.
    I've looked around for extensions but they don't seem to work, I've googled answers but they're too technical (I'm not comfortable rewriting css commands or whatever), and I haven't found any answers in Mozilla Support about this.

    Does the iframe on the right side of this demo page load (it shows the w3 schools logo) and if you right-click it, does This Frame appear on the menu?
    http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe

  • [SOLVED] how do you get ASCII in a terminal?

    http://www.youtube.com/watch?v=iJpSQonl … annel_page
    Time index: 1:34
    That guy has a moose above his hostname. I thought the only way to add anything was manipulating PS1, but that moose is above his hostname?
    Anyone know how to add something similar like that, maybe archs logo?
    Last edited by greenfish (2009-05-17 16:16:09)

    Ok, figured it out. Each of the "[..." actually needs to be prefixed with an (non-printable) ESCAPE character, ASCII code #27.
    Since they're non-printable they cannot be displayed in this forum. :-p
    I just wrote a little tool that writes a code-27 char in front of every "[" and that works.
    //File 'issue-make.c'
    //Create a usable 'issue' file (place it at /etc/issue) from various weirdly formatted text files.
    //It accepts [... or [[... or ^[... escape sequences.
    //By Jindur for bbs.archlinux.org. (Use/modify/hack/distribute/as you wish, just don't sell it.. as if lol).
    //Maybe you don't want single [ to be recognized as ESC sequence. Delete the code lines then i guess.
    #include <stdio.h>
    int main(int argc, char *argv[])
    char buf[256], buf2[256];
    int n, n2;
    FILE *f, *f2;
    int just_converted = 0;
    if (argc < 2)
    printf("This tool converts escape sequences ^[.. [[.. and [.. into real escape sequences.\n");
    printf("Enter filename of an ascii art file you wish to convert into a usable 'issue' file.\n");
    printf("This will overwrite an existing 'issue' file in the current directory.\n");
    printf("Example: issue-make my-cool-art.txt\n");
    return 1;
    f = fopen(argv[1], "r");
    if (!f)
    printf("Error: Could not open input file for reading.\n");
    return 2;
    f2 = fopen("issue", "w");
    if (!f2)
    printf("Error: Could not open 'issue' file for writing.\n");
    return 3;
    while (fgets(buf, 256, f))
    n = -1;
    n2 = -1;
    do {
    n++;
    n2++;
    //case 1: sequence ^[...
    if (buf[n] == '^' && buf[n + 1] == '[')
    n++;
    buf2[n2] = 27;
    just_converted = -1;
    //case 2/3: sequence [ or [[
    else if (buf[n] == '[' && !just_converted)
    if (buf[n + 1] == '[')
    buf2[n2] = 27;
    just_converted = -1;
    else
    buf2[n2] = 27;
    n2++;
    buf2[n2] = '[';
    just_converted = -1;
    else
    buf2[n2] = buf[n];
    just_converted = 0;
    } while (buf[n]);
    fprintf(f2, "%s", buf2);
    fclose (f2);
    fclose (f);
    return 0;
    Use 'gcc' to compile.
    Last edited by Jindur (2013-06-10 17:01:44)

  • How to get the command line interface for WRT160NL router

    hi,
    How can I get the command line interface for WRT160NL router. please suggest.

    If you’re trying to access the web-based interface of your router, just use its default IP address (192.168.1.1). The Username is left blank and the Password is "admin". Here’s a quick link on how to do that.

  • Get cursor command

    can anyone give me example on how to use get cursor command?

    Hi,
    Hide & Get Cursor is used in interactive programming ( in the event AT LINE-selection).
    Using Hide in Loop..Endloop, you can get the field name At Line-Select
    Event While Double Clicking That Line.
    ***PROG.BEGIN**************************************************************
    *& Report  ZPREM_INTERACTIVE                                           *
    REPORT  zprem_interactive                       .
    TYPES : BEGIN OF ty_test,
            code TYPE i,
            name(10) TYPE c,
            amount TYPE p DECIMALS 2,
           END OF ty_test.
    DATA : it_test TYPE STANDARD TABLE OF ty_test WITH HEADER LINE INITIAL SIZE 10.
    DATA : wa TYPE ty_test,
           chk1 TYPE c,
           fldname(30), fldval(50).
    *set pf-status 'PF01'.
    *set titlebar 'PF01'.
    INITIALIZATION.
      it_test-code = 300.
      it_test-name = 'Ramesh'.
      it_test-amount = 5500.
      APPEND it_test.
      wa-code = 207.
      wa-name = 'Prem'.
      wa-amount = 5000.
      APPEND wa TO it_test.
      it_test-code = 117.
      it_test-name = 'James Bond'.
      it_test-amount = 9900.
      INSERT it_test INDEX 3.
      it_test-code = 217.
      it_test-name = 'Sivaraman'.
      it_test-amount = 9900.
      INSERT it_test INDEX 3.
      it_test-code = 201.
      it_test-name = 'Saravanan'.
      it_test-amount = 1000.
      APPEND it_test.
      it_test-code = 210.
      it_test-name = 'Shanmugam'.
      it_test-amount = 6000.
      APPEND it_test.
      WRITE : / 'Loop Display ( Appended rows ) :-'.
      LOOP AT it_test.
        WRITE : / chk1 AS CHECKBOX,
        sy-tabix, sy-vline, it_test-code, it_test-name, it_test-amount.
        HIDE : it_test-code, it_test-name.
      ENDLOOP.
      SKIP.
    END-OF-SELECTION.
      CLEAR : it_test-code, it_test-name.
      WRITE : / 'this from end of selection'.
    *&      Form  DISP1
          text
    FORM disp1.
      WINDOW STARTING AT 15 10
             ENDING AT 80 15.
      DO.
        CLEAR chk1.
        READ LINE sy-index FIELD VALUE chk1.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          CHECK chk1 NE space.
          WRITE : / it_test-code, it_test-name.
          MODIFY CURRENT LINE :
            FIELD VALUE chk1 FROM ' '
            FIELD FORMAT chk1 INPUT OFF.
        ENDIF.
      ENDDO.
    ENDFORM.                                                    "DISP1
    ***line double click ****
    AT LINE-SELECTION.
      CHECK sy-lsind = 1.
      WINDOW STARTING AT 5 4
             ENDING AT 85 20.
      WRITE: /  'THE USER DOUBLE-CLICKED A LINE IN THE REPORT'.
      WRITE: /  sy-lisel.
      WRITE : / 'Sometime ',it_test-name, ' is good '.
      WRITE : / 'Sometime ',it_test-name, ' is bad  '.
      WRITE : / 'Sometime ',it_test-name, ' is rich '.
      WRITE : / 'Sometime ',it_test-name, ' is poor '.
      WRITE : / 'Who knows, who is ',it_test-name, ' ? '.
      WRITE : /, / 'we can also use this in SELECT statement'.
      CLEAR : it_test-code, it_test-name.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      ULINE.
      SKIP.
      SKIP.
      WRITE : / 'Below from Get Cursor Field...'.
      GET CURSOR FIELD fldname VALUE fldval.
      CONDENSE fldname.
      CONDENSE fldval.
      WRITE : / 'You have clicked ', fldname, ' & its value is ', fldval.
    ***function key press F6 ****
    AT PF06.
      PERFORM disp1.
    regards,
    keerthi

  • How to get default command to open a terminal window? (Bash or Python)

    Desktop entry files (.desktop files) may indicate that an application requires a terminal window to run ("Terminal=true"), e.g. vim & maxima.
    How does a .desktop launcher determine which terminal to use? E.g. when opening a file associated with vim, what points it to 'urxvtc -e %s' or 'gnome-terminal...' or whatever?
    Is there a standard environment variable with the terminal command? $TERM only contains an identifying name but I don't see how to programmatically deduce the command from it. Grepping through the output of "set" doesn't show me anything useful either.
    My search-fu has failed me. Does anyone have any ideas?
    EDIT: Clarified subject and post.
    Last edited by Xyne (2011-02-02 14:00:14)

    Maybe my search-fu can be of help here:
    For KDE:
    terminal=$(kreadconfig --file kdeglobals --group General \
    --key TerminalApplication --default konsole)
    For GNOME:
    TERM_EXEC_KEY="/desktop/gnome/applications/terminal/exec"
    TERM_EXEC_ARG_KEY="/desktop/gnome/applications/termina/exec_arg"
    TERM_EXEC=$( gconftool-2 --get ${TERM_EXEC_KEY}) # e.g.
    "gnome-terminal"
    TERM_EXEC_ARG=$( gconftool-2 --get ${TERM_EXEC_ARG_KEY} ) # e.g. "-x"
    terminal="$TERM_EXEC $TERM_EXEC_ARG"
    For XFCE:
    Xfce has a directory called "share/xfce4/helpers/" which contains desktop entry files for commonly used terminals, browsers and email apps. These entries contain extra keys like X-XFCE-Category=WebBrowser or X-XFCE-Category=TerminalEmulator .
    Then there is a file called ".config/xfce4/helpers.rc" which in my case looks like:
    WebBrowser=firefox
    MailReader=thunderbird
    From: http://www.mail-archive.com/[email protected] … 01661.html
    edit: there is also xdg-settings (in xdg-utils) which can store default-app information, but i'm not sure if all DE's make use of this..
    Last edited by litemotiv (2011-02-02 14:08:27)

  • How do I get to a command line before X starts? I screwed up.

    I installed some drivers improperly, and now as I start up my system, it goes to X, which dies. How do I get to an Ubuntu like "recovery mode"? Where I can use a terminal to uninstall the package?

    You can try booting into single user mode and taking it from there. Also, if you're using the /etc/inittab method for starting X, you can try appending "3" to the kernel line (instead of "S", "Single" or "1"), and booting into runlevel 3 instead, which should leave you with a command line login prompt.

  • How to delete a command in Terminal?

    Months ago I tried to sync ical via Dropbox, which required entering a command in Terminal.  Now I'd like to reverse the action.  How do I go about deleting or countermanding this command?  Thanks.

    Based on the symlink you created long ago, your calendar directory is currently stored in Dropbox.  If you want to keep your calendar data you will need to move it back to ~/Library/Calendars.
    To be on the safe side use the ls command to see which is the symlink and which is the real directory:
    ls -ld ~/Library/Calendars ~/Dropbox/Calendars
    The one that starts with L and contains 2 file paths as in
    lrwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Library/Calendars -> /Users/username/Dropbox/Calendars
    is the symbolic link
    The one that starts with D is the real calendars directory, for example:
    drwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Dropbox/Calendars
    NOTE:  I strongly suggest you have a current backup before you use the 'rm' command below.  One mistake with 'rm' (remove, aka delete) and you can loose data that you are not going to get back.
    To remove the symlink, and put your calendar data back where iCal expects to find it, use the following commands:
    rm ~/Library/Calendars
    mv ~/Dropbox/Calendars ~/Library/
    The rm command is removing the symlink you created.
    The mv command is moving your calendars information to ~/Library where iCal expects to find it.

  • How do I get rid of Terminal,It is preventing access to pictures

    I have an iMac 27in  3.2 ghz 16GB memory running Yosemite 10-10-2.When I try to open "pictures" I get a small window headed "Terminal"and this prevents "pictures" opening,this only occurs on pictures .How do I get rid of Terminal ?

    Back up all data before continuing.
    Please triple-click anywhere in the line below on this page to select it:
    xattr -c Pi*
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Test.

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

Maybe you are looking for