refugee from lemmy.sdf.org

  • 0 Posts
  • 10 Comments
Joined 3 months ago
cake
Cake day: January 9th, 2026

help-circle
  • fratermus@piefed.socialtoLinux@lemmy.mlSaved Commands/Scripts
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    20 hours ago

    When you do aliased commands, can they take arguments? Like to download a playlist with yt-dlp, could i do download-playlist [URL]?

    They don’t take arguments in the sense that functions do but in bash at least they are passed on as part of the expanded string. Pasted from bash:

    alias argtest='echo arg is'  
    argtest foo  
    arg is foo  
    

    So yes you could alias your yt-dlp commands and invoke the alias with the URL.





  • I’m honestly regularly shocked at how many people use Chrome on Linux.

    I generally prefer to run firefox (ESR) on my debian machines. But I regularly open a couple dozen tabs during a research session and sometimes FF eats eat all my RAM (16GB), then swap, then locks up the machine. If I catch the degradation before lockup sometimes I can kill enough tabs to recover. I had a few of those lockups last month before I got tired of it.

    So for now I’ve swapped back to chromium to get around that problem. Same behavior on my part, ~same extensions, but chromium’s RAM usage stays sane.