Mac os x finder command line

To open your current directory in Finder from Terminal, type open. So, if you want Documents: open Documents. Library: open /Library.
Table of contents

Command—Control—Up Arrow : Open the folder that contains the current folder in a new window. Command—Down Arrow : Open the selected item. Right Arrow : Open the selected folder. This works only when in list view.

MAC OS X Finder unix commands

Left Arrow : Close the selected folder. Command-Delete : Move the selected item to the Trash.

Mac keyboard shortcuts

Shift-Command-Delete : Empty the Trash. Command—Brightness Up : Turn target display mode on or off. Option—Brightness Up : Open Displays preferences. This works with either Brightness key. Control—Brightness Up or Control—Brightness Down : Change the brightness of your external display, if supported by your display. Add the Control key to this shortcut to make the adjustment on your external display, if supported by your display. Command—Mission Control : Show the desktop. Control—Down Arrow : Show all windows of the front app.

Mac OSX Terminal (command-line tips and tricks) – Index

Option—Volume Up : Open Sound preferences. This works with any of the volume keys. This works with either Keyboard Brightness key. Command key while dragging to another volume : Move the dragged item to the other volume, instead of copying it. Option key while dragging : Copy the dragged item. The pointer changes while you drag the item. Option-Command while dragging : Make an alias of the dragged item. Option-click a disclosure triangle : Open all folders within the selected folder. Command-click a window title : See the folders that contain the current folder.

Learn how to use Command or Shift to select multiple items in the Finder. Click the Go menu in the Finder menu bar to see shortcuts for opening many commonly used folders, such as Applications, Documents, Downloads, Utilities, and iCloud Drive. Document shortcuts The behavior of these shortcuts may vary with the app you're using. Command-B : Boldface the selected text, or turn boldfacing on or off.

Command-I : Italicize the selected text, or turn italics on or off. Command-K : Add a web link. Command-U : Underline the selected text, or turn underlining on or off. Command-T : Show or hide the Fonts window. Control-Command-D : Show or hide the definition of the selected word. Command-Semicolon ; : Find misspelled words in the document. Option-Delete : Delete the word to the left of the insertion point. Control-H : Delete the character to the left of the insertion point.

Open Folder in Terminal

Or use Delete. Control-D : Delete the character to the right of the insertion point.

Using the built-in SSH client in Mac OS X

Or use Fn-Delete. Or use Control-D. Control-K : Delete the text between the insertion point and the end of the line or paragraph. Fn—Left Arrow: Home: Scroll to the beginning of a document. Fn—Right Arrow : End: Scroll to the end of a document. Command—Up Arrow : Move the insertion point to the beginning of the document.

Command—Down Arrow : Move the insertion point to the end of the document. Command—Left Arrow : Move the insertion point to the beginning of the current line. Command—Right Arrow : Move the insertion point to the end of the current line. Option—Left Arrow : Move the insertion point to the beginning of the previous word. Option—Right Arrow : Move the insertion point to the end of the next word. Shift—Command—Up Arrow : Select the text between the insertion point and the beginning of the document.

Shift—Command—Down Arrow : Select the text between the insertion point and the end of the document. Shift—Command—Left Arrow : Select the text between the insertion point and the beginning of the current line. Shift—Command—Right Arrow : Select the text between the insertion point and the end of the current line. Shift—Up Arrow : Extend text selection to the nearest character at the same horizontal location on the line above.

Shift—Down Arrow : Extend text selection to the nearest character at the same horizontal location on the line below. Shift—Left Arrow : Extend text selection one character to the left. Shift—Right Arrow : Extend text selection one character to the right. Option—Shift—Up Arrow : Extend text selection to the beginning of the current paragraph, then to the beginning of the following paragraph if pressed again.

Option—Shift—Down Arrow : Extend text selection to the end of the current paragraph, then to the end of the following paragraph if pressed again. Option—Shift—Left Arrow : Extend text selection to the beginning of the current word, then to the beginning of the following word if pressed again. Option—Shift—Right Arrow : Extend text selection to the end of the current word, then to the end of the following word if pressed again. Control-A : Move to the beginning of the line or paragraph.

Control-E : Move to the end of a line or paragraph. Control-F : Move one character forward. Control-B : Move one character backward. Control-L : Center the cursor or selection in the visible area. Control-P : Move up one line. Control-N : Move down one line. To run a command, you just type it at the cursor and hit Return to execute.

Every command is made up of three elements: the command itself, an argument which tells the command what resource it should operate on, and an option that modifies the output. You should now see a list of all the files in your Documents folder — ls is the command for listing files. To see a list of all the commands available in Terminal, hold down the Escape key and then press y when you see a question asking if you want to see all the possibilities. To see more commands, press Return.

Unix has its own built-in manual. So, to learn more about a command type man [name of command] , where "command" is the name of the command you want find out more about. Firstly, every character matters, including spaces. If you want to re-run a command, tap the up arrow key until you reach it, then press Return.


  1. cambiar idioma de lol mac?
  2. How to Quickly Restart or Relaunch Finder in macOS?
  3. Basic Mac commands in Terminal.

Commands are always executed in the current location. Use the cd command, followed by a directory path, like in Step 1 above, to specify the folder where you want a command to run. There is another way to specify a location: go to the Finder, navigate to the file or folder you want and drag it onto the Terminal window, with the cursor at the point where you would have typed the path.

Now save it to the TerminalTest folder in your Documents folder. Now type ls and you should see "TerminalTestFile" listed. That will change the name of the file to "TerminalTestFile2". You can, of course, use any name you like. The mv command means "move" and you can also use it to move files from one directory to another. Terminal can be used for all sorts of different tasks. Some of them can be performed in the Finder, but are quicker in Terminal. Here are a few examples. In a Terminal window, type d itto [folder 1] [folder 1] where "folder 1" is the folder that hosts the files and "folder 2" is the folder you want to move them to.

To see the files being copied in the Terminal window, type -v after the command. The command used to delete, or remove, files in Terminal is rm.

How to Get to the Command Line on a Mac

So, for example, if you wanted to remove a file in your Documents folder named "oldfile. As it stands, that will delete the file without further intervention from you. If you want to confirm the file to be deleted, use -i as in rm -i oldfile.