ubuntu终端打开文件夹
There may be times when you’re working with files in Ubuntu’s File Browser, Nautilus, and you want to switch to working on the command line in Terminal. Instead of manually navigating to the same folder in Terminal, you can easily jump directly to that folder.
有时您可能会在Ubuntu的文件浏览器Nautilus中使用文件,而您想要切换到在Terminal中的命令行上工作。 您可以轻松地直接跳转到该文件夹,而无需在终端中手动导航到同一文件夹。
We’ll show you how to add an “Open in Terminal” option to the context, or right-click, menu in Nautilus that allows you to open a Terminal window directly to the folder selected in Nautilus.
我们将向您展示如何在Nautilus中的上下文菜单中添加“在终端中打开”选项,或右键单击菜单,该菜单允许您直接将终端窗口打开到Nautilus中选择的文件夹。
NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.
注意:当我们说要在本文中键入某些内容并且文本周围有引号时,请不要键入引号,除非我们另外指定。
To install the “Open in Terminal” option in the Nautilus context menu, press Ctrl + Alt + T to open Terminal. Type the following command at the prompt and press Enter.
要在Nautilus上下文菜单中安装“在终端中打开”选项,请按Ctrl + Alt + T打开终端。 在提示符下键入以下命令,然后按Enter。
sudo apt-get install nautilus-open-terminal
须藤apt-get install nautilus-open-terminal
Type your password when prompted and press Enter.
出现提示时输入密码,然后按Enter。
When the installation is finished, type “exit” at the prompt and press Enter.
安装完成后,在提示符下键入“ exit”,然后按Enter。
Note: you will need to log out and back in for the changes to take effect.
注意:您需要先注销然后重新登录,以使更改生效。
To open Nautilus, click the Files icon on the Unity bar.
要打开Nautilus,请单击Unity栏上的“文件”图标。
Navigate to the desired folder using the left pane in Nautilus. Right-click on the folder in the right pane and select Open in Terminal from the popup menu.
使用Nautilus的左窗格导航到所需的文件夹。 右键单击右窗格中的文件夹,然后从弹出菜单中选择“在终端中打开”。
A Terminal window opens with the prompt indicating you are in the folder you selected in Nautilus.
“终端”窗口将打开,并提示您位于Nautilus中选定的文件夹中。
This makes it easier if you need to jump to Terminal to perform operations on files that are more easily done on the command line.
如果您需要跳到Terminal来对在命令行上更容易完成的文件执行操作,这将变得更加容易。
翻译自: https://www.howtogeek/192865/how-to-open-terminal-to-a-specific-folder-in-ubuntus-file-browser/
ubuntu终端打开文件夹