For those working on Linux servers, having an efficient file management tool is indispensable. However, the traditional command line approach can easily become confusing and overwhelming. Today, I will introduce you to a powerful Linux server management tool: Ranger. It offers a smooth interface, easy-to-use shortcut keys, and many useful features that make managing files and directories easier.

ranger is a great tool that provides a multi-level view of your Linux files and allows you to browse and make changes using the arrow keys and some handy commands.
ranger is a unique and very convenient file system navigator that allows you to move within a Linux file system, enter and exit subdirectories, view text file contents, and even make modifications to files without leaving the tool.
It runs in a terminal window and allows you to navigate by pressing the arrow keys. It provides a multi-level file display, making it easy to see where you are, move around the file system, and select specific files.
To install ranger, use standard installation commands (for example, sudo apt install ranger). To start it, just type ranger. It has a long, very detailed manual page, but getting started with the ranger is very simple.
ranger display method
One of the most important things you need to get used to right away is the way ranger files are displayed. Once you start ranger, you will see four columns of data. The first column is one level above where you started the ranger. For example, if you start with your home directory, ranger will list all your home directories in the first column. The second column will show the first screen contents of directories and files in your home directory (or the directory you started in).
The key here is to look beyond any habits you might have and see the details shown in each row as relevant. All entries in the second column are related to a single entry in the first column, and the contents in the fourth column are related to the selected file or directory in the second column.
Unlike the normal command line view, directories will be listed first (in alphanumeric order) and files will be listed in second place (also in alphanumeric order). Starting from your home directory, the displayed content may look like this:
shs@dragonfly /home/shs/backups # files listing in selected in each of files in home directory selected directory
ranger The top line displayed tells you where you are. In this example, the current directory is /home/shs/backups. We see that empty is highlighted because there are no files in this directory. If we press the arrow keys to select bin, we will see a list of files:
shs@dragonfly /home/shs/bin cap nemo Desktop 0 extract shark Documents 0 finddups shs Downloads 1 fix ^ ^ ^ ^ | | | | homes directories # files listing in selected in each of files in home directory selected directory
The highlighted entry in each column shows the current selection. Use the right arrow key to move deeper into a directory or view file contents.
If you continue to press the arrow keys to move to the files portion of the list, you will notice that the third column will show the file size (instead of the number of files). The "Current selection" row will also display the currently selected file name, while the rightmost column will display the file contents whenever possible.
shs@dragonfly /home/shs/busy_wait.c wait eel camper.jpg 5.55 M * it's used to show ASLR, and that's it nemo check_lockscreen 80 B */ shark chkrootkit-output 438 B #include ^ ^ ^ ^ | | | | homes files sizes file content
The bottom line of the display will display some detailed information about files and directories:
-rw-rw-r—- shs shs 338B 2019-01-05 14:44 1.52G, 365G free 67/488 11%
If you select a directory and press Enter, you will enter that directory. Then, the leftmost column in your display will be a list of the contents of your home directory, and the second column will be a list of files in that directory's contents. You can then inspect the contents of the subdirectory and the contents of the file.
Press the left arrow key to move up one level.
Press the q key to exit ranger.
make change
You can press the ? key to pop up a help line at the bottom of the screen. It should look like this:
View [m]an page, [k]ey bindings, [c]commands or [s]ettings? (press q to abort)
Press the c key and ranger will provide information on commands you can use within the tool. For example, you can change the permissions of the current file by typing :chmod, followed by the expected permissions. For example, once a file is selected, you can enter :chmod 700 to set the permissions to rwx --.
Enter :edit to open the file in nano, allowing you to make changes, and then use nano's commands to save the file.
In short, Ranger is a very practical tool for people who manage files and directories on Linux servers. Its simple user interface and rich features make file management easy and enjoyable. If you are looking for an elegant and efficient way to manage files and directories on a Linux server, then Ranger is your ideal choice.
The above is the detailed content of Explore Linux server management artifact: Ranger. For more information, please follow other related articles on the PHP Chinese website!

linux设备节点是应用程序和设备驱动程序沟通的一个桥梁;设备节点被创建在“/dev”,是连接内核与用户层的枢纽,相当于硬盘的inode一样的东西,记录了硬件设备的位置和信息。设备节点使用户可以与内核进行硬件的沟通,读写设备以及其他的操作。

区别:1、open是UNIX系统调用函数,而fopen是ANSIC标准中的C语言库函数;2、open的移植性没fopen好;3、fopen只能操纵普通正规文件,而open可以操作普通文件、网络套接字等;4、open无缓冲,fopen有缓冲。

端口映射又称端口转发,是指将外部主机的IP地址的端口映射到Intranet中的一台计算机,当用户访问外网IP的这个端口时,服务器自动将请求映射到对应局域网内部的机器上;可以通过使用动态或固定的公共网络IP路由ADSL宽带路由器来实现。

在linux中,eof是自定义终止符,是“END Of File”的缩写;因为是自定义的终止符,所以eof就不是固定的,可以随意的设置别名,linux中按“ctrl+d”就代表eof,eof一般会配合cat命令用于多行文本输出,指文件末尾。

在linux中,可以利用“rpm -qa pcre”命令判断pcre是否安装;rpm命令专门用于管理各项套件,使用该命令后,若结果中出现pcre的版本信息,则表示pcre已经安装,若没有出现版本信息,则表示没有安装pcre。

linux查询mac地址的方法:1、打开系统,在桌面中点击鼠标右键,选择“打开终端”;2、在终端中,执行“ifconfig”命令,查看输出结果,在输出信息第四行中紧跟“ether”单词后的字符串就是mac地址。

在linux中,rpc是远程过程调用的意思,是Reomote Procedure Call的缩写,特指一种隐藏了过程调用时实际通信细节的IPC方法;linux中通过RPC可以充分利用非共享内存的多处理器环境,提高系统资源的利用率。

在linux中,交叉编译是指在一个平台上生成另一个平台上的可执行代码,即编译源代码的平台和执行源代码编译后程序的平台是两个不同的平台。使用交叉编译的原因:1、目标系统没有能力在其上进行本地编译;2、有能力进行源代码编译的平台与目标平台不同。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
