Main Content
Displaying a directory or file system tree - Linux Archive - Originally posted on "The Horse's Mouth" - 2011-04-22 05:30:31 - Graham Ellis
How can you display your whole file tree on a Linux system? With the tree command!
|-- abo
|-- access_log
|-- adarrivals.txt
|-- adhoc_private
| |-- adhoc.conf
| |-- businesslogic.inc
| |-- page_layout.htp
| |-- sampledata.sql
| |-- sqlwrapper.inc
| `-- webhelpers.inc
|-- backups
| |-- emma
| |-- net.cgi.tgz
| |-- net.html.tgz
| |-- net.other.tgz
| |-- nettouk.sql
| |-- nettouk.sql.gz
| `-- nfr
| |-- accesslog_nfr.co.uk_4_24_2010
| |-- perly
| `-- snapshot
|-- batch
| |-- ilog.php
| |-- perl_web_anal
| `-- php_web_anal
|-- booksonly.sql
• defaults to current directory. You may specify 1 or more directory names
• lots of options - I like -s to give sizes for each file
• many other options are the same as ls -a, -F etc
&bull full man page available ...(plenty of online copies such as [here] .
Some other articles
A101 - Linux -An Introduction For Users Packing a tar, jar or war file - best practise The Kernel, Shells and Daemons. Greek Gods in computing This article Oops - I typed ci not vi, and have lost my file ... Recording (a macro) in vi Linux - useful tips including history and file name completion Making Linux Politically correct Accidentally typed ci rather than vi? What does x on a linux directory mean? How much space does my directory take - Linux Always use su with minus. And where do programs come from? Running straight from the jar, but not from a tar Ruby, Perl, Linux, MySQL - some training notes sstrwxrwxrwx - Unix and Linux file permissions Keeping on an even keel Some Linux and Unix tips FTP passive mode - a sometimes cure for upload hangs Yank and Push - copy and move in vi ls command - favourite options Selecting file names in a shell - one word or another Copy and paste / cut and paste and other vi techniques Wireless hotel tips - FTP and Skype connections failing awk - a powerful data extraction and manipulation tool Linux run states, shell special commands, and directory structures Work and play at Well House Manor - Football and Shell Shortcuts Where am I and how did I get here? ls -l report, Linux / Unix - types and permssions Copy multiple files - confusing error message from cp Moving files between Windows / DOS and Linux / Unix Cardinal numbers and magic numbers Cottage industry or production line data handling methods THE home directory or MY home directory Linux training Glasgow, Python programming course Dundee Copying files and preserving ownership More or less on the edge of the page Web Application Components Finding where the disc space has gone File permissions of Linux and Unix systems Linux commands - some basics An easy way out Aladdin, or careful what you wish. pushd and popd vi - full circle