ubuntu终端打开文件夹_如何在Ubuntu的文件浏览器中将终端打开到特定文件夹

ubuntu终端打开文件夹

ubuntu终端打开文件夹

00_lead_image_opening_terminal_window

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。

01_installing_nautilus_open_terminal

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.

注意:您需要先注销然后重新登录,以使更改生效。

02_closing_terminal_window

To open Nautilus, click the Files icon on the Unity bar.

要打开Nautilus,请单击Unity栏上的“文件”图标。

03_opening_file_manager

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的左窗格导航到所需的文件夹。 右键单击右窗格中的文件夹,然后从弹出菜单中选择“在终端中打开”。

04_selecting_open_as_terminal

A Terminal window opens with the prompt indicating you are in the folder you selected in Nautilus.

“终端”窗口将打开,并提示您位于Nautilus中选定的文件夹中。

05_directory_open_in_terminal_window

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.com/192865/how-to-open-terminal-to-a-specific-folder-in-ubuntus-file-browser/

ubuntu终端打开文件夹

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值