![]() ![]() ![]() To delete the test files, use the rm command. To rename files without moving them, just remove the second directory from the command. So, in our example above, instead of TestFile-copy.rtf, you’d give the moved file a different name. You can also use the mv command to rename files. The ‘~’ is shorthand for your Home directory, so ‘~/Documents’ is the Documents folder in your Home folder. And then type mv ~/Documents/Test/TestFile-copy.rtf ~/Documents/Test2/TestFile-copy.rtf to move the file TestFile-copy.rtf to the Test2 directory. Now type mkdir Test2 to ‘make’ a new directory called Test2. That will place you in the Documents folder in your Home Directory. Type cd then drag your Documents folder on to the Terminal window and press Return. A command has three elements to it the command itself, which calls a specific tool, an option which modifies the command’s output, and an argument, which calls the resource on which the command will operate. Using Terminal is straightforward: you type a command on the command-line and press Return to execute it. We’re getting ahead of ourselves, however. Commands in Unix are shell-specific, so it’s important, say when you’re following tips written for a different flavour of Unix, that you use the right shell for the commands, or vice versa. TERMINAL FOR MACS INSTALLYou can run other shells with Terminal, but you’ll have to install those yourself. The ‘cursor’ is indicated by a shaded box. If you look at the command-line inside the window, you’ll see that each line starts with the name of the Mac and is followed by the name of the current user. The title bar of a Terminal window displays the name of the current user, the type of shell, and the size of the window in pixels. There are various types of shell Apple uses one called Bash. You launch it like any other and when you do, you’ll see Apple’s implementation of a Unix command-line environment, known as a shell. The first thing to understand about Terminal is that it’s just an application and it lives in the Utilities folder in Applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |