Linux Learning Note-ubuntu Add right-click menu to open Terminal

Source: Internet
Author: User

1, enter the personal directory (such as/home/batsing, hereinafter abbreviated into ~); set to show hidden files, or use the command line;
2, enter the ~/.gnome2/nautilus-scripts folder, create a new file, named terminal;
3. Open with a text editor (such as Vim,gedit), enter the following (shell script) and save the exit:

# !/bin/bash " dirname $NAUTILUS _script_current_uri " Exec Gnome-terminal

4. Add the executable property to the text file, command line input: chmod +x terminal
5, with the ls-l command to confirm that it has no executable properties, if any, in any folder right-click on the menu should have a "script" inside there is a terminal; work is done;
6, if not successful, then try again, check the file name has no correspondence, the shell script has no spelling (case, Chinese characters) error, etc.;

Linux Learning Note-ubuntu Add right-click menu to open Terminal

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.