Linux command
lsr 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List files
lsr
List files recursively
lsr -R
List files with Git status
lsr -g
List all files including hidden ones
lsr -a
List files in a specific directory
lsr [/path/to/directory]
说明
lsr (also known as Laser) is a command-line alternative to ls that prioritizes readability and usability. It provides colorized file listings with improved visual organization, recursive tree display, Git status indicators, and file/symlink identification through visual flags. Color schemes are customizable, and the tool is extensible through Lua scripts for displaying custom information beyond what standard ls offers.
参数
- -R, --recursive
- Display files in a recursive tree structure.
- -g, --git
- Show Git status indicators for staged and unstaged changes.
- -a, --all
- Show hidden files.
FAQ
What is the lsr command used for?
lsr (also known as Laser) is a command-line alternative to ls that prioritizes readability and usability. It provides colorized file listings with improved visual organization, recursive tree display, Git status indicators, and file/symlink identification through visual flags. Color schemes are customizable, and the tool is extensible through Lua scripts for displaying custom information beyond what standard ls offers.
How do I run a basic lsr example?
Run `lsr` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -R, --recursive do in lsr?
Display files in a recursive tree structure.