Your top 10 commands - Desktop Customization & Workflow

Users browsing this thread: 2 Guest(s)
seninha
Long time nixers
(15-10-2021, 02:26 AM)z3bra Wrote: That's funny to see you use tree rather than ls. isn't it too verbose when you got a lot of subdirectories ? do you pipe it to less then ?

The function I wrote defaults to depth 1 (no subdirectories), but I can call it with the option -2 to list contents of subdirectories, -3 to list content of subdirectories up to depth 3, etc. Or -0 to recursively list at infinite depth. So there's no need to pipe to less, since the default output is not recursive.

The function also has find(1) functionalities. If I give it an argument, it looks for a file named as the argument in the filesystem up to the depth I specify.

The function also lists in the long format, so I get the size of the files and their permissions.

ls -Rl and find -iname in a single command!


Messages In This Thread
Your top 10 commands - by seninha - 14-10-2021, 11:10 PM
RE: Your top 10 commands - by z3bra - 15-10-2021, 02:26 AM
RE: Your top 10 commands - by tuxifreund - 15-10-2021, 02:52 AM
RE: Your top 10 commands - by ols - 15-10-2021, 06:36 AM
RE: Your top 10 commands - by dionys - 15-10-2021, 08:13 AM
RE: Your top 10 commands - by seninha - 15-10-2021, 08:39 AM
RE: Your top 10 commands - by freem - 15-10-2021, 01:07 PM
RE: Your top 10 commands - by humky - 19-10-2021, 07:59 PM
RE: Your top 10 commands - by venam - 20-10-2021, 05:48 AM
RE: Your top 10 commands - by z3bra - 20-10-2021, 02:39 PM
RE: Your top 10 commands - by freem - 22-10-2021, 11:52 AM
RE: Your top 10 commands - by humky - 22-10-2021, 03:42 PM
RE: Your top 10 commands - by z3bra - 25-10-2021, 05:47 AM
RE: Your top 10 commands - by humky - 25-10-2021, 10:48 AM
RE: Your top 10 commands - by VMS - 28-02-2022, 11:48 AM
RE: Your top 10 commands - by venam - 01-03-2022, 06:04 AM
RE: Your top 10 commands - by VMS - 01-03-2022, 02:50 PM
RE: Your top 10 commands - by jkl - 05-03-2022, 10:27 AM
RE: Your top 10 commands - by Hatbox - 05-03-2022, 01:08 PM