Linux command
lt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List files as tree
lt
List specific directory
lt [directory/]
Show hidden files
lt -a
Limit depth
lt -L [2]
Show file details
lt -l
Color output
lt --color
说明
lt lists directory contents in a tree format. It is typically a shell alias rather than a standalone command, commonly configured as an alias for lsd --tree, exa --tree, or eza --tree. The exact behavior and available options depend on the underlying command. Run type lt or alias lt to see the actual definition on your system.
参数
- -a
- Show hidden files.
- -L _DEPTH_
- Maximum depth.
- -l
- Long listing format.
- --color
- Enable color output.
- --help
- Display help information.
FAQ
What is the lt command used for?
lt lists directory contents in a tree format. It is typically a shell alias rather than a standalone command, commonly configured as an alias for lsd --tree, exa --tree, or eza --tree. The exact behavior and available options depend on the underlying command. Run type lt or alias lt to see the actual definition on your system.
How do I run a basic lt example?
Run `lt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in lt?
Show hidden files.