

You could go back up a level with two dots like that so I don't have to retype the whole path of the Documents folder. Now you could also use the Find command to find files. If instead of seeing a list like this with all the data I could just, instead of dash l do dash s. So m for megs, b for bytes, these's k and g as well. So instead I'm going to use ls-l and also add the parameter h. Now it can be hard to read these long numbers here. That's the number of bytes for this file. Anything that's a regular file is a dash there. Now I can do ls and see there's a bunch of files there. Like, for instance, let's go into the Projects Folder. Now the file sizes don't make sense for folders. I'll get to see things like a d here next to anything that is a directory or folder.

If I want a better list I can do ls and then dash l to list everything this way. Now I can type Return just as if I typed out all those characters.
#How to find files in terminal full
So all I need to do here is type cd space and instead of typing the full path if I just drag and drop the folder into the Terminal window anywhere then it will insert the full path. So, for instance, here I've got a Finder window and there's my Documents folder which is where I want to go. But you could also type cd and the full path to any place and you could use the Finder as a way to get a quick shortcut to that. I could then go down into the Documents folder by typing cd and then Documents to go down into it. If I were to list the files here, ls for list, then I would see all of the folders in my Home folder. It's better to start off at a place like your Home folder or maybe your Documents folder. So starting at the top level isn't very good because you're going to get System files, Library files, Application files, things like that. You want to start off at a good location for finding files. In this case I'm in the Users Folder/MacMost. Now when you're working in Terminal you are always at a certain location. So when you launch the Terminal you get a window that looks like this. It can be faster to do both of those things using the Terminal. So while you can use the Finder to find large files it's a little more difficult to find large folders. Join us and get exclusive content and course discounts. There you can read more about the Patreon Campaign. MacMost is brought to you thanks to a great group of more than 1000 supporters.
#How to find files in terminal how to
Let me show you how to use the Terminal to find the largest files and folders on your drive. Video Transcript: Hi, this is Gary with. Check out Using Terminal to Find Large Files and Folders at YouTube for closed captioning and more options.
