![]() ![]() Home is equivalent to Ctrl +A and End is equivalent to Ctrl + E. Note: If you have the Home and End keys on your keyboard, you can also use them. Ctrl+A sends the cursor to the beginning of the line whereas Ctrl+E moves the cursor to the end of the line. This shortcut is sort of opposite to Ctrl+A. Do note that you cannot use the mouse to move the cursor to the beginning of the line. Suppose you typed a long command or path in the terminal and you want to go to the beginning of it, using the arrow key to move the cursor will take plenty of time. This shortcut will move the cursor to the beginning of the line. Instead of writing C-L-E-A-R, you can simply use Ctrl+L to clear the terminal. How do you clear your terminal screen? I guess using the clear command. If you are using a terminal directly, the application will be closed immediately.Ĭonsider it equivalent to the ‘exit’ command. If you are using an SSH connection, it will be closed. This keyboard shortcut will log you out of the current terminal. You can see the stopped program in background jobs and even resume to run it using the fg command. This shortcut will suspend a running program and gives you control of the shell. If you want to stop using a program running in the foreground, just press this key combination. ![]() This will stop (terminate) a running program immediately. These are the keys you should press in order to break out of a command or process on a terminal. If you could only remember one shortcut, this would be the chosen one. It will either automatically complete what you were typing or it will show all the possible results for you. Just start typing a command, filename, directory name or even command options and hit the tab key. It will save you so much time in the Linux command line. This is the Linux shortcut you cannot live without. These days, more and more developers are moving to OS X.Do note that I have used the capital letters in the keyboard shortcuts but this does NOT mean that you have to press the shift key while using these shortcuts. Here are 20 shortcuts to help you get work done in Terminal on your Mac. We may be compensated by vendors who appear on this page through methods such as affiliate links or sponsored partnerships. This may influence how and where their products appear on our site, but vendors cannot pay to influence the content of our reviews. Also, Macs are known for having their own proprietary set of keys that differ from more traditional keyboards.įor more info, visit our Terms of Use page.īoasting some of the best web development software, the ability to develop for almost any platform, and a great design and user experience, it’s no wonder why Macs are used by many developers as their primary machine.Īs a developer, being able to properly navigate your keyboard is one of the most useful skills you can have. Whether you’re a recent convert from Windows or Linux, or you’re about to start your first job out of school, here are 20 keyboard shortcuts on OS X that will make life easier if you’re working in Terminal. This shortcut allows you to move the cursor between separate words in a command line.
0 Comments
Leave a Reply. |