this post was submitted on 26 Jan 2025
864 points (96.7% liked)

linuxmemes

22069 readers
1767 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.

    (page 2) 50 comments
    sorted by: hot top controversial new old
    [–] TimeSquirrel@kbin.melroy.org 66 points 2 days ago (4 children)

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

    [–] 299792458ms@lemmy.zip 39 points 2 days ago (1 children)
    bash: common-sense: command not found
    
    [–] lurch@sh.itjust.works 7 points 1 day ago

    maybe installing fortune will help

    [–] Kusimulkku@lemm.ee 1 points 1 day ago

    These are the same people who later on complain about Linux being shit because it just breaks

    load more comments (2 replies)
    [–] Kazumara@discuss.tchncs.de 21 points 1 day ago (2 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.

    load more comments (2 replies)
    [–] silverchase@sh.itjust.works 44 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.

    [–] jrgn@lemmy.world 14 points 1 day ago

    Nice! Just gonna piggyback and recommend https://tldr.sh/ too. I use it all the time!

    This definitely needs an alias overriding man lol

    [–] Benjaben@lemmy.world 4 points 1 day ago

    You just blew my MF mind.

    load more comments (1 replies)
    [–] Bishma@discuss.tchncs.de 34 points 2 days ago (3 children)

    I've gotten in the dumbfounding habit of searching man <program> on the web instead of in the terminal I'm already typing in.

    [–] 299792458ms@lemmy.zip 13 points 1 day ago* (last edited 1 day ago) (1 children)

    Sometimes I try to quit my browser with :q or try to send emails with :wq

    That's a browser extension worth building

    [–] forrgott@lemm.ee 7 points 1 day ago

    Dude. Warn me before saying something like that. I'm too high for this... Lol

    load more comments (1 replies)
    [–] ztwhixsemhwldvka@lemmy.world 18 points 1 day ago (3 children)

    Same outcome even if you read man pages

    [–] trucy@lemmy.dbzer0.com 12 points 1 day ago

    A lot of man pages suck ass.

    Except openBSD ones, they should be the standard of quality for user documentation.

    load more comments (2 replies)
    [–] kittenzrulz123@lemmy.blahaj.zone 18 points 1 day ago (2 children)

    Consider this, nearly every major distro (and some minor distros like Alpine) has a wiki (or is based on a Distro that does).

    [–] IceFoxX@lemm.ee 14 points 1 day ago (1 children)

    Thihi and sooner or later they all end up at the arch linux wikis.

    [–] HotCoffee@lemm.ee 3 points 1 day ago (2 children)

    True but if you're distro offers a good enough user experience then you won't be spending nearly as much time in docs, as opposed to just enjoying your desktop.

    Being for more "technical people" is just a lame excuse for bad UX.

    load more comments (2 replies)
    [–] NaibofTabr@infosec.pub 10 points 2 days ago

    If you want to really learn what you're doing, try info coreutils

    [–] Draegur@lemm.ee 7 points 1 day ago (4 children)

    what the fuck is a man page

    [–] sundrei@lemmy.sdf.org 7 points 1 day ago
    [–] festnt@sh.itjust.works 4 points 1 day ago (2 children)

    something related to mansplaining... /s

    its a giant wall of text i have never used that can be opened with the terminal command man <othercommand> where is literally any other command

    load more comments (2 replies)
    load more comments (2 replies)
    [–] cm0002@lemmy.world 7 points 1 day ago

    Don't forget the HEAVY Indian accent

    load more comments
    view more: β€Ή prev next β€Ί