Shortcut keys for Linux terminal and set up shortcut keys for opening terminal

Source: Internet
Author: User
Tags file permissions

Linux terminal usage tips


Today, I found that the Linux terminal has so many handy shortcuts.

Shift+ctrl+t: New tab page

SHIFT+CTRL+W: Close tab

Ctrl+pageup: Previous tab

Ctrl+pagedown: Next tab

Shift+ctrl+pageup: Tab Shift left

Shift+ctrl+pagedown: Tabs Move Right

ALT+1: Switch to tab page 1

ALT+2: Switch to tab page 2

ALT+3: Switch to tab page 3

Shift+ctrl+n: New Window

SHIFT+CTRL+Q: Closing the terminal

Copy/paste in terminal:

Shift+ctrl+c: Copy

Shift+ctrl+v: Pasting

Terminal change Size:

F11: Fullscreen

Ctrl+plus: Zoom In

Ctrl+minus: Decrease

Ctrl+0: Original Size

Set up shortcut keys to open terminal

First, set shortcut keys

Preferences--screen shortcuts, then add a command and add a shortcut to your keyboard if you use the GNOME desktop recommended

gnome-terminal command Add shortcut key, can also use xterm, also can use shell script, for example, I use a script that I posted below

command (script see text code):

/home/zhangwei/.gnome2/nautilus-scripts/Open Terminal

Second, set the right-click shortcut (the current directory when opened)

Method One:

Execute command:

sudo apt-get install nautilus-open-terminal

This method is to install a small software, but I installed and Conky conflict, so no use.

Method Two:

Use the script to save the following script to any name (my is: Open terminal), and then put in the home directory of the . Gnome2/nautilus-scripts Directory, of course, you can put some other common scripts can be found in the right-click. such as Send to mail/modify file permissions and so on practical functions.

Script:

#!/bin/bash
#
# This script opens a gnome-terminal in the directory of you select.
#
# Distributed under the terms of the GNU GPL version 2 or later
#
# Install in ~/.gnome2/nautilus-scripts or ~/nautilus/scripts
# You need to is running Nautilus 1.0.3+ to use scripts.

# When a directory is selected, go there. Otherwise go to current
# directory. If more than one directory is selected, show error.
If [-N "$NAUTILUS _script_selected_file_paths"]; Then
Set $NAUTILUS _script_selected_file_paths
If [$#-eq 1]; Then
Destination= "$"
# Go to file ' s directory if it's a file
if [!-D "$destination"]; Then
destination= "' DirName" $destination "'"
Fi
Else
Zenity--error--title= "Error-open terminal here" \
--text= "can only select one directory."
Exit 1
Fi
Else
Destination= "' echo" $NAUTILUS _script_current_uri "| Sed ' s/^file:\/\///' "
Fi

# It ' s only possible to go to local directories
If [-N ' ' echo ' $destination ' | grep ' ^[a-za-z0-9]\+: ' "; Then
Zenity--error--title= "Error-open terminal here" \
--text= "only local directories can be used."
Exit 1
Fi

CD "$destination"
EXEC x-terminal-emulator


Description: recently installed a CentOS6.0, (personalized) Set the terminal shortcut keys are as follows:

1. Open the terminal: ALT + S

2. Close the terminal: ALT + Q

Operation is as follows

1. Open the terminal:



2. Close the terminal:











Shortcut keys for Linux terminal and set up shortcut keys for opening terminal

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.