如何从终端打开Ubuntu Nautilus文件浏览器

00_lead_image_opening_nautilus

Recently, we showed you how to open a directory in Terminal from within Nautilus. However, what if you’re working on the command line in Terminal and need to access the same directory in Nautilus? There’s an easy solution for that.

最近,我们向您展示了如何从Nautilus中在Terminal中打开目录。 但是,如果您在终端中的命令行上工作并且需要访问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 open the current directory open in Terminal, type the following command at the prompt and press Enter.

要打开在Terminal中打开的当前目录,请在提示符下键入以下命令,然后按Enter。

nautilus .

鹦鹉螺。

NOTE: Be sure to type a space between “nautilus” and the period (“.”).

注意:请确保在“鹦鹉螺”和句点(“。”)之间键入一个空格。

It doesn’t matter which directory is active in Terminal before jumping to a specific directory in Nautilus.

跳转到Nautilus中的特定目录之前,在终端中处于活动状态的目录都没有关系。

01_opening_nautilus_from_terminal_window

Nautilus opens directly to the specified directory.

Nautilus将直接打开到指定目录。

02_open_folder_in_nautilus

You can easily jump to other directories in Nautilus, such as your Home directory…

您可以轻松跳转到Nautilus中的其他目录,例如主目录…

03_opening_home_folder_from_terminal

…or your Music directory. You can also jump to other directories within your Home directory, such as Documents (nautilus ~/Documents), pictures (nautilus ~/Pictures), or Downloads (nautilus ~/Downloads).

…或您的音乐目录。 您还可以跳到主目录中的其他目录,例如文档(nautilus〜/ Documents),图片(nautilus〜/ Pictures)或下载(nautilus〜/ Downloads)。

04_opening_music_folder

Jumping to directories you created are just as easy. Note that for directory names that contain spaces, preface each space with a backslash (\).

跳转到您创建的目录同样简单。 请注意,对于包含空格的目录名称,请在每个空格前加反斜杠(\)。

04a_opening_folder_with_space

If there are certain directories you access a lot, you can create aliases, or shortcuts, to access those directories in Nautilus from Terminal. For example, you can create the following alias so you can simply type “nh” to access your Home directory in Nautilus.

如果您经常访问某些目录,则可以创建别名或快捷方式,以从Terminal在Nautilus中访问这些目录。 例如,您可以创建以下别名,因此只需键入“ nh”即可访问Nautilus中的主目录。

alias nh=’nautilus .’

别名nh ='nautilus。'

See our article to learn how to create and use aliases to customize Ubuntu commands.

请参阅我们的文章,以了解如何创建和使用别名来自定义Ubuntu命令。

05_bash_aliases_file

Then, on the command line in Terminal, you can type “nh” from any directory to jump to your Home directory in Nautilus.

然后,在终端的命令行上,可以从任何目录键入“ nh”以跳转到Nautilus中的主目录。

06_using_alias_to_open_nautilus_to_home

To close the Terminal window, type “exit” at the prompt and press Enter, or click the X button in the upper-left corner of the window.

要关闭“终端”窗口,请在提示符下键入“ exit”,然后按Enter,或单击窗口左上角的X按钮。

07_closing_the_terminal_window

You can also create a bash shell script containing the “nautilus .” command. This allows you to press Alt + F2 to access the command bar from Unity, type “nh” (or whatever filename you assigned to the script), and press Enter, to open your Home directory without ever opening a Terminal window.

您还可以创建一个包含“ nautilus”的bash shell脚本。 命令。 这样,您可以按Alt + F2从Unity访问命令栏,键入“ nh”(或您分配给脚本的任何文件名),然后按Enter键打开主目录,而无需打开终端窗口。

NOTE: You can also click on the resulting icon for your script to run it.

注意:您也可以单击脚本的结果图标以运行它。

See our Beginner’s Guide to Shell Scripting series to learn how to create shell scripts.

请参阅我们的《 Shell脚本入门指南》系列,以了解如何创建Shell脚本。

08_running_nh_command

If you’re already in Nautilus and you need to move to a different directory, you can use the keyboard to get there if you show the location entry instead of the breadcrumb bar.

如果您已经在Nautilus中,并且需要移动到其他目录,则在显示位置条目而不是面包屑栏时,可以使用键盘到达那里。

翻译自: https://www.howtogeek.com/193071/how-to-open-the-ubuntu-nautilus-file-browser-from-the-terminal/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279577.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

mysql 面试知识点笔记(七)RR如何避免幻读及非阻塞读、范式

2019独角兽企业重金招聘Python工程师标准>>> 表象:快照读(非阻塞读)--伪MVCC (Multi-Version Concurrent Controll多版本并发控制) 内在:next-key锁(record锁gap锁) rr serializabel 都支持gap锁…

pdf 奇数页插入页码_如何在Word 2013中的奇数页码上启动新部分

pdf 奇数页插入页码When working on a long document or a book in Word, it’s common to divide the document into sections or chapters. A common practice is to start each new section or chapter on an odd page. This is easily accomplished using sections in Word…

流水线上的思考——异步程序开发模型(2)

上一期我们讲了一个简单的流水线处理流程,正如我们在上期最后所说那样,这个简单的流水线处理流程对于后续有慢设备操作的业务来说,性能有可能偏低。今天我们来讨论一下如何提高性能的方法。首先让我们来大致区分一下一般业务的处理方式。目前…

java ReentrantLock 锁相关笔记

为什么80%的码农都做不了架构师?>>> ReentrantLock重入锁简单理解就是对同一个线程而言,它可以重复的获取锁。例如这个线程可以连续获取两次锁,但是释放锁的次数也一定要是两次 Lock locknew ReentrantLock(true);//公平锁 Lock …

计算机启动程序bios_如何构建自己的计算机,第三部分:准备BIOS

计算机启动程序biosSo you’ve carefully picked out some parts and built a computer, but it doesn’t really do anything…yet. Before we hop into installing your operating system, we need to take a quick look at the BIOS and prepare it for our operating syste…

kindle图书免费下载_如何在Kindle上免费签出图书馆书籍

kindle图书免费下载Tired of paying so much for ebooks? Most libraries these days let you check out eBooks, for free, just like regular books. 厌倦了为电子书支付这么多钱? 如今,大多数图书馆都让您免费阅读电子书,就像普通书籍一样…

总结之:CentOS 6.4系统裁减详解及装载网卡步骤

前言 随着接触Linux的慢慢深入、对Linux也有了一个基本认识了吧,慢慢的接触系统内核、系统配置文件、在了解Linux的系统启动流程后,现在来总结一下一个简单的Linux系统的裁减方法和步骤,一个只有内核文件和几个简单的命令的小Linux系统&am…

android 设备占用_如何查看正在占用Android设备的空间

android 设备占用When you picked up your shiny new Android device, you probably thought “yeah, this has plenty of storage. I’ll never fill it up!” But here you are, some number of months later with a full phone and no clue why. No worries: here’s how yo…

mysql密码正确却提示错误, 不输入密码反而能登录

今天部署阿里云服务器, 发现之前可以连接的mysql服务器突然连接不上了, 密码我确认是正确的,但登录时就是显示密码错误, 很崩溃, 差点气得我就想重装mysql了。 好在经过几番苦寻找到了以下能解决我问题的资料, 成功解决了我的问题, 万分感谢,…

php旧版本windows_Windows的旧版本中如何进行多任务处理?

php旧版本windowsConsidering that DOS was a single-tasking OS and the ties it had with early versions of Windows, just how did earlier versions of Windows manage to accomplish multi-tasking? Today’s SuperUser Q&A post looks at the answers to this ques…

docker swarm的应用----docker集群的构建

一、docker安装 这里我们安装docker-ce 的18.03版本 yum -y remove docker 删除原有版本 #安装依赖包 [rootDocker ~]# yum -y install yum-utils device-mapper-persistent-data lvm2 #添加docker的CE版本的yum源配置文件 [rootDocker ~]# curl https://download.docker…

微信小程序 fire_如何在Fire TV和Fire TV Stick上侧面加载应用程序

微信小程序 fireAmazon’s Fire TV and Fire TV stick technically runs Android…but you wouldn’t know it from looking. Amazon has a wall of content for its set-top box, and doesn’t want Google (with its own competing platform) to crash the party. But even t…

设备无法获得谷歌运行怎么办_因此,您刚刚获得了Google主页。 怎么办?

设备无法获得谷歌运行怎么办So you scored a Google Home for Christmas. That’s awesome because this is a killer little smart speaker that can do a lot of different things—in fact, it can be a little overwhelming. The good news is that we’ve got you covered…

IDEA Maven创建多个Module相互依赖

1、前言 在大型企业项目中,系统架构复杂多变,一个项目根本无法支撑起所有业务。为了提高项目扩展性、灵活性、重用性,封装性,将项目分为多个Module是非常必要的。 这里就不说IDEA如何安装了,安装好IDEA后需要修改maven…

速达5000出现计算成本数据溢出的问题

算成本提示某货品成本溢出处理方法,该问题是由于货品成本异常,成本上亿或者负亿造成的; 1.首先通过语句:select * into tmp_goods from l_goods where ABS(aprice)>100000,把成本价格超过10万的货品资料取出&#x…

收银员英文缩写_如何在没有收银员的苹果商店购买东西

收银员英文缩写If you visit an Apple Store in the hopes of buying a new iPhone, iPad, or MacBook, you have to talk to an Apple employee, since all the expensive products are kept in the back. However, if it’s just an accessory you want, you can buy it with…

php表单提交完返回,表单内容不清空解决方法

2019独角兽企业重金招聘Python工程师标准>>> 我们经常在注册的时候,填写一大推信息以后在提交注册的时候,因为某一项信息不正确,在返回的时候之前的填写的内容全部没有了,这样会导致用户丧失再次填写的信息&#xff0c…

word标尺灰色_如何在Microsoft Word中使用标尺

word标尺灰色Word’s rulers let you control the margins of your page and the indentation of paragraphs. They’re great for precisely lining up images, text, and other elements. If you’re printing a document, the rulers can help ensure that what you see on …

Matplotlib学习---用matplotlib画误差线(errorbar)

误差线用于显示数据的不确定程度,误差一般使用标准差(Standard Deviation)或标准误差(Standard Error)。 标准差(SD):是方差的算术平方根。如果是总体标准差,那么用σ表示…

Android One和Android Go有什么区别?

In 2014, Google announced a lineup of low-cost, low-spec phones called Android One. In 2017, they announced Android Go, specifically designed for low-cost, low-spec phones. So…what’s the difference? 2014年,Google宣布了一系列名为Android One的低…