Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 22, 2013, 04:10 PM   #1
s97fever
macrumors newbie
 
Join Date: Jan 2013
How to look at files in Terminal?

I was told to delete /usr/local folder in order to fix a messed up install.

But I'm not sure how to view the files first because I don't see a way to view such in Finder.

If this can only be done via Terminal then what commands can I use to view the folders and files under another folder?

Thank you in advance for any help!
s97fever is offline   0 Reply With Quote
Old Jan 22, 2013, 04:11 PM   #2
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by s97fever View Post
I was told to delete /usr/local folder in order to fix a messed up install.

But I'm not sure how to view the files first because I don't see a way to view such in Finder.
In Finder select Go > Go to folder and type in: /usr or whatever path you want.
GGJstudios is offline   0 Reply With Quote
Old Jan 22, 2013, 04:33 PM   #3
LPZ
macrumors 65816
 
Join Date: Jul 2006
Quote:
Originally Posted by s97fever View Post
I was told to delete /usr/local folder in order to fix a messed up install.
This seems rather drastic. What were you installing?

Quote:
Originally Posted by s97fever View Post
If this can only be done via Terminal then what commands can I use to view the folders and files under another folder?

Thank you in advance for any help!
You can list the folders and files inside a folder (ie, a directory) using the ls (lowercase LS) command. For example, to see what's in /usr/local, enter

Code:
ls /usr/local/
in Terminal. I get

Code:
bin     etc     lib     man     share   texlive
The first five directories are standard.
LPZ is offline   0 Reply With Quote
Old Jan 22, 2013, 04:50 PM   #4
s97fever
Thread Starter
macrumors newbie
 
Join Date: Jan 2013
Explaining why the delete

I had a fail install on Homebrew and was trying to fix it.

The first response was to delete that folder which obviously would not attempt to do at here:
https://github.com/mxcl/homebrew/issues/14319

The guy had recommended the following a little more below and it had worked for me:
/usr/bin/curl -skSfL https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'

But until your posts above I wasn't sure where the /usr folder resided.
Even just using ls alone as a command it doesn't appear until you first do cd /.../....

That's crazy!
s97fever is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Open all files from folder via Terminal vloryan Mac Programming 11 Jan 12, 2014 05:55 PM
Hidden files in Terminal ruqui OS X 18 Feb 5, 2013 02:24 AM
Accidentally quit terminal and files are gone directeur Mac Basics and Help 1 Jan 26, 2013 11:18 PM
Terminal - move all files named... Aikiman Mac Programming 4 Nov 13, 2012 03:49 PM

Forum Jump

All times are GMT -5. The time now is 03:22 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC