• 0 Posts
  • 8 Comments
Joined 3 months ago
cake
Cake day: August 11th, 2024

help-circle
  • pemptago@lemmy.mltolinuxmemes@lemmy.worldFixed a post I saw earlier
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    24 days ago

    It’s available to whoever is willing to pay. Consent is given when users agree to privacy policies and ToS. Unfortunately, unless you’re in the EU, it’s legal, and when companies violate permissive laws or suffer a data breach, the penalties are often inconsequential. The original comment was vague and didn’t specify the case. In the context of linux users vs MS and Apple, I’m leaning towards a distrust of big tech and “readily available for anyone” being inclusive of a multibillion dollar ad industry and the ecosystems developed around it. Though, technically not anyone can access every piece, so I guess we could dismiss it as a thing of the past.








  • I went a little overboard and wrote a one-liner to accurately answer this question

    history|cut -d " " -f 5|sort|uniq -c|sort -nr|head -5
    

    Note: history displays like this for me 20622 2023-02-18 16:41:23 ls I don’t know if that’s because I set HISTTIMEFORMAT='%F %T ' in .bashrc, or if it’s like that for everyone. If it’s different for you change -f 5 to target the command. Use -f 5-7 to include flags and arguments.

    My top 5 (since last install)

       2002 ls
       1296 cd
        455 hx
        427 g
        316 find
    

    g is an alias for gitui. When I include flags and arguments most of the top commands are aliases, often shortcuts to a project directory.

    Not to ramble, but after doing this I figured I should alias the longest, most-used commands (even aliasing ls to l could have saved 2002 keystrokes :P) So I wrote another one-liner to check for available single characters to alias with:

    for c in a b c d e f g h i j k l m n o p q r s t u v w x y z; do [[ ! $(command -v $c) ]] && echo $c; done
    

    In .bash_aliases I’ve added alias b='hx ${HOME}/.bash_aliases' to quickly edit aliases and alias r='source ${HOME}/.bashrc' to reload them.