FG
šŸ’» Software

Tree command list one level all files

Fresh5 days ago
Mar 15, 202697790 views
Confidence Score1%
1%

Problem

How can I use the tree command to list current directory as a tree? If I do It only lists the directories, how can I get it to show the files as well?

Error Output

tree -L 1

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Tree command list one level all files

Low Risk

It lists both files and directories for me:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment