
In that command, the word Desktop is an argument that is the name of the folder that contains the contents of your OS X desktop. For example, to show a long listing of the files on your OS X desktop, type ls -l Desktop and press Return. The -l flag tells the ls command to change its default behavior. For example, you can get a “long” file listing (with additional information about every file) by typing ls -l and pressing Return. Most tools also can take a number of flags (sometimes called switches). To run this command, type ls and press Return. (The syntax for running tools that you’ve added is described later in this appendix.)įor example, if you run the ls command, by default, it lists the files in your home directory. In general, you run command-line tools that OS X provides by typing the name of the tool. Some of these features are specific to OS X, but most are common to all platforms that support shell scripting.
#Watch pirates of the caribbean stranger tides movie hd mac
Note: This appendix was originally part of Mac Technology Overview.īefore you start working in any shell environment, there are some basic features of shell scripting that you should understand. The following sections provide some basic information and tips about using the command-line interface more effectively they are not intended as an exhaustive reference for using the shell environments. The standard shell is bash if you are running OS X v10.3 or later and tcsh if you are running an earlier version of the operating system. Although you can use any shell of your choice, the examples in this book assume that you are using the standard OS X shell. In addition to running individual tools, most shells provide some means of combining multiple tools into structured programs, called shell scripts (the subject of this book).ĭifferent shells feature slightly different capabilities and scripting syntax. A shell is a special command-line tool that is designed specifically to provide text-based interactive control over other command-line tools. Each Terminal window or SSH connection provides access to the input and output of a shell process. In the modern era, in spite of the ability to transmit graphical user interfaces over the Internet, the command line remains a powerful tool for performing certain types of tasks.Īs described previously in Before You Begin, most users interact with a command-line environment using the Terminal application, though you may also use a remote connection method such as secure shell (SSH). Historically, the command line interface provided a way to manipulate a computer over simple, text-based connections.
