Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #70879 > unrolled thread
| Started by | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| First post | 2025-08-13 01:16 +0000 |
| Last post | 2025-08-14 21:07 +0000 |
| Articles | 17 on this page of 77 — 20 participants |
Back to article view | Back to comp.os.linux.misc
I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-13 01:16 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-13 02:40 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-08-13 08:57 -0400
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Jason H <jason_hindle@yahoo.com> - 2025-08-14 21:05 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-15 08:37 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without John Ames <commodorejohn@gmail.com> - 2025-08-15 08:13 -0700
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-15 18:26 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-15 22:37 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-16 00:43 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-16 02:10 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-08-13 08:53 -0400
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Nuno Silva <nunojsilva@invalid.invalid> - 2025-08-14 00:45 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-14 01:09 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-08-13 11:01 -0400
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E. R." <robin_listas@es.invalid> - 2025-08-13 17:16 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-16 08:27 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-16 08:32 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without The Natural Philosopher <tnp@invalid.invalid> - 2025-08-13 17:31 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-13 21:30 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Allodoxaphobia <trepidation@example.net> - 2025-08-13 19:48 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-13 20:10 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-13 19:34 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-13 21:31 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E. R." <robin_listas@es.invalid> - 2025-08-13 23:40 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-13 23:42 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-14 01:08 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E. R." <robin_listas@es.invalid> - 2025-08-14 10:51 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-14 08:53 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-14 01:30 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-14 01:05 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Rene Kita <mail@rkta.de> - 2025-08-15 04:55 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-15 05:38 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Rene Kita <mail@rkta.de> - 2025-08-20 05:54 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-16 08:33 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Rich <rich@example.invalid> - 2025-08-16 18:28 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-16 19:05 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without The Natural Philosopher <tnp@invalid.invalid> - 2025-08-16 21:08 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-16 20:38 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-17 00:38 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Nuno Silva <nunojsilva@invalid.invalid> - 2025-08-17 09:08 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-17 09:16 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-17 22:27 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Richard Kettlewell <invalid@invalid.invalid> - 2025-08-16 22:27 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-17 00:44 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Nuno Silva <nunojsilva@invalid.invalid> - 2025-08-17 09:02 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Richard Kettlewell <invalid@invalid.invalid> - 2025-08-18 08:31 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-18 08:21 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Nuno Silva <nunojsilva@invalid.invalid> - 2025-08-22 10:18 +0100
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-19 12:06 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-20 00:50 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-20 12:20 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-20 22:16 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-23 12:22 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-24 00:38 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-08-24 11:15 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-24 22:44 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-24 22:16 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2025-08-21 11:44 +0300
Re: I?m A Linux Expert, And Here Are 6 Commands I Can?t Live Without John McCue <jmclnx@gmail.com.invalid> - 2025-08-13 21:05 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2025-08-14 14:50 +0300
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-08-14 22:45 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-08-16 00:20 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-16 02:07 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-08-19 13:40 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-16 09:47 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-08-16 17:04 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-17 00:45 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-17 07:20 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without rbowman <bowman@montana.com> - 2025-08-17 07:18 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-19 12:28 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-20 00:59 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-20 12:32 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-20 22:21 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-21 02:29 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-21 01:29 +0000
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without "Carlos E.R." <robin_listas@es.invalid> - 2025-08-21 12:46 +0200
Re: I’m A Linux Expert, And Here Are 6 Commands I Can’t Live Without Jason H <jason_hindle@yahoo.com> - 2025-08-14 21:07 +0000
Page 4 of 4 — ← Prev page 1 2 3 [4]
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-14 22:45 +0000 |
| Message-ID | <107louk$p5vg$4@dont-email.me> |
| In reply to | #71055 |
On Thu, 14 Aug 2025 14:50:06 +0300, Anssi Saari wrote: > Lawrence D'Oliveiro <ldo@nz.invalid> writes: > >> What’s an obvious omission from his list? To me, it’s the “find” >> command. > > Possibly or something like it. I just started looking into rawhide which > is another search tool. My interest is rawhide's ability to search for > tags in extended attributes. I've started adding tags to videos and > photos so I can search for those with rawhide. The “find” command has the ability to execute external commands. Those can produce output on their own, and/or their success/failure exit status can be used as a filter on matching files.
[toc] | [prev] | [next] | [standalone]
| From | candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> |
|---|---|
| Date | 2025-08-16 00:20 +0000 |
| Message-ID | <slrn109vjas.e09o.candycanearter07@candydeb.host.invalid> |
| In reply to | #71120 |
Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:45 this Thursday (GMT): > On Thu, 14 Aug 2025 14:50:06 +0300, Anssi Saari wrote: > >> Lawrence D'Oliveiro <ldo@nz.invalid> writes: >> >>> What’s an obvious omission from his list? To me, it’s the “find” >>> command. >> >> Possibly or something like it. I just started looking into rawhide which >> is another search tool. My interest is rawhide's ability to search for >> tags in extended attributes. I've started adding tags to videos and >> photos so I can search for those with rawhide. > > The “find” command has the ability to execute external commands. Those can > produce output on their own, and/or their success/failure exit status can > be used as a filter on matching files. To be fair, "find" can be a bit of a rabbithole to learn. I personally only know the basics of -name, -iname, and -type. -- user <candycane> is generated from /dev/urandom
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-16 02:07 +0000 |
| Message-ID | <107op5g$1f6pb$2@dont-email.me> |
| In reply to | #71296 |
On Sat, 16 Aug 2025 00:20:08 -0000 (UTC), candycanearter07 wrote: > Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:45 this Thursday (GMT): >> >> The “find” command has the ability to execute external commands. >> Those can produce output on their own, and/or their success/failure >> exit status can be used as a filter on matching files. > > To be fair, "find" can be a bit of a rabbithole to learn. The term for that is “deep” software: it doesn’t scare you with a whole lot of complexity up front. Instead, it offers some initial features that aren’t that hard to use, but the more you dig beneath the surface, the more capabilities you find. This is why it’s good that the man page is always handy: you can keep going back to it and discovering new things as you need them.
[toc] | [prev] | [next] | [standalone]
| From | candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> |
|---|---|
| Date | 2025-08-19 13:40 +0000 |
| Message-ID | <slrn10a8vi2.3ok1l.candycanearter07@candydeb.host.invalid> |
| In reply to | #71312 |
Lawrence D’Oliveiro <ldo@nz.invalid> wrote at 02:07 this Saturday (GMT): > On Sat, 16 Aug 2025 00:20:08 -0000 (UTC), candycanearter07 wrote: > >> Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:45 this Thursday (GMT): >>> >>> The “find” command has the ability to execute external commands. >>> Those can produce output on their own, and/or their success/failure >>> exit status can be used as a filter on matching files. >> >> To be fair, "find" can be a bit of a rabbithole to learn. > > The term for that is “deep” software: it doesn’t scare you with a > whole lot of complexity up front. Instead, it offers some initial > features that aren’t that hard to use, but the more you dig beneath > the surface, the more capabilities you find. This is why it’s good > that the man page is always handy: you can keep going back to it and > discovering new things as you need them. Well yeah, but the "basic" usage still requires a few switches, and its not outlined in examples. I'm not surprised those "important linux commands" lists were too lazy to provide that info. -- user <candycane> is generated from /dev/urandom
[toc] | [prev] | [next] | [standalone]
| From | rbowman <bowman@montana.com> |
|---|---|
| Date | 2025-08-16 09:47 +0000 |
| Message-ID | <mgb2d0FacatU19@mid.individual.net> |
| In reply to | #71296 |
On Sat, 16 Aug 2025 00:20:08 -0000 (UTC), candycanearter07 wrote: > To be fair, "find" can be a bit of a rabbithole to learn. I personally > only know the basics of -name, -iname, and -type. There are many things that are like the trails rabbits make in the grass. After pioneering my trails I stick with them because they do what I want and don't go exploring. I've used Vim for years, have the Vim book, and know I use about 1% of its capabilities. If I stray from my trails, like trying to show line numbers, I have to look it up. I know I can do a horizontal split but I only do vertical splits so I'd have to look that up too.
[toc] | [prev] | [next] | [standalone]
| From | Charlie Gibbs <cgibbs@kltpzyxm.invalid> |
|---|---|
| Date | 2025-08-16 17:04 +0000 |
| Message-ID | <BS2oQ.36972$CQJe.21136@fx14.iad> |
| In reply to | #71363 |
On 2025-08-16, rbowman <bowman@montana.com> wrote: > I've used Vim for years, have the Vim book, and know I use about 1% of its > capabilities. If I stray from my trails, like trying to show line numbers, > I have to look it up. I know I can do a horizontal split but I only do > vertical splits so I'd have to look that up too. Occasionally I'll find I have enough use for something to take the time to learn it. My most recent one with vim is /\<foo\>, which finds "foo" only if it's an entire word (like grep's -w option). -- /~\ Charlie Gibbs | Growth for the sake of \ / <cgibbs@kltpzyxm.invalid> | growth is the ideology X I'm really at ac.dekanfrus | of the cancer cell. / \ if you read it the right way. | -- Edward Abbey
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-17 00:45 +0000 |
| Message-ID | <107r8nb$20k71$8@dont-email.me> |
| In reply to | #71402 |
On Sat, 16 Aug 2025 17:04:33 GMT, Charlie Gibbs wrote: > On 2025-08-16, rbowman <bowman@montana.com> wrote: > >> I've used Vim for years, have the Vim book, and know I use about 1% >> of its capabilities. If I stray from my trails, like trying to show >> line numbers, I have to look it up. I know I can do a horizontal >> split but I only do vertical splits so I'd have to look that up >> too. > > Occasionally I'll find I have enough use for something to take the > time to learn it. My most recent one with vim is /\<foo\>, which > finds "foo" only if it's an entire word (like grep's -w option). Vim is to text editors what PHP is to programming languages.
[toc] | [prev] | [next] | [standalone]
| From | rbowman <bowman@montana.com> |
|---|---|
| Date | 2025-08-17 07:20 +0000 |
| Message-ID | <mgde6qFmi6tU11@mid.individual.net> |
| In reply to | #71425 |
On Sun, 17 Aug 2025 00:45:31 -0000 (UTC), Lawrence D’Oliveiro wrote: > On Sat, 16 Aug 2025 17:04:33 GMT, Charlie Gibbs wrote: > >> On 2025-08-16, rbowman <bowman@montana.com> wrote: >> >>> I've used Vim for years, have the Vim book, and know I use about 1% >>> of its capabilities. If I stray from my trails, like trying to show >>> line numbers, I have to look it up. I know I can do a horizontal split >>> but I only do vertical splits so I'd have to look that up too. >> >> Occasionally I'll find I have enough use for something to take the time >> to learn it. My most recent one with vim is /\<foo\>, which finds "foo" >> only if it's an entire word (like grep's -w option). > > Vim is to text editors what PHP is to programming languages. I likle Vim. I do not like Personal Home Page. That should have stayed with Aunt Bea hacking together her website.
[toc] | [prev] | [next] | [standalone]
| From | rbowman <bowman@montana.com> |
|---|---|
| Date | 2025-08-17 07:18 +0000 |
| Message-ID | <mgde1gFmi6tU10@mid.individual.net> |
| In reply to | #71402 |
On Sat, 16 Aug 2025 17:04:33 GMT, Charlie Gibbs wrote:
> On 2025-08-16, rbowman <bowman@montana.com> wrote:
>
>> I've used Vim for years, have the Vim book, and know I use about 1% of
>> its capabilities. If I stray from my trails, like trying to show line
>> numbers,
>> I have to look it up. I know I can do a horizontal split but I only do
>> vertical splits so I'd have to look that up too.
>
> Occasionally I'll find I have enough use for something to take the time
> to learn it. My most recent one with vim is /\<foo\>, which finds "foo"
> only if it's an entire word (like grep's -w option).
I've used that for a long time. It's an easy one to remember. <Shift>* on
a word searches for the word. If you look at the bottom you'll see
/\<printf\> if that's what the * search was. That only seems to work if
there is more than one.
else if (strcmp(el, "ele") == 0) {
If I search on \<ele\> it finds it. Using * says 'search hit BOTTOM,
continuing at TOP ' In any case it doesn't find last_elevation, ele_text,
elevation, min_elevation and so forth that /ele does.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-08-19 12:28 +0200 |
| Message-ID | <180enlxc26.ln2@Telcontar.valinor> |
| In reply to | #71296 |
On 2025-08-16 02:20, candycanearter07 wrote:
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:45 this Thursday (GMT):
>> On Thu, 14 Aug 2025 14:50:06 +0300, Anssi Saari wrote:
>>
>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>
>>>> What’s an obvious omission from his list? To me, it’s the “find”
>>>> command.
>>>
>>> Possibly or something like it. I just started looking into rawhide which
>>> is another search tool. My interest is rawhide's ability to search for
>>> tags in extended attributes. I've started adding tags to videos and
>>> photos so I can search for those with rawhide.
>>
>> The “find” command has the ability to execute external commands. Those can
>> produce output on their own, and/or their success/failure exit status can
>> be used as a filter on matching files.
>
>
> To be fair, "find" can be a bit of a rabbithole to learn. I personally
> only know the basics of -name, -iname, and -type.
I have forgotten how to use find, I use it so few times. So instead of
learning again, when I need to use it, I use chatgpt to concoct the line
for me :-P
The other day I wanted to search a machine to find files created between
certain dates:
Laicolasse:~ # time find / -type d -newermt "2025-07-28" \
! -newermt "2025-07-31" 2>/dev/null | tee busqueda
^C
real 26m14.066s
user 0m3.725s
sys 1m5.634s
Laicolasse:~ #
Took way too long for a laptop with M2 disk. It was faster on other
machines.
Turned out that an automount was happening of an external nfs mount on
"/mnt/nfs/Isengard/xfsRaid/", and that raid is big and slow, the search
took for ever.
I did not want to do a refresher course on "find" again.
With the aid of chatgpt I came with:
# find / \( -path /mnt/nfs/Isengard/xfsRaid/ \) -prune \
-o -type d -newermt "2025-07-28" ! -newermt "2025-07-31" \
2>/dev/null | tee busqueda
But did not work, the directory was mounted again and scanned. I then
deleted the automount line from fstab:
#Isengard.valinor:/data/xfsRaid/ /mnt/nfs/Isengard/xfsRaid \
nfs4 noauto,nofail,x-systemd.automount,\
x-systemd.idle-timeout=300,_netdev,user,users,lazytime 0 0
But did not work because systemd has a memory (automatic mount units)
and still automounted the directory.
So what did I do?
Stop the network!
Brute force approach.
In retrospect, I should have used:
Laicolasse:~ # time find / \( -path /mnt/nfs/Isengard/ \) \
-prune -o -type d -newermt "2025-07-28" ! -newermt \
"2025-07-31" 2>/dev/null | tee busqueda
...
real 0m3.035s
user 0m0.836s
sys 0m2.180s
Laicolasse:~ #
--
Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-20 00:59 +0000 |
| Message-ID | <10836l3$1m96$10@dont-email.me> |
| In reply to | #71641 |
On Tue, 19 Aug 2025 12:28:49 +0200, Carlos E.R. wrote: > Laicolasse:~ # time find / -type d -newermt "2025-07-28" \ > ! -newermt "2025-07-31" 2>/dev/null | tee busqueda I never knew about -newermt. Why? Because it’s not listed in the man page, though it is documented in the info file. Nope. Scratch that. It *is* documented in the man page, in the form of “- newerXY” with explanations of what “X” and “Y” can be. > Turned out that an automount was happening of an external nfs mount on > "/mnt/nfs/Isengard/xfsRaid/", and that raid is big and slow, the search > took for ever. Wouldn’t “-xdev” (“don’t descend directories on other filesystems”) have fixed that?
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-08-20 12:32 +0200 |
| Message-ID | <gqkgnlxbst.ln2@Telcontar.valinor> |
| In reply to | #71695 |
On 2025-08-20 02:59, Lawrence D’Oliveiro wrote:
> On Tue, 19 Aug 2025 12:28:49 +0200, Carlos E.R. wrote:
>
>> Laicolasse:~ # time find / -type d -newermt "2025-07-28" \
>> ! -newermt "2025-07-31" 2>/dev/null | tee busqueda
>
> I never knew about -newermt. Why? Because it’s not listed in the man page,
> though it is documented in the info file.
>
> Nope. Scratch that. It *is* documented in the man page, in the form of “-
> newerXY” with explanations of what “X” and “Y” can be.
>
>> Turned out that an automount was happening of an external nfs mount on
>> "/mnt/nfs/Isengard/xfsRaid/", and that raid is big and slow, the search
>> took for ever.
>
> Wouldn’t “-xdev” (“don’t descend directories on other filesystems”) have
> fixed that?
But I need to scan both root and home, which are separate filesystems.
I just saw:
-xautofs
Don't descend directories on autofs filesystems.
which I have tested now and works! I feared it might work with the
classic automount but not with systemd. It does work. Nice!
--
Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-20 22:21 +0000 |
| Message-ID | <1085hos$j3am$7@dont-email.me> |
| In reply to | #71744 |
On Wed, 20 Aug 2025 12:32:16 +0200, Carlos E.R. wrote: > On 2025-08-20 02:59, Lawrence D’Oliveiro wrote: > >> Wouldn’t “-xdev” (“don’t descend directories on other filesystems”) >> have fixed that? > > But I need to scan both root and home, which are separate filesystems. I was going to say, explicitly list both / and /home (and whatever else) as directories to search in, with -xdev to avoid entering any other mount points, but ... > I just saw: > > -xautofs > Don't descend directories on autofs filesystems. > > > which I have tested now and works! I feared it might work with the > classic automount but not with systemd. It does work. Nice! ... that is probably simpler. ;) However, it’s not present on my “find” version (findutils 4.10.0-3, part of Debian Unstable as of last month).
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-08-21 02:29 +0200 |
| Message-ID | <5t5inlx3vr.ln2@Telcontar.valinor> |
| In reply to | #71796 |
On 2025-08-21 00:21, Lawrence D’Oliveiro wrote: > On Wed, 20 Aug 2025 12:32:16 +0200, Carlos E.R. wrote: > >> On 2025-08-20 02:59, Lawrence D’Oliveiro wrote: >> >>> Wouldn’t “-xdev” (“don’t descend directories on other filesystems”) >>> have fixed that? >> >> But I need to scan both root and home, which are separate filesystems. > > I was going to say, explicitly list both / and /home (and whatever else) > as directories to search in, with -xdev to avoid entering any other mount > points, but ... > >> I just saw: >> >> -xautofs >> Don't descend directories on autofs filesystems. >> >> >> which I have tested now and works! I feared it might work with the >> classic automount but not with systemd. It does work. Nice! > > ... that is probably simpler. ;) > > However, it’s not present on my “find” version (findutils 4.10.0-3, part > of Debian Unstable as of last month). Wow. And I'm using openSUSE Leap 15.6, which has ancient versions of almost everything. Telcontar:~ # rpm -q findutils findutils-4.8.0-150300.3.3.2.x86_64 Weird. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2025-08-21 01:29 +0000 |
| Message-ID | <1085spv$lm3h$1@dont-email.me> |
| In reply to | #71804 |
On Thu, 21 Aug 2025 02:29:57 +0200, Carlos E.R. wrote: > On 2025-08-21 00:21, Lawrence D’Oliveiro wrote: >> >> However, it’s not present on my “find” version (findutils 4.10.0-3, >> part of Debian Unstable as of last month). > > Wow. And I'm using openSUSE Leap 15.6, which has ancient versions of > almost everything. > > Telcontar:~ # rpm -q findutils > findutils-4.8.0-150300.3.3.2.x86_64 > > Weird. The patch is actually older than that, dating from 2009 <http://fedora.riscv.rocks:3000/rpms/findutils/commit/29ef88d6c3ded9300b7c0c1b1a29321b287cab7a?style=unified&whitespace=ignore-all&show-outdated=>. But it looks like it was never upstreamed into the GNU version <https://www.gnu.org/software/findutils/manual/html_mono/find.html>.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-08-21 12:46 +0200 |
| Message-ID | <a1ajnlxrmn.ln2@Telcontar.valinor> |
| In reply to | #71805 |
On 2025-08-21 03:29, Lawrence D’Oliveiro wrote: > On Thu, 21 Aug 2025 02:29:57 +0200, Carlos E.R. wrote: > >> On 2025-08-21 00:21, Lawrence D’Oliveiro wrote: >>> >>> However, it’s not present on my “find” version (findutils 4.10.0-3, >>> part of Debian Unstable as of last month). >> >> Wow. And I'm using openSUSE Leap 15.6, which has ancient versions of >> almost everything. >> >> Telcontar:~ # rpm -q findutils >> findutils-4.8.0-150300.3.3.2.x86_64 >> >> Weird. > > The patch is actually older than that, dating from 2009 > <http://fedora.riscv.rocks:3000/rpms/findutils/commit/29ef88d6c3ded9300b7c0c1b1a29321b287cab7a?style=unified&whitespace=ignore-all&show-outdated=>. > But it looks like it was never upstreamed into the GNU version > <https://www.gnu.org/software/findutils/manual/html_mono/find.html>. So, little mystery solved :-) -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Jason H <jason_hindle@yahoo.com> |
|---|---|
| Date | 2025-08-14 21:07 +0000 |
| Message-ID | <107lj75$o1j0$1@dont-email.me> |
| In reply to | #70879 |
On 13/08/2025 02:16, Lawrence D'Oliveiro wrote: ><https://www.zdnet.com/article/im-a-linux-expert-and-here-are-6-commands-i-cant-live-without/> > >What’s an obvious omission from his list? To me, it’s the “find” >command. I have millions of files on my main machine (quite literally, >I would say), and it is the most convenient and powerful way of >finding something I might have worked on years ago, and mostly >forgotten about since then. > >(Which is a lot of things.) Things like sed, vim, awk and ex for me. -- -- A PICKER OF UNCONSIDERED TRIFLES
[toc] | [prev] | [standalone]
Page 4 of 4 — ← Prev page 1 2 3 [4]
Back to top | Article view | comp.os.linux.misc
csiph-web