this post was submitted on 16 Aug 2025
55 points (92.3% liked)
Linux
9902 readers
846 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Probably not, but to give an easy example:
Here,
lsdoesn't just return a string representing directory content as text, but a table where each file is an entry with attributes that have their own data type (e.g.sizeisFilesizewhilemodifiedisDatetime). That's why I'm able to filter based on one of them; that part isn't part ofls, but of the shell itself. In a classic shell, this filtering would need to be handled in the originating binary in its own specific way, or you'd need to parse its output, transform it using tools likesedandawketc. This here is a special case becauselsis built into the shell; for non-builtin commands, if they offer it, you can have them output structured data as json or something else and read it into nu, likeIt's kind of cool, but I don't need it that often either, so I just play around with it when I feel like it.
Interesting, thank you very much for taking the time to explain 😊