this post was submitted on 26 Jan 2025
761 points (96.6% liked)

linuxmemes

22069 readers
1441 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    Clarification: Just making fun of people(including myself) who watch shitty videos instead of official documentation.

    top 50 comments
    sorted by: hot top controversial new old
    [–] thuhtoosan@programming.dev 2 points 1 hour ago

    I mostly use Tealdear but --help works well when Tealdear gets too simplified.

    [–] noxypaws@pawb.social 18 points 5 hours ago (1 children)

    Man pages fucking suck, and I say that having been working with linux full time professionally for 11 years.

    The best ones have plenty of examples.

    [–] Raptorox@sh.itjust.works 5 points 5 hours ago

    How about using tealdeer?

    [–] zarkanian@sh.itjust.works 13 points 5 hours ago

    Man pages are for reference, not learning.

    [–] pirrrrrrrr@lemmy.dbzer0.com 3 points 4 hours ago

    Man pages suck ass. But not as much as fucking YouTube tutorials.

    Can someone just write a nice plain English instruction page?

    [–] lambda@programming.dev 4 points 5 hours ago

    I'm in this image and I don't like it.

    [–] ekZepp@lemmy.world 9 points 9 hours ago

    To be fair we do the same with windows.

    [–] captain_aggravated@sh.itjust.works 32 points 14 hours ago (2 children)

    Man pages are useful references but go ahead and learn how to use sed or awk from their man pages.

    [–] leisesprecher@feddit.org 14 points 10 hours ago (1 children)

    Yep.

    That's what the RTFM folks don't seem to understand: if you didn't even know, what you're looking for, you can't look it up.

    [–] sfxrlz@lemmy.world 5 points 9 hours ago (2 children)

    This in general is the main reason for the ai surge. Just dump the 2 sentence explanation into a prompt and hope something sensible comes from it rather than googling for half an hour.

    [–] Petter1@lemm.ee 3 points 6 hours ago (1 children)

    No, make it like this:

    I have a problem with program x. Please tell me how i do y if I want z. Use this man page for reference:

    [insert man page into promt py copy paste]

    This gives way better results.

    [–] TangledHyphae@lemmy.world 3 points 5 hours ago (1 children)

    Most of the time you don't have to insert the man page, it's already baked into the neural network model and filling the context window sometimes gives worse results.

    [–] DampCanary@lemmy.world 3 points 4 hours ago

    I noticed that mentioning commands you want gives good results e.g.:

    Hi,
    I want to replace line with HOSTTOOLS += " svn"
    in all layer.conf files under current directory
    by using find and sed commands.

    If it's more complicated, pasting parial scrript for LLM to finish gave better results (4 me),
    than pure prompt text.

    [–] leisesprecher@feddit.org 3 points 9 hours ago

    At least for programming/Linux stuff, it often enough actually does deliver keywords, that you can use as jumping off points. The proposed solutions however....

    [–] double_quack@lemm.ee 4 points 12 hours ago
    [–] WhosMansIsThis@lemmy.sdf.org 13 points 14 hours ago (1 children)

    Some mans are unreadable. I've been curling cheat.sh/[command] and its been great for example commands. Highly recommend.

    [–] SoulKaribou@lemmy.ml 3 points 5 hours ago

    I also like tldr for new commands. Sometimes I discover new ways by using it on the commands I know...

    [–] bluewing@lemm.ee 11 points 14 hours ago (1 children)

    After many years of tiptoeing through the distros, from RedHat 5 and Mandrake6 to Slack to Gentoo and now Fedora 41. The last thing I want anymore is to need to go RTFM.

    I don't want to open a terminal to compile anything, (I got stacks of tee shirts), or goggle, (yes goggle), to make things work. I'm too old for this crap and I don't have that much longer to live wasting my short time remaining staring at a terminal and reading man pages. Distros and Linux by extension should "just work" in 2025. And thankfully they do-- most of the time.

    You want to be a Sysadmin and a cmd line commando, have at it. I'm peacing out.

    Now if only GUIs could be called and worked telepathically. Or better yet, fix any problems before they happen without me even knowing about it.

    [–] leisesprecher@feddit.org 3 points 10 hours ago

    That's one of the reasons why I prefer to run older, enterprise hardware.

    There's a good chance, everything has been configured before and most distros work just fine without any tweaking.

    I want a stable platform to work on, not another hobby.

    [–] Kusimulkku@lemm.ee 56 points 20 hours ago (1 children)

    You ask someone for instructions

    They send you some bullshit 10 minutes long video

    Now instead of ctrl+f or skimming the article and jumping where you want to go you need to jump around in a video

    REEEE

    [–] lurklurk@lemmy.world 1 points 33 minutes ago

    I have a theory a lot of people are functionally illiterate and thus prefer videos as they can't skim well

    [–] psyklax@lemmy.dbzer0.com 45 points 20 hours ago (2 children)

    You're not a real linux user unless you've read the source because the documentation was inadequate.

    [–] deaf_fish@lemm.ee 12 points 15 hours ago

    For those that didn't pick it up, this is sarcasm

    [–] nekbardrun@lemmy.world 4 points 14 hours ago (1 children)

    I'd say that only those who manage to write a kernel code that doesn't upset Linus Torvald are true linux users.

    [–] InnerScientist@lemmy.world 14 points 14 hours ago

    Even Linus Trovald writes kernel code that Linus Trovald doesn't like.

    [–] thezeesystem@lemmy.blahaj.zone 91 points 23 hours ago (6 children)

    Man pages are for people who already know a lot about Linux and understand all the nuances and understanding of Linux

    Even after using Linux for many many years I still don't understand wtf nearly all man pages mean. It's like a fucking codex. It needs to be simplified but not to the extreme where it doesn't give you information you need to understand it.

    Tbh that's most of Linux, not designed for average people, designed by Linux users who think that all others should know everything about Linux.

    [–] grrgyle@slrpnk.net 7 points 15 hours ago

    Tbh a lot of man pages don't even give you enough usage information to make full use of a package. I'm thinking of the ones which are like an extended --help block

    [–] QuazarOmega@lemy.lol 30 points 21 hours ago (1 children)
    [–] joytoy@discuss.online 13 points 20 hours ago (1 children)

    I’d like to add apropos to this as well.

    [–] Caboose12000@lemmy.world 3 points 4 hours ago

    my favorite is tealdeer!

    [–] wols@lemm.ee 12 points 19 hours ago

    They also usually assume a lot about the users' knowledge of the domain of the program itself.

    In my experience, many programs' man/help is very brief, often a sentence or less per command/flag, with 2 or more terms that don't mean anything to the uninitiated. Also, even when I think I know all the words, the descriptions are not nearly precise enough to confidently infer what exactly the program is going to do.
    Disclaimers for potentially dangerous/irreversible actions are also often lacking.

    Which is why I almost always look for an article that explains a command using examples, instead of trying to divine what the manual authors had in mind.

    load more comments (3 replies)
    [–] mlg@lemmy.world 55 points 23 hours ago (4 children)

    "How do I do X in linux?"

    "Yeah so basically you just need to run this command and it should work on Ubuntu 12.10 (Last edited: Nov 2012)"

    "Hey guys the way to do X changed in Ubuntu 16.04, see this updated link (Posted: Jan 2017)"

    "Actually Ubuntu 18.04 is now using Y so you have to follow this new guide (Last edited: Jul 2019)"

    "~~Crossed-out outdated guide~~

    For Ubuntu 22, please reference this Canonical guide here. All other distros can simply use Z (Last edited: Aug, 2022)"

    "404 not found (Canonical)"


    "How do I do X in Debian?"

    "You can run Z to do X (Posted: Oct 2013)"

    "Thanks for this, it worked! (Posted: Sep 2023)"


    "How do I do X in Fedora?"

    "Ah just follow this wiki (Posted: Feb 2014)"

    "(Wiki last update: Mar 2023)"


    "How do I do X In Arch?"

    "RTFM lmao: link to arch wiki (Posted: May 2017)"

    "(Wiki last update: 3 minutes ago)"

    [–] durfenstein@lemmy.world 2 points 8 hours ago

    "How to do X on Y?" "Why would you ever want to do X? Do Z instead!"

    load more comments (3 replies)
    [–] Kazumara@discuss.tchncs.de 20 points 20 hours ago (1 children)

    I really like the man pages for commands that have examples of some common usage at the bottom, that gets you kickstarted and you can just adapt your own command from the example.

    [–] rImITywR@lemmy.world 28 points 20 hours ago (1 children)
    load more comments (1 replies)
    [–] tdawg@lemmy.world 70 points 1 day ago* (last edited 1 day ago) (6 children)

    Man pages are literally indecipherable as a newby

    [–] lightnsfw@reddthat.com 44 points 1 day ago (7 children)

    I just wish they'd put some damn usage examples in there. I usually just need to do one thing I don't need a dissertation about it.

    [–] superkret@feddit.org 11 points 19 hours ago* (last edited 19 hours ago)

    Install tealdeer. Then instead of man programname type tldr programname.

    load more comments (6 replies)
    cht () {
        curl cht.sh/$1
    }
    

    You can stick this in your .bashrc or .bash_profile. Then just do cht <command to use> and it'll give you the most relevant info to use the command.

    Ie. cht tar

    load more comments (4 replies)
    [–] TimeSquirrel@kbin.melroy.org 66 points 1 day ago (5 children)

    Copypastes every terminal command string from every forum post they see, hoping one of them fixes the problem

    load more comments (5 replies)
    [–] silverchase@sh.itjust.works 43 points 1 day ago (4 children)

    Free tech tip: https://cht.sh/ serves practical, usage-focused help on common command-line tasks. You can visit the website, or even better, curl for what you want.

    $ curl cht.sh/touch
    

    gets you this:

     cheat:touch 
    # To change a file's modification time:
    touch -d <time> <file>
    touch -d 12am <file>
    touch -d "yesterday 6am" <file>
    touch -d "2 days ago 10:00" <file>
    touch -d "tomorrow 04:00" <file>
    
    # To put the timestamp of a file on another:
    touch -r <refrence-file> <target-file>
    

    Append with ~ and a word to show only help containing that word:

    $ curl cht.sh/zstd~compress
    

    Result:

     tldr:zstd 
    # zstd
    # Compress or decompress files with Zstandard compression.
    # More information: <https://github.com/facebook/zstd>.
    
    # Decompress a file:
    zstd -d path/to/file.zst
    
    # Decompress to `stdout`:
    zstd -dc path/to/file.zst
    
    # Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:
    zstd -level path/to/file
    
    # Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
    zstd --ultra -level path/to/file
    

    For more usage tips, curl cht.sh/:help.

    load more comments (4 replies)
    load more comments
    view more: next β€Ί