Terminal commands missing

So I went to use the Terminal today, and I found I couldn't get a directory list with the "ls" command.
I also found "su" and "IN" no longer work. I think my terminal is borked..anyone know how to reinstall or fix the terminal portion?

sigh this makes me miss DOS.
So I did some googling and figured out how to change my path supposedly, and here's what happens now...
Macintosh:~ Michael$ echo $Path
Macintosh:~ Michael$ export Path=$Path:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local /bin:/usr/X11/bin/xhost
Macintosh:~ Michael$ echo $Path
:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/bin:/usr/X 11/bin/xhost
Macintosh:~ Michael$ ls
-bash: ls: command not found
Macintosh:~ Michael$
So I think I set the path right now, but it still can't find a basic command. This is really annoying. I don't even do that much in terminal on Mac, so I can't figure out how it got messed up in the first place.
Oh, I have Terminal set to "Default login shell" in the preferences.

Similar Messages

  • [SOLVED] Looking for a terminal command or key binding to exit Openbox

    I've searched the forums and googled, but I haven't been able to find the answer.  I'm sure I've missed it somewhere...
    I start my openbox session with 'startx' from the command line. I would like a terminal command or a key-binding to be able to exit openbox and return to the command line. I just don't like using the menu with my notebooks touchpad.  I just can't seem to figure out what command is used. The menu.xml file lists the command as "Exit", but typing that in a terminal just exits the terminal.
    Any help appreciated.
    Last edited by badfrog88 (2010-09-05 19:08:43)

    gorky wrote:ctrl-alt-backspace won't do the job?
    IIRC, it's disabled by default in xorg-server 1.7 and newer.
    @ badfrog88
    Ctrl + C will kill (almost) any running app you point it to.
    Last edited by karol (2010-09-05 19:17:29)

  • #30 | can i run the Terminal Command to stop Snapshots with no problems?

    i am somewhat surprised to find out that the 75 GB of "Backups" that are taking up space on my MBP may be due to some "feature" in Mavericks or the new OS's or whatever and i have had to MOVE all my data off my laptop as a consequence of this over the last two months because i have no more space on my Hard Drive.
    is it legit and OK to follow the terminal commands in #30 without having any problems?
    i am on a mid 2009 MBP running Mavericks and i have a 2 TB Time Capsule that i am wirelessly backing up my data.
    as some kind of sadistic test in advance of running this terminal command - can i plug my laptop into the Time Capsule, unplug the laptop from the time capsule, restart and see how much space got recaptured on my HD for my data?
    i mean, well - i must be missing something but i mean i am hoping i can get this to stop so i can get my data back on my laptop. i'm walking around with an external HD of all my Mac Pro information just so i can get work done when i go to a coffee shop or something.

    for those suffering through this:
    https://discussions.apple.com/message/24878591#24878591
    In Terminal:
         sudo tmutil disablelocal
    Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.
    (use sudo tmutil enablelocal to turn back on)
    this got rid of my 75 GB backup file (!!) and now i am going to move my data back to my laptop...
    not sure if there is an apple tech article to link to regarding this issue but it would be good to post if there is one.

  • The majority of Terminal command, "not found"

    When I was trying to mess around with my Kinect camera on my iMac today, via Terminal, I noticed a peculiar thing occurring when I tried to use even the most basic of Terminal commands.
    For example, I typed in "ls" to try to list the directories and files of my current directory, but was presented with the following instead:
    "-bash: ls: command not found"
    Without the quotes obviously.
    Why is this happening? Should I be concerned?

    Is there any reason why I don't have a ".profile saved.profile" or a ".bash_profile saved.bash_profile"?
    It just displays:
    "No such file or directory".
    Ouch! By default there are no shell initialization files. I was assuming that the MySQL installation created either a .profile or a .bash_profile, or the instructions had you manually creating one of them.
    If you do not have a .profile nor a .bash_profile, then I'm not sure where the MySQL installation put them.
    But just to be on the safe side and make sure we are looking in the correct directory try:
    echo $HOME # just want to make $HOME variable is properly setup.
    /bin/ls -l $HOME/.profile $HOME/.bash_profile $HOME/.bash_login $HOME/.bashrc
    I apologize if I missed some of your explanations, I don't mean to be fussy!
    Your Terminal sessions are not working. I would be more than "fussy" if that happened to me! Then again, I live inside of terminal sessions
    xurizaemon had an earlier post where he listed some additional places that PATH could be modified.
    /bin/cat /etc/profile
    /bin/ls -R /etc/paths.d
    You might go back and re-read what xurizaemon wrote in that post.
    Another thing you could try is, using System Preferences -> Accounts, create a new account, and see if that account has the same Terminal problem (this is an experiment, not a solution). If it does, then it would seem the changes were global, so the /etc/profile, and /etc/paths.d locations are candidates. If the problem does NOT occur for a new account, then this would point to $HOME/.profile, $HOME/.bash_profile, $HOME/.bash_login.
    Message was edited by: BobHarris

  • Terminal commands to Delete Desktop Folder?

    Can anyone help me with the Terminal commands to delete the desktop folder? I'm not much with Unix. It's related to my previous post about missing drive space/deleted files. I'm planning to try deleting the folder then restoring from time machine.
    Thanks,

    the command is
    *sudo rm -rf ~/Desktop*
    (you'll have to enter your admin password to make it work). Could you explain why you want to do this? If you have a TM backup and a serious problem with your system I would recommend doing a full system restore from TM.
    Message was edited by: V.K.
    Found your other post. (I even replied to it). You should definitely do a full system restore from TM. It will reformat your drive and cure the problem with the missing space.

  • Understanding a Create Folder Terminal Command

    Good morning Apple users,
    An ex-colleague of ours created a Terminal command for our workplace that generates multiple blank folders for work documentation to be saved into per the "job number/folder number". i.e Job Number 17813 would go into the folder of the same number.
    For obvious reasons we would prefer to avoid having to manually generate such folders.
    He left the script with us but we are having trouble understanding it's use to generate new folders with the same structure. I'm hoping someone could break it down for me and help me understand how it works?
    I've attached the script as it's written for you to dissect.
    The above is the script within Text/Edit. When opening the file and attempting to do the requested "Please enter the thousands part of the SRO range: " in multiple combinations from "18000" to "18000 - 18999" and simply "18" it responds with the following message, Attached below:
    I'm sure our issue is something minor and we are just missing some tiny detail. Your assistance in getting this working is greatly appreciated!
    Thanks in advance.

    I haven't run your script, but the relevant part seems to be the error message:
    OSError: [Errno 2] No such file or directory: '/Volumes/OSX Raid/Service/Service Documentation/'
    To me, this says that the target parent directory doesn't exist, and is likely failing on the line:
    os.chdir(path)
    since you can't change to a non-existent directory. The rest of the script is irrelevant at this point.
    So you need to look at why this command might fail. The most obvious problem would be that it doesn't exist - maybe the volume isn't mounted, or the path doesn't match _exactly_. My python is rusty, but the spaces in the path may also be a problem (most shell commands barf at spaces in path names) - you might want to identify the path as a 'raw' string:
    path = r'/Volumes/OSX Raid/Service/Service Documentation/'
    (note the leading 'r')

  • Terminal command for tabs to open in same window

    anyone know the terminal command to have all links open in tabs instead of a new window - why does mac call it tabs when it does not even actually work - any help would be great - i had the command and i deleted it......driving me nuts

    Greetings,
    There is no such command; there is a command to force targeted links to open in new tabs, but it will have no effect on links that are controlled by JavaScript. Open Terminal and enter:
    defaults write com.apple.Safari TargetedClickCreateTabs -bool true
    press Enter or Return, then quit Terminal and restart Safari.

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • Error OTF end command // missing in OTF dat

    Hi
    I am converting a smartform of a PO into a PDF. when i am using the option of pint immediately in message option of PO. I am getting this error OTF end command // missing in OTF dat . when i am using option 3 which in not print immediately. i am able to convert it into pdf file and save in my local folder. please advice.

    when you click the message button while creating a PO. it will take to next page where you add your output type that is output, partner etc.. after you add and click on further data button there you will have option for dispatching here when you add slect option 4 whihc is print immediately. then i am getting the error. if i am using the other options i am able to down load into pdf but not able to see print preview. please advice

  • ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css   Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers

    ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css    Command then fails
    Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers
    Thoughts?  Using Presenter 10  Win 8.1  Intel I7  new HP with plenty of memory
                   Thanks

    I had saved one copy as an .asp but then resaved it to .xhtml 
    I'm assuming this is a static web site.  Rename (F2) all your pages with .html or .htm extension. 
    .xhtml is not a valid extension.
    Nancy O.

  • What are the terminal commands to list all plugins, extensions, etc?

    I remember a while ago reading a thread on diagnosing kernel panics and such, where someone listed a number of commands (I think there were four separate terminal commands) which produced lists of plugins, daemons, background enhancers, extensions etc which could sap resources or drive up temperature without necessarily showing up in activity monitor or anything like that.
    Anyone know what these commands are? I'm having some serious overheating problems at the moment when doing nothing but for instance watching a youtube video with no other processes running so I'd like to get these dumps and see if there's anything installed which could be causing trouble.

    Check this out : http://helpx.adobe.com/story/help/keyboard-shortcuts.html

  • How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    - Transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer any other music by using a third-party program like one of those discussed here:
    Copy music
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup. The restore will also update the iOS.
    Note that the backup that iTunes makes does not include synced media like apps and music
    Are you sure you have a 3G iPod? A 1G iPod can only go to iOS 3.1.3
    See:
    Identifying iPod models

  • Photoshop and Illustrator batch commands missing in Bridge CS6

    Photoshop and Illustrator commands missing (eg batch and Live Trace) in Bridge CS6 tools, but they are there in CS5.
    Any thoughts
    much appreciated regards
    Tim

    So I deleted/uninstalled all versions of bridge then photoshop, but Bridge would not even install with PS cs5 (maybe it never did, there was no option on install).
    In the CS4 suite there was a separate option to install or uninstall Bridge, for CS5 they changed this as combined install with PS.
    There are many options for buying separate applications or combinations (Suite) of Adobe Products but according to the Adobe Site Bridge is delivered also with the separate applications Indesign, Illustrator, Flash, Premiere Pro, After Effects and Incopy.
    Usually when having a complete Suite it is delivered with one of those applications.
    Bridge should be able to communicate with all applications from the same CS version, but uses start up scripts for that applications.
    When doing normal installation those scripts should be placed in the correct location automatically.
    Having different suite versions on your system it will not be easy to make them communicate with each other through one version of Bridge (sadly enough you can also have only one version of Bridge active at the time and different versions of Bridge use different cache folders).
    Don't have experience with scripting but maybe the dedicated Bridge scripting forum (link in previous post) can help you out for the answer of customized start up scripts or if it is possible at all.

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

Maybe you are looking for