


This is both the command line as well as the output from previous commands.Ĭommand Line: This is the actual line in a console where you type your command. I like to launch terminal by using Spotlight search in OS X, searching for “terminal”.Ĭonsole: This is the system as a whole. On OS X, open your Applications folder, then open the Utilities folder. So what we need to do is open the terminal.
#Mac command line how to#
How to use Terminal to open the command lineīefore you can use it, you need to be able to find it.

#Mac command line full#
For the most part they may be scanning for some key words, but mostly they are just waiting for it to stop.Ĭheck out our full library of learning courses. In fact, when you see an experienced user looking at a terminal that is scrolling line after line of text faster than you can even read it, they aren’t really reading it either. When you read some instructions that tell you to open up a terminal window and type some cryptic words and phrases, it can seem like you’ve been sucked into the matrix, expected to decrypt an endless stream of indecipherable characters.įear not, it’s really not that difficult to use. The command line can be a scary place when you first encounter it. Because of OSX’s unix heritage, much of the info here is also useful in other unix inspired systems, like the Linux command line. Apple apparently fixed the issue in Safari 5.0.1, and when I upgraded to Safari 5.0.2 yesterday, it fixed the crash for Comic Life Magiq users.This is a command line tutorial primarily conducted in in the OS X command line. Which reminded me that Safari 5.0 was crashing for network users, and we worked around it by either managing a preference to not cache favicons or by redirecting a file. The last file opened by network users was something like this (with a full path): /Network/Servers/./username/Library/Icons/WebpageIcons.db I ran (several times, on different accounts, via ssh): sudo opensnoop -e -n Comic > output.txt I found out about opensnoop when struggling to diagnose why a Comic Life Magiq 1.1 was crashing on OS 10.5.8 for users with network accounts. Run apropos DTrace for a list, and look at man pages for details. Opensnoop is a dtrace script there are many others in /usr/bin that look at things like which system calls a process is making, what processes it is creating and what I/O it is doing. You can ask it to look at all files being opened across the system, by a specific process, or if any process is opening a given file, with different sorts of timestamps, and to show if errors occur. In Leopard and newer, reports which processes open files, whether successfully or not.
#Mac command line serial#
Will give you the machine's serial number. Will get you basic hardware info (useful for asset tracking), and system_profiler SPHardwareDataType | grep Serial Will tell you how many USB devices are plugged in (including internal USB devices), which is useful to see if the computer sees a device (or, if, say, Parallel's grabbed it or it is dead.) system_profiler SPHardwareDataType system_profiler SPUSBDataType | grep "Product ID" -c

Tells you about all your USB devices (including their Vendor and Product IDs, which can aid in tracking down drivers). This will dump the system profile to a file which can be looked at later on a different machine. Open MySystem.spx # or just double click on it in the Finder Or looking at the man page will give you tips on how to use it.Ī couple of examples: system_profiler -xml > MySystem.spx
#Mac command line mac#
Give you the same results as you get when you choose About This Mac -> More Info, only on the command line.
