Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The command tree is not defined on my system (Ubuntu 11.10) either. I'd be willing to bet that this command is installed along with some package that is an addition to linux rather than being a native linux command.
On a Debian or Ubuntu distro, you can search for Oracle packages.
On Debian (most likely on Debian-based distros also), the tree command is in the tree package.
apt-cache show tree
Maintainer: Florian Ernst <email@example.com>
Depends: libc6 (>= 2.3)
Description: displays directory tree, in color
Displays an indented directory tree, using the same color assignments as
ls, via the LS_COLORS environment variable.
Tag: implemented-in::c, interface::commandline, role::program, scope::utility, use::browsing, works-with::file
1) Command tree is no more supported in recent versions of the OS.
2) If you're getting No such file or directory message, then it means that the file or directory that you speified doesn't exist, but command i.e. cat is working file.
3) In order to check whether a command exists or not, simply use which command followed by command you want to check:
4) You can use only those available commands on a system which are set in your PATH variable. To check, use:
It will list all parent directories under which your executable commands lying and that you can use. To add more commands to your PATH, just do:
Tree is basic linux comamnd . I searched google to download tree package.
It shows many things.
[root@localhost ~]# uname -avr Linux localhost.localdomain 2.6.9-184.108.40.206.1.ELsmp #1 SMP Sun Oct 15 14:02:40 PDT 2006 i686 athlon i386 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release Enterprise Linux Enterprise Linux AS release 4 (October Update 4)
[root@localhost ~]# cat /etc/issue Enterprise Linux Enterprise Linux AS release 4 (October Update 4) Kernel \r on an \m
[root@localhost ~]# cat /etc/*-version cat: /etc/*-version: No such file or directory
>> Here , Tree Package is installed >>
[root@localhost ~]# rpm -qa |grep tree python-elementtree-1.2.6-4
Additional question :-
I think tree common and basic command.
Some useful applications and utilities are added over the kernel,
then the complete package becomes an OS. So i think all basic commands
is common to all linux distros.
As per previous reply , confusing me ,
Make sure which operating system you are using by below command?
1. Won't linux various distros support basic commands ?
i mean common commands ...
2. Tree is package is installed , but command not working
what's the reason ?
Last edited by thiyagusham; 11-18-2012 at 01:14 AM.
There's no point of getting confused. If you just need tree command, then it usually found under /usr/bin directory. But it's not installed by default and in your case, it's not installed on your system.
So you can downlload it from http://mama.indstate.edu/users/ice/tree/. Then unzip this file and simply run installer.
Then you can check it using which tree command.
[root@localhost TREE]# ls -al
drwxrwxrwx 1 root root 0 Nov 18 13:42 .
dr-xr-xr-x 1 root root 4192 Nov 18 13:52 ..
-rwxrwxrwx 1 root root 42706 Nov 18 13:41 tree-1.6.0.tgz
[root@localhost TREE]# rpm –ivh tree-1.6.0.tgz
RPM version 4.3.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
root@localhost TREE]# unzip tree-1.6.0.tgz
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: tree-1.6.0.tgz may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of tree-1.6.0.tgz or
tree-1.6.0.tgz.zip, and cannot find tree-1.6.0.tgz.ZIP, period.
Last edited by thiyagusham; 11-18-2012 at 03:32 AM.
-Tree is not a basic Linux command, it have never been, it probably never will
-There is utilities that come with the Linux kernel, but they are usually tools to either debug it or set some variables. Basic command are part of GNU, not Linux. It is a basic MS DOS command. The Linux equivalent would be "ls -R"
-"cat /etc/*-releases" is not a command, "cat" is a command, /etc is a directory and *-release a shell expression for all files ended with "release". Not all distributions provide such files, it is not required by Linux.
Your Linux is also very old, it is time to upgrade. Old version of Oracle might still work, but keeping outdated system is not a food idea at all. If you never did the updates because you don't pay for them, use a free distributions.
To install something, don't search Google. Use "yum install <package-name>", it work on modern RedHat based distributions since about 2007. But yours look older.