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. Fear not, it’s really not that difficult to use. 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. For the most part they may be scanning for some key words, but mostly they are just waiting for it to stop. Check out our full of learning courses. How to open the command line. Before you can use it, you need to be able to find it. So what we need to do is open the terminal. On OS X, open your Applications folder, then open the Utilities folder. Open the Terminal application. You may want to add this to your dock. I like to launch terminal by using Spotlight search in OS X, searching for “terminal”. Batch resizing images from the command line on a Mac If you need to quickly resize a bunch of images on a Mac, you don't need to open Photoshop. There's a simple way to do it from the command line, by using the sips command. I want to watch a folder on my Mac (Snow Leopard) and then execute a script (giving it the filename of what was just moved into a folder (as a parameter. X.sh 'filename')). Anatomy of the Console First let’s clarify a few terms. Console: This is the system as a whole. This is both the command line as well as the output from previous commands. Command Line: This is the actual line in a console where you type your command. Prompt: This is the beginning of the command line. It usually provides some contextual information like who you are, where you are and other useful info. ![]() ![]() It typically ends in a $. After the prompt is where you will be typing commands. Outlook for mac cannot connect to office 365. Terminal: This is the actual interface to the console. The program we use to interact with the console is actually a “terminal emulator”, providing us the experience of typing into an old school terminal from the convenience of our modern graphical operating system. Running a Command. Nearly all commands follow a common pattern with 3 main parts. The program, the options, and the arguments. Let’s see an example. $ ls -l ~ Type the code above. Do not type the leading $. This is a common convention used is denote what follows is a command to be run. Once you have typed it out, hit enter to run it, and see what happens. The program is the verb.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |