

#MAC COMMAND LINE TEMP TOOL MAC#
If you mistakenly use another PID (one linked to a system service for example) things could get very dirty, very fast ? meaning that you?ll find yourself with breathless Mac on your hands. Be careful though at what PID you enter as an argument for kill because you?re newly acquired friend doesn?t really care who will get the bucket. Once again, you can easily take your old friend kill for a walk and tell it to quickly terminate any process that you might find suspicious. This way you can easily get an idea of which is the process that consumes the most resource and, in case something goes wrong with your system, who might be the culprit. Top ? This is yet another command that will allow you to view real-time statistics related to the CPU usage, resource usage, memory usage and the paging events of any process running at a certain time on your system. This will mean sudden death for Safari (or any other unlucky process that might of picked on you by deciding not to respond anymore). As an example run "ps ?ax | grep Safari" command again and this time look on the second column, right before the username, and use the number that you see there (also known as a PID ? Process ID) as an argument for the kill command like this: "kill PID". By running "ps ?ax | grep Safari" you will be shown only the lines containing the Safari keyword you have provided instead of all the output ps will normally display.Īnother match made in heaven is the one between ps and kill, two commands that used together will allow you to tame the cat inside you Mac one-handedly (if you type with only one hand of course). Ps also proves it has Superman-like powers when you will combine it with the "grep" command to find which line(s) from its output contain a specific keyword. The most known way of running ps is in the "ps ?ax" form but, as I have learned, the most appropriate way would be to add the "-axwww" arguments to be able to get all the available details at once in the same window, whatever the window?s size. Ps - Is the tool that will help you get the information that you really need about any process? status that is currently running on your Mac.


This is the command that literally gave birth to the famous "RTFM" acronym that you surely have come across at least once in your life. To use it, you will have to enter "man command_name" (where command_name is the name of the command you want to learn more about) and presto you will have everything you want to know in a Terminal screen at your disposal. Man - The most important command-line tool that everyone should be acquainted to, a utility that will allow you to easily figure out what a specific UNIX command does and the exact way you will be able to use it to do what you had in mind. In this article, I will try to list the command lines that I use the most on my Mac when meddling around with the Terminal and the ones that I consider that will help you get things done in a few steps. Making use of the CLI with the help of Terminal will allow you to do things that you will not be able to accomplish using GUI based apps and, although it seems boring at first, most of you will learn to love it and appreciate its power like many others did before them (I am one of them). This jewel I?m talking about is the thing that makes the connection between your Mac?s interface (also known as GUI) and the CLI (Command Line Interface) that will allow you to access a UNIX shell which will allow you to interact with OS X?s BSD core.

If you have never heard about CLI, you might get a little scared when it comes to playing around with the hidden OS X jewel represented by the Terminal.app.
