How to enable a non-full screen terminal in ubuntu
Source: Internet
Author: User
How to open a non-full-screen terminal in ubuntu gnome-terminal -- full-screen // ---------------------------------- the first (of course it is a stupid method) open (application-attachment-terminal) in turn ), if you are idle, you can directly add the panel... how to open a non-full-screen terminal in ubuntu gnome-terminal -- full-screen // ---------------------------------- the first (of course it is a stupid method) open (application-attachment-terminal) in turn ), if you are not busy, you can add a panel directly, which is convenient! In the second method, press Alt and then press F2 to open a runtime box and enter gnome-terminal. In this dialog box, you can execute a lot of commands to [run] windows, but it is hard to remember. Third, you can right-click the terminal window. The result is right-click in the blank area of the desktop or folder, and the shortcut "open from terminal" appears. That requires a software. The installation is very simple. open the terminal and enter the following command in sudo apt-get install nautilus-open-terminal and then unregister it! // ---------------------------- Method 1: application-accessories-terminal Method 1: Install a package and add a menu of "open Terminal" in the right-click the package. Sudo apt-get install nautilus-open-terminal Method 2: Enter the. gnome2/nautilus-scripts directory in the main directory. Create a new file with any file name (this file name will be displayed in the right-click menu, preferably easy to understand, such as "open terminal" or "open-terminal"). the file content is as follows. Reference #! /Bin/bash # This script opens a gnome-terminal in the directory you select. # Distributed under the terms of gnu gpl version 2 or later # Install in ~ /. Gnome2/nautilus-scripts or ~ /Nautilus/scripts # You need to be 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"]; thenset $ NAUTILUS_SCRIPT_SELECTED_FILE_PATHSif [$ #-eq 1]; thendestination = "$1" # Go to file's directory if it's a fileif [! -D "$ destination"]; thendestination = "'dirname" $ destination "'" fielsezenity -- error -- title = "Error-Open terminal here" \ -- text = "You can only select one directory. "exit 1 fielsedestination =" 'echo "$ NAUTILUS_SCRIPT_CURRENT_URI" | sed's/^ file: \ // ''" fi # It's only possible to go to local directoriesif [-n "'echo" $ destination "| grep '^ [a-zA-Z0-9] \ +: ''"]; thenzenity -- error -- title = "Error-Ope N terminal here "\ -- text =" Only local directories can be used. "exit 1fi cd" $ destination "exec x-terminal-emulator add executable permissions to the file. The chmod + x file describes the advantages and disadvantages of the two methods: 1. the second method is to create a level-2 menu. it first adds a menu named scripts to the context menu, in this menu, we need to "open the terminal" or "open-terminal" (the name of this place is the file name of the new script), so it seems inconvenient. The first method is to add a menu directly in the right-click menu. 2. both methods are based on nautilus. this feature can be enabled on any nautilus interface. more specifically, the second method recognizes the current directory, the default directory of the opened Terminal is the current directory, which is more user-friendly. The first method is to use the default directory, no matter what directory you are in. PS: The second method is highly scalable. if you can write scripts on your own, you can implement many custom functions, such as sending emails or modifying file permissions. These two methods can coexist. if it is not too troublesome, we recommend that you install both methods to achieve coexistence.
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.