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.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] 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.

    This is cool. Thanks for sharing it.