Ubuntu中安装使用Ranger

Ubuntu中安装使用Ranger

Ranger是Ubuntu中类似Mac中的Finder的文件管理器,非常的轻便和好用,基于Python,使用Vi类似的快捷键。在Ubuntu中安装Ranger很简单,软件中心就有,或者直接:

sudo apt-get install ranger

在Bash中启动或者关掉Ranger直接输入ranger或者Q。除了类似Vi操控的快捷键外,其他的一些命令包括按下g然后可以看到组合其他字母到达文件夹的组合列表(例如gh=cd ~)。在ranger中还可以使用标签浏览,例如ctrl+n=创建新的标签。输入!是执行shell命令,输入:是执行Ranger命令,du为检测当前文件夹硬盘使用。

一些精彩使用的功能键和命令如下:

名利 属性
jkhl 移动
gg,G 移到最顶和最底端
Ctrl+f,Ctrl+b 向下翻页,向上翻页
J,K 向下 1/2 页,向上 1/2页
H,L 根据历史记录返回或前进
gh cd ~
ge cd /etc
gu cd /usr
gd cd /dev
go cd /opt
gv cd /var
gm cd /media
gM cd /mnt
gs cd /srv
gr cd /
gR cd 到ranger的全局控制文件夹
i Display file (useful if you\’d like to view a text file in a pager instead of editing it)
l or E Open file (opens file in default file-handler)
r Open file with… (allows you to choose program to use)
o Change sort order (follow by character in menu selection)
z Change settings (commonly used toggle settings)
zh View hidden files
Space Select current file
t Tag file (you can perform actions on tagged files)
cw Rename current file
/ Search for files
n Jump to next match
N Jump to previous match
yy Yank (copy) file
dd Mark file for cut operation
delete Delete selected file
Ctrl+n Create new tab
Ctrl+w Close current tab
Tab Next tab
Shift+Tab Previous tab
? View ranger man page
1? Keybindings help
2? Command help
3? Settings help
R Reload current directory
Q Quit
! execute a command from the shell (non-ranger commands)
: Execute a ranger command
du Measure disk usage of current directory
chmod Change permissions of current file
%f Substitute highlighted file
%d Substitute current directory
%s Substitute currently selected files
%t Substitute currently tagged files

除非特别声明,文章均为牛会飞的博客原创,遵循署名-非商业使用-相同方式共享授权协议
转载请注明出处: https://blogfei.com/ubuntu-ranger-install/

暂无评论