Terminal tree Command Switches Don't Work (solved)

Moderator: Forum moderators

Post Reply
JusGellin
Posts: 185
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 13 times
Been thanked: 23 times

Terminal tree Command Switches Don't Work (solved)

Post 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

Last edited by bigpup on Fri May 03, 2024 12:37 pm, edited 2 times in total.
Reason: added solved
geo_c
Posts: 2504
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 1800 times
Been thanked: 707 times

Re: Terminal tree Command Switches Don't Work

Post 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.

geo_c
Old School Hipster, and Such

JusGellin
Posts: 185
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 13 times
Been thanked: 23 times

Re: Terminal tree Command Switches Don't Work

Post 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

williwaw
Posts: 1608
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 293 times

Re: Terminal tree Command Switches Don't Work

Post 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

d-pupp
Posts: 192
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 91 times
Been thanked: 40 times

Re: Terminal tree Command Switches Don't Work

Post 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.

JusGellin
Posts: 185
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 13 times
Been thanked: 23 times

Re: Terminal tree Command Switches Don't Work

Post 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.

User avatar
Flash
Moderator
Posts: 900
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: Terminal tree Command Switches Don't Work

Post by Flash »

d-pupp wrote: Wed May 01, 2024 7:29 pm

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.

Would you tell us which Puppy has the full version of tree, and maybe how big is the binary? Thanks. :)

Chaos coordinator :?
User avatar
Jasper
Posts: 1606
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 688 times
Been thanked: 361 times

Re: Terminal tree Command Switches Don't Work

Post by Jasper »

@JusGellin

I made a PET for FossaPup64-95, your welcome to try it?

viewtopic.php?p=90697#p90697

JusGellin
Posts: 185
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 13 times
Been thanked: 23 times

Re: Terminal tree Command Switches Don't Work

Post by JusGellin »

Jasper wrote: Thu May 02, 2024 5:33 am

@JusGellin

I made a PET for FossaPup64-95, your welcome to try it?

viewtopic.php?p=90697#p90697

I've never added a PET before. What's the best way to do that?
Thanks

User avatar
Jasper
Posts: 1606
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 688 times
Been thanked: 361 times

Re: Terminal tree Command Switches Don't Work

Post 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 :thumbup:

JusGellin
Posts: 185
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 13 times
Been thanked: 23 times

Re: Terminal tree Command Switches Don't Work

Post by JusGellin »

@Jasper
Great!
That was easy to add and it does work like it should.
Thanks

d-pupp
Posts: 192
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 91 times
Been thanked: 40 times

Re: Terminal tree Command Switches Don't Work

Post 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

Post Reply

Return to “BookwormPup”