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

阅读: 评论:0

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来对在命令行上更容易完成的文件执行操作,这将变得更加容易。

翻译自: www.howtogeek/192865/how-to-open-terminal-to-a-specific-folder-in-ubuntus-file-browser/

ubuntu终端打开文件夹

本文发布于:2025-04-05 08:42:00,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/1743813766583945.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:终端   文件夹   开到   中将   浏览器
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23