如何從終端打開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.pswp.cn/news/279577.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279577.shtml
英文地址,請注明出處:http://en.pswp.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…

徹底攻克C語言指針

前面我們講解了指針數組、二維數組指針、函數指針等幾種較為復雜的指針,它們的定義形式分別是: int *p1[6]; //指針數組int *(p2[6]); //指針數組,和上面的形式等價int (*p3)[6]; //二維數組指針int (*p4)(int, int); //函數指針我相信大部分…

流水線上的思考——異步程序開發模型(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…

PLSQL 之類型、變量和結構

1、類型 在《.Net程序員學用Oracle系列(5):三大數據類型》一文中詳細地講述了 Oracle 的基本數據類型,文中還提到,除基本數據類型之外,Oracle 還在語法上支持一些非固有數值類型。 事實上,Oracle 在語法上支持的數據類…

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了。 好在經過幾番苦尋找到了以下能解決我問題的資料, 成功解決了我的問題, 萬分感謝,…

域用戶權限|安裝軟件

如何讓普通的域用戶有安裝軟件的權限?現在給客戶部署了活動目錄,客戶要求 普通的域用戶也可以自己安裝軟件。不知道如何設置,希望大家幫幫忙!我告訴客戶的做法如下:不知道可行性如何? 1、在域中新建一個域賬…

c/c++ new delete初探

new delete初探 1,new有2個作用 開辟內存空間。調用構造函數。2,delete也有2個作用 釋放內存空間調用析構函數。如果用new開辟一個類的對象的數組,這個類里必須有默認(沒有參數的構造函數,或者有默認值的參數的構造函數)的構造函數…

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…

批量提取視頻文件信息(文件大小及時長)并統計

隨著設備性能提高,視頻文件越來越大了。服務器在對外提供視頻服務時,需要承擔越來越大的存儲負擔。一般提供1080P的AVC編碼視頻已滿足多數觀看需求。(1小時視頻大約1.3G)此文要解決的就是關于已有大量高清視頻(1小時超…

列出所有K個元素的子集-----2013年1月26日

問題描述:列出一個集合的元素個數為k的所有子集。思路:在字典順序列出所有子集的基礎上判斷元素個數就可以了&#xff0c;比較簡單。代碼如下:1 #include <stdio.h>2 #define MAX 10003 4 int main()5 {6 int n5;7 int set[MAX]{1};8 int index0;9 int …

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…