I rarely use CentOS as a desktop but purehate and myself set up a development box the other day to test some things. We needed the computer to not only function as a Linux server but also as a Desktop for some of the items we wanted to test. In doing so I have been playing around with various items and I find myself needing to open terminal windows on a regular basis so I wanted to know what the keyboard shortcut was to open a terminal window. The quick answer is that there is not a keyboard shortcut to open a terminal window by default on CentOS running the Gnome desktop environment. Below are some quick steps to add a keyboard shortcut to open a terminal window on a computer running the Gnome Desktop environment.
Gnome Desktop Environment: Create A Keyboard Shortcut To Open A Terminal Window
- Open Keyboard Shortcuts Configuration Window: First you need to launch the Keyboard Shortcuts configuration window which can be done by clicking System in the top navigation menu on your Gnome desktop, select Preferences from the drop down menu, and then click Keyboard Shortcuts from the Preferences menu. This will launch the Keyboard Shortcuts configuration menu as displayed in the below image.
- Locate Run A Terminal: Now in the Gnome Keyboard Shortcuts configuration window scroll down until you see “Run A Terminal” which is located under the Desktop sub section as displayed in the below image.
Notice the “Run A Terminal”, which means to launch a new terminal window, keyboard shortcut is disabled by default in the Gnome Desktop Environment.
- Modify Run A Terminal: Double click on Run A Terminal and then type the key combination you would like to be the one that launches a terminal window. In this example I click “Ctrl+t” or the control button and the “t” button at the same time to be the keyboard shortcut that opens a terminal window in the Gnome Desktop Environment. The below image shows the example of what the Keyboard Shortcuts configuration window will look like after it records the key combination.
- Test Gnome Keyboard Shortcut: Now close the Keyboard Shortcut configuration window and test your new keyboard shortcut by clicking ctrl+t to see if a new terminal window is launched. If successful you should see a terminal window similar to the below image.
So now you can apply the same concept to any other keyboard shortcut you would like to create. Now launching terminal windows from the Gnome Desktop Environment on a CentOS Linux server should be much easier.
Great post. Was looking for this for a while.
Another great tip to add to this post is that if you would like your terminal window sized differently, centos/gnome doesn’t provide an easy way to do this using the terminal profile.
If you have the shortcut key set up, go to system > preferences > more preferences > preferred applications
Once there choose the system tab. The choose the custom type from the drop down selector.
In the command box you will see : gnome-terminal
add this –geometry=100×30 and your default window size will be altered to 100×30.
gnome-terminal –geometry= is what the final should look like.
Thanks!
Hello Ryan,
Thanks for the feedback and for adding another tip to the article. Others will definitely find this useful.
Thanks.
alex
That is a dash dash (- -) before the ‘geometry’. Hard to tell.
Hello Ryan,
Thanks for clarifying this…
Thanks.
alex
Thanks for giving a quick understanding
Hello evanooruvan,
No problem. Thanks for taking the time to post feedback.
Thanks.
alex
Excellent how-to.
Thanks for sharing.
Thanks so much! This was annoying me so bad that it didn’t previously exist once I installed X. On *buntu it ships with ctrl+t and was unable to figure this out!
hi alex
it is a useful article.