當前位置: 首頁>>技術教程>>正文


是否有命令行的文件瀏覽器/管理器?

問題描述

我想知道Ubuntu是否有類似DOS接口的東西。我的意思是可以從控製台運行的”GUI”(例如,如果您使用的是Ubuntu Server)。一些文件瀏覽器,如Nautilus,但在控製台中。

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

最佳解決思路

那裏有午夜指揮官:

要安裝:sudo apt-get install mc要運行:mc

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

還有上一個文件管理器:

要安裝:sudo apt-get install lfm要運行:lfm

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

次佳解決思路

另一個可以完全通過鍵盤操作的有用文件管理器是vifm,它可以在存儲庫中使用。你可以安裝它:

sudo apt-get install vifm

它有一個ncurses風格的界麵,非常適合在服務器上使用。它與其他雙窗格文件管理器非常相似,隻是它支持所有vim快捷方式。如果你知道在vim中運行的各種方法,那麽這個文件管理器將是理想的,你不需要學習另外一些快捷方式。

安裝程序時,vifmrc~/.vifm文件夾中創建,因此您可以添加自己的個人配置和鍵綁定。但是,要完全使用所有最新功能(如自定義鍵綁定),您需要從the project site編譯最新版本,並確保安裝最小構建依賴項libmagic-devlibx11-dev。存儲庫中的版本很好且穩定,但它是一個相當舊的版本(0.4.2),當前版本是0.7.4。

就像在vim中一樣,您可以按Shift + :進入文件瀏覽器內的命令行並執行許多操作,如the Sourceforge site文檔中所述。該程序的創建者確實將它用於他的家庭服務器,正如他在此處的screenshots中所示,所以我認為該程序對您或任何已經熟悉vim的人都是完美的。

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

第三種解決思路

Ranger:

ranger is a file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. The secondary task of ranger is to psychically guess which program you want to use for opening particular files.

  • UTF-8支持

  • Multi-column顯示屏

  • 預覽所選文件/目錄

  • 常用文件操作(create /chmod /copy /delete /…)

  • VIM-like控製台和熱鍵

  • 自動確定文件類型並使用正確的程序運行它們

  • 退出遊俠後,更改shell的目錄

  • 標簽,書簽,鼠標支持

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

第四種思路

你可以看看Dired Mode for Emacs。雖然它已經集成到Emacs(所以你必須學習所有的東西),它是非常有用和好用的,它可以很好地嘗試它。

您可以通過在no-window模式下運行存儲庫來顯示存儲庫:

emacs -nw /path/to/your/repository/

Dired is a visual directory editor, a computer program for editing file system directories. Dired runs on any Emacs platform. Its commands are generally more modal than most Emacs commands because Dired is a specialized major mode on its own. Dired can perform all expected operations; in operation and use it is akin to an orthodox file manager like Midnight Commander.

command-line,software-recommendation,files,filemanager,ncurses,ubuntu

第五種思路

這個帖子提醒我你可以用vim打開一個目錄,然後用箭頭鍵從那裏瀏覽並輸入。這就是我想要的一切。 :+1:

vim .

參考資料

本文由Ubuntu問答整理, 博文地址: https://ubuntuqa.com/zh-tw/article/1839.html,未經允許,請勿轉載。