Linux tree command
Anand Varkey Philips 8 To Display the contents of a file use this command: If you want it with spaces, more like the OP requested, then this: For viewing HTML files you can also use lynx , links , elinks or w3m which are text-mode browsers. Think long term when we design these question and answer policies!
Read more about reopening questions here. If this question can be reworded to fit the rules in the help center , please edit the question. You can add the option -L where is replaced by a number, to specify the max recursivity level. It will show a graphical representation of the current sub-directories without files in a few seconds , e.
Linux command to print directory structure in the form of a tree [closed] Ask Question. If you want to have output with spaces, as in the question, use it with this "find prettifier" script: Shouldn't such questions get migrated to SuperUser rather than closed? The tags seem to be right.
The policy of closing questions without migrating is harmful to both stackoverflow and human knowledge in general. In the last 3 days, every single questions I googled and came across was closed for similar reasoning, and no more activity was able to happen.
This means no one can update it, no one can give a better answer, and it makes stackoverflow look shortsighted or elitist. Stackoverflow should consider requiring a migration when a topic is found to have these conditions.
I agree with NickYeates I am here in late September of still finding answers to this same question. Think long term when we design these question and answer policies! Remove -d to display also files. But I can't get it to work. VT-Terminal-codes don't seem to work properly. A real terminal doesn't have a GUI window around it that can be resized. What these are are escape sequences recognized by the dtterm terminal emulator, for window management, which the xterm terminal emulator supports for compatibility.
The konsole terminal emulator only supports supports some of what xterm supports. It is not fully xterm -compatible let alone dtterm -compatible.
You can use xdotool. I got it with apt-get install xdotool in Ubuntu. This is only a starting point, far from being foolproof e.