- #Mac os command line commands how to#
- #Mac os command line commands full#
- #Mac os command line commands mac#
Command-F: Start a Spotlight search in the Finder window.Command-E: Eject the selected disk or volume.Command-D: Duplicate the selected files.To log out immediately without confirming, press Option-Shift-Command-Q. Shift-Command-Q: Log out of your macOS user account.Control-Command-Q: Immediately lock your screen.If any open documents have unsaved changes, you will be asked whether you want to save them. Control–Option–Command–Power button* or Control–Option–Command–Media Eject : Quit all apps, then shut down your Mac.
Control–Command–Media Eject : Quit all apps, then restart your Mac.
#Mac os command line commands mac#
Control–Command–Power button:* Force your Mac to restart, without prompting to save any open and unsaved documents.Control–Power button* or Control–Media Eject : Display a dialog asking whether you want to restart, sleep, or shut down.Control–Shift–Power button* or Control–Shift–Media Eject : Put your displays to sleep.Option–Command–Power button* or Option–Command–Media Eject : Put your Mac to sleep.Power button: Press to turn on your Mac or wake it from sleep. Press and hold for 1.5 seconds to put your Mac to sleep.* Continue holding to force your Mac to turn off.This helps you to avoid using them unintentionally. You might need to press and hold some of these shortcuts for slightly longer than other shortcuts. Command-Comma (,): Open preferences for the front app.Shift-Command-N: Create a new folder in the Finder.Or use Shift-Command-3 or Shift-Command-4 for screenshots. Shift-Command-5: In macOS Mojave or later, take a screenshot or make a screen recording.Command-Tab: Switch to the next most recently used app among your open apps.Space bar: Use Quick Look to preview the selected item.
#Mac os command line commands full#
#Mac os command line commands how to#
Learn how to change a conflicting keyboard shortcut.) (If you use multiple input sources to type in different languages, these shortcuts change input sources instead of showing Spotlight. To perform a Spotlight search from a Finder window, press Command–Option–Space bar. Command–Space bar: Show or hide the Spotlight search field.To close all windows of the app, press Option-Command-W. Command-O: Open the selected item, or open a dialog to select a file to open.To minimize all windows of the front app, press Option-Command-M. Command-M: Minimize the front window to the Dock.To view the front app but hide all other apps, press Option-Command-H. Command-H: Hide the windows of the front app.To find the previous occurrence, press Shift-Command-G. Command-G: Find Again: Find the next occurrence of the item previously found.Command-F: Find items in a document or open a Find window.In some apps, you can undo and redo multiple commands. You can then press Shift-Command-Z to Redo, reversing the undo command. Command-V: Paste the contents of the Clipboard into the current document or app.Command-C: Copy the selected item to the Clipboard.