My macbook's hard disk has 10 MB free space and the login is not possible.

I booted to Single User mode to delete some files but the paths were totally different than the paths I get when I just click on Terminal app from /Applications/Utilities. For instance I've got 'var' and 'root'.

All I need to do is to access the Applications folder through the command line and then to delete some apps.

Can you tell me how can I access the Applications folder?

  • thanks very much but when i try cd /Applications, i can only see safari.app and utilities. i also get a message saying it is "read only" – Decs Resat May 14 '15 at 19:39
cd /Applications
ls -latrsq (shows all files, including their sizes)
rm -rf Application.app

If the application name contains spaces, use a \ in each space. Example, Microsoft Word 2011.app would be Microsoft\ Word\ 2011.app

| improve this answer | |
  • thanks but it didnt worked. can you please read my comment to grgarside and answer again? – Decs Resat May 14 '15 at 19:45
  • 1
    Thanks, but was a downvote truly necessary? – Patrick McMahon May 14 '15 at 19:48
  • 1
    It sounds like you're on the OS X installer volume. > cd /Volumes > cd volume name of your hard disk > cd Applications > ls -latrsq (shows all files, including their sizes) > rm -rf Application.app – Patrick McMahon May 14 '15 at 19:49
  • now we are on to something :) a + from me – Ruskes May 14 '15 at 19:52
  • 2
    Spend the friggin money on a hard drive, and start backing up your stuff!!!! There are no excuses for losing a file, none. – Patrick McMahon May 14 '15 at 20:27
cd /Applications

This opens the /Applications folder at root. There's no need to use relative paths.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .