this post was submitted on 21 Oct 2023
40 points (93.5% liked)

Linux

48245 readers
512 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi,

I saw there https://askubuntu.com/questions/9325/what-is-the-difference-between-man-and-info-documentation that info is "better" than man because is outdated. Still right in 2023 ?

top 20 comments
sorted by: hot top controversial new old
[–] SpicySquid@lemmy.ml 38 points 1 year ago (1 children)

Well.. I guess I have been living under a rock. Today is the first time to have heard of info. I have been using man for well over 2 decades now.

[–] palordrolap@kbin.social 8 points 1 year ago (1 children)

Surprising you haven't come across a man page that basically says "We couldn't be bothered putting everything in here, check out the info page on it instead."

I feel like I find myself on one of those every 6 months or so.

[–] BaumGeist@lemmy.ml 1 points 1 year ago

That's funny, I had the opposite experience. When I found out that info was the GNU projects recommended way of documentation, I was all on board. Then I tried using it, and it couldn't find most CLI software I used. So I downloaded the texinfo archives... and that still lacked probably 50% of the commands I tried to look up.

Then I searched up how to get info pages for this or that tool, and someone on StackOverflow had said that it was woefully incomplete and outdated at this point.

I think I'll give it another try and report back

[–] kevin@mander.xyz 30 points 1 year ago* (last edited 1 year ago) (1 children)

9 times out of 10, what I want is tldr (https://tldr.sh/). There are a bunch of terminal interfaces for it, I use tealdeer.

[–] stepanzak@iusearchlinux.fyi 13 points 1 year ago (1 children)

Please remove the exclamation mark before your link, you are making it an image that obviously can't be loaded.

[–] kevin@mander.xyz 6 points 1 year ago

Oops, thanks for the heads up! No idea where that came from

[–] glad_cat@lemmy.sdf.org 17 points 1 year ago (1 children)

Info is supposedly more modern, like a website. But it’s unusable and as annoying as emacs. Man is good enough.

[–] mosthated@feddit.nl 5 points 1 year ago (2 children)
[–] folkrav@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

You can find something annoying and not hate it. Linux itself is annoying in so many ways, yet I love it.

[–] glad_cat@lemmy.sdf.org 3 points 1 year ago

I love emacs and I used it a lot with org-mode, but you need weeks to master it, and it's a PITA to configure.

[–] Railcar8095@lemm.ee 14 points 1 year ago

One offers info, the other mansplains /S

[–] iusearchbtw@lemmy.sdf.org 10 points 1 year ago

man is standard Unix manual pages, while info is a documentation format introduced/popularised by GNU. info pages usually have a lot more information (sometimes including tutorials, guided examples, links to different pages and sections, etc (depending on the project maintainer obviously)) but man pages are the standard and basically everything has one. If you run info [program] for something without a dedicated info page, it will show the man page instead.

[–] macallik@kbin.social 8 points 1 year ago

My impression
tldr/cheat: Explains most popular arguments using as little words as possible
man: Explains the entire command using a more technical tone
info: Explains the entire command in slightly more informal tone. Can feel wordier as a result, but on the flipside it connects alternative/related commands in a logical way

[–] trachemys@iusearchlinux.fyi 8 points 1 year ago (1 children)

I completely forgot about info.

[–] recarsion@discuss.tchncs.de 8 points 1 year ago (2 children)

There's also whatis for short summaries

[–] aquasteel@lemmygrad.ml 5 points 1 year ago (1 children)

And don't forget apropos. I can't remember what it does, though.

[–] ScottE@lemm.ee 4 points 1 year ago

It's just the same thing as man -k.

[–] netchami@sh.itjust.works 0 points 1 year ago

I've been using this one pretty often lately

[–] tdawg@lemmy.world 1 points 1 year ago (1 children)

Personally I’m a fan of cheat.sh

For instance to get info on curl you can:

curl cheat.sh/curl
[–] folkrav@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

I since switched to tldr (for the offline/caching functionality, I think?), but for the longest time I just used a wrapper function that did exactly this in my shell configuration. Something a bit like this:

function cheatsh() { 
    curl cheat.sh/"\$1" 
}