espeak should be installed by default as text-to-speech engine on Linux.
You should be able to get it to speak from command-line by doing something like this:
echo "Text to speak"|espeak
You can also start espeak by just entering espeak
itself, and then enter each line of text you want spoken followed by enter.
Other TTS engines for Linux you could look at:
Espeak is available at (but should be installed by default!):
For Windows XP or 7, the /F
switch will also show filenames.
C:\>tree /?
Graphically displays the folder structure of a drive or path.
TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.
However, I'm guessing you're on another OS since /L
is not a valid switch on XP or 7.
On my Ubuntu VM (11.10), tree
did not come pre-installed. sudo apt-get install tree
fixed that quickly. Afterwards tree -L 1
worked just as you seem to want it to - it showed a tree of just the current directory, including files and directories. Adding the -a
switch also included "hidden" files. It seems the default behavior of tree
is to show both files and directories. This can be changed to directories only with the -d
switch.
More details can be found in man tree
or here: http://www.computerhope.com/unix/tree.htm
If you're having trouble, I suggest checking the ls
of your pwd
to make sure there actually are files in that directory. Also, check your file and folder permissions and view the man
page for tree
for more options.
Best Answer
You can get the
tree
command on macOS, too. If you have Homebrew:If you do not have Homebrew installed, try one approach below.
Installing a package manager approach
Follow the instructions on these websites to install Homebrew, MacPorts, or Fink. Do not install more than one package manager at the same time!
Follow the prompt for whichever you installed.
For Homebrew:
brew install tree
For MacPorts:
sudo port install tree
For Fink:
fink install tree
Installing from source approach
Install the Xcode command line tools by running
xcode-select --install
.Download the
tree
sourceChange the Makefile to get it to work, which is also explained in @apuche's answer below. Commenting out the Linux options and uncommenting the macOS options should be enough.
Then, run
./configure
, thenmake
.Now you have to move the
tree
binary file to a location that's in your executable path. For example:Now edit
~/.bash_profile
to include:Reload the shell, and now
which tree
should point to/usr/local/bin/tree
.