Page 1 of 1
Terminal tree Command Switches Don't Work (solved)
Posted: Wed May 01, 2024 10:56 am
by JusGellin
Bookwormpup64_10.0.6
When I try to use switches with the tree command, it gives errors. For example:
# tree -L 1
-L [error opening dir]
1 [error opening dir
How can I properly use this command. The man pages don't seem to help.
Thanks
Re: Terminal tree Command Switches Don't Work
Posted: Wed May 01, 2024 1:30 pm
by geo_c
JusGellin wrote: ↑Wed May 01, 2024 10:56 am
When I try to use switches with the tree command, it gives errors. For example:
# tree -L 1
-L [error opening dir]
1 [error opening dir
How can I properly use this command. The man pages don't seem to help.
Thanks
Hmm, that command works for me just fine on tree version 2.1.1
Even displaying symbolically linked directories on that level.
Also the --help switch gives all the switches and usage.
Might be the pup/tree version combination is not working properly. Or the install is missing something.
Someone else might know what to look for in terms of the terminal setup, interpreter etc.
Re: Terminal tree Command Switches Don't Work
Posted: Wed May 01, 2024 2:07 pm
by JusGellin
Thanks.
I'm using Bookwormpup64_10.0.6.
Even when I try to get version of tree it gives an error
I installed tree using Synaptic Package Manager and it then worked. It installed v2.1.0
Your comment was all that I needed to make me look further.
Thanks again
Re: Terminal tree Command Switches Don't Work
Posted: Wed May 01, 2024 5:19 pm
by williwaw
@JusGellin
depending on which distro you are using, commands might be supplied by https://busybox.net/BusyBox.html
if you are used to more functionality, maybe coming from a different linux, updating with apt might install a different package.
did synaptic install GNU Core Utilities?
https://stackoverflow.com/questions/769 ... ee-command
Re: Terminal tree Command Switches Don't Work
Posted: Wed May 01, 2024 7:29 pm
by d-pupp
I'm using Vanilladpup and the tree command it a symlink to busybox.
To get the full version install it with apt or do as I did and use the binary from another pup with the full version.
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 12:12 am
by JusGellin
I'll do it like this:
d-pupp wrote: ↑Wed May 01, 2024 7:29 pm
I'm using Vanilladpup and the tree command it a symlink to busybox.
To get the full version install it with apt or do as I did and use the binary from another pup with the full version.
williwaw wrote: ↑Wed May 01, 2024 5:19 pm
did synaptic install GNU Core Utilities?
I didn't even see that Synaptic had that for a package. But I think I see that it is installed using
dpkg -s coreutils which gave version 9.1-1. It didn't have the tree command.
Thanks all.
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 12:40 am
by Flash
d-pupp wrote: ↑Wed May 01, 2024 7:29 pmTo get the full version install it with apt or do as I did and use the binary from another pup with the full version.
Would you tell us which Puppy has the full version of tree, and maybe how big is the binary? Thanks.
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 5:33 am
by Jasper
@JusGellin
I made a PET for FossaPup64-95, your welcome to try it?
viewtopic.php?p=90697#p90697
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 10:21 am
by JusGellin
I've never added a PET before. What's the best way to do that?
Thanks
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 10:23 am
by Jasper
@JusGellin
Download the file and click on it to install it.
If it does not work, simply go to your PPM (Puppy Package Manager) and look for the Uninstall button and select the Tree.pet to remove it.
That's it, goodluck
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 10:30 am
by JusGellin
@Jasper
Great!
That was easy to add and it does work like it should.
Thanks
Re: Terminal tree Command Switches Don't Work
Posted: Thu May 02, 2024 8:28 pm
by d-pupp
I got the binary from Fossapup64. It has the full version of tree
The binary is small only 84k
I just put it in my-application bin directory. Deleted the link to busybox tree in /usr/bin and created a link to it in my-application/bin