![]() ![]() Start typing any part of a previous command, and it will appear as you type. This lets you search through your command history. Search command history: Press Control + R to enter reverse-i-search mode.Open a file or folder: Use the open command followed by a file or folder path to open it in Finder.This saves time when working with long or complex file paths. Drag and drop files or folders: Drag a file or folder from Finder directly into the Terminal window to automatically insert its file path at the cursor position.This is helpful when you forget to add sudo to a command that requires it. Run the last command as sudo: Type sudo !! and press Enter to run the previous command with sudo (administrative) privileges.Delete the entire line: Press Control + U to delete the entire line.Jump to the beginning or end of a line: Press Control + A to move the cursor to the beginning of the line, or Control + E to move it to the end.Scroll through command history: Use the Up and Down arrow keys to scroll through your command history to quickly reuse previously entered commands.Autocomplete file paths and commands: Press the Tab key while typing a file path or command to autocomplete it based on the files and directories in the current folder, or the available commands in your system.Clear the screen: Press Command + K to clear the terminal screen, removing all previous commands and output.While this is just touching the surface of what Terminal can do, here are a few shortcuts and tips to improve your productivity and efficiency when working with the Terminal app. The possibilities with the command line are endless, and it will take some getting used to. Opening the Terminal app is just the first step.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |