Linux CLI Utilities - consolidated list

Discussion in 'Other Operating Systems' started by GumbyNoTalent, May 30, 2018.

  1. Quadbox

    Quadbox Member

    Joined:
    Jun 27, 2001
    Messages:
    6,504
    Location:
    Brisbane
    So ever since you posted this, GumbyNoTalent, I've been meaning to implement it and have kept procrastinating about it. Implemented it yesterday, replacing a million and one devices I have that have been using google sync for it. It was utterly painless, I just exported my current google password database to csv, imported it with pass-import, got browserpass working for chromium and firefox, similar for android. Everything's using my existing github account (which I've already got a shitload of private repos on. When my home internet sucks less post nbn i'll probably migrate it all to local gitea or the like), and it all fucking *rocks*. Seriously one of the absolute best pieces of software recommended in this thread. I love the design, I love the fact it doesnt reinvent the wheel, or try and hide anything in obscurity (you can extract any password completely without the actual program, just using gpg and your certs). It is absolutely the bomb.

    Why this isnt more widely used instead of the behemoths that are keepass and keepassXC I do not know.
     
    GumbyNoTalent likes this.
  2. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    1,453
    Location:
    BRISBANE
  3. theSeekerr

    theSeekerr Member

    Joined:
    Jan 19, 2010
    Messages:
    3,599
    Location:
    Broadview SA
    Is there an Android implementation that offers Autofill? Not really interested in a manual password manager, Lastpass has its share of worries but at least it's fairly smooth to use.
     
  4. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    1,453
    Location:
    BRISBANE
    Bitwarden definitely does have an autofil as an accessibility service which is kinda gross but it's the only API they've got
     
  5. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    https://lesspass.com/
    Will be trying this in the next few weeks.
     
  6. _zak

    _zak Member

    Joined:
    Oct 12, 2009
    Messages:
    388
    Some really cool programs in this thread! I'm a command-line rookie, but here are a couple of things I use:

    makesite.py (https://github.com/sunainapai/makesite) - generate a static website with a single Python file. I used to use Jekyll, but it was the only thing I had Ruby installed for and I just didn't use a lot of the functionality. Plus it gave me an excuse to work on my Python.

    pyenv and rbenv (https://github.com/pyenv/pyenv and https://github.com/rbenv/rbenv) - version management for Python and Ruby. Obviously they're fine for their main purpose (particularly for that one bloody project that's still on Python 2), but the biggest advantage was helping avoid the complete mess I would have made of my system Python/Ruby when I started playing with these languages. Mess up? Just delete .py/rbenv and start again!

    homebrew (https://brew.sh/) - yes, this is the Linux CLI utilities thread, but Mac users can have all of the nice things in this thread too!

    sshuttle (https://github.com/sshuttle/sshuttle) - if you have ssh access to a server and that server has Python on it, you can use this to quickly make a VPN-over-ssh in a pinch. Useful if your boss insists that you do the thing right now, but the only access you have is through WiFi of dubious provenance.

    Cheers for all your suggestions!
     
  7. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    saltstack is the sauce you have been looking for. https://github.com/saltstack/salt

    shadowsocks if you want a VPN-proxy (SOCKS5)

    https://shadowsocks.org/en/index.html
    https://github.com/shadowsocks

    ssh_tunnel https://www.ssh.com/ssh/tunneling/ since you have SSH access why not gain access to the entire network?
     
  8. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    vifm - Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt. https://vifm.info

    Vifm is a curses based vi[m] like file manager extended with some useful ideas from mutt. If you use vi[m], vifm gives you complete keyboard control over your files without having to learn a new set of commands. It goes not just about vi[m] like keybindings, but also about modes, options, registers, commands and other things you might already like in vi[m].

    Just like vi[m], vifm tries to adhere to the Unix philosophy. So instead of working solutions which are set in stone user is provided with a set of means for customization of vifm to one's likings. Though builtin functionality should be enough for most of use cases.

    [​IMG]
    https://github.com/vifm/vifm

    polybar - A fast and easy-to-use status bar https://polybar.github.io


    Polybar aims to help users build beautiful and highly customizable status bars for their desktop environment, without the need of having a black belt in shell scripting. Here are a few screenshots showing you what it can look like:

    [​IMG] [​IMG] [​IMG] [​IMG]

    You can find polybar configs for these example images (and other configs) here.

    NOW don't need to bust a gut working out a config Arcolinux has a 13wm version which uses polybar, this guy has published his polybar which looks like powerlines.
    https://gitlab.com/dwt1/dotfiles/-/blob/master/.config/polybar/config



    Will be doing a i3wm new build for my laptop based on Xubuntu or Lubuntu 20.04, will do a thread for Unixporn value. ;)
     
  9. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    1,453
    Location:
    BRISBANE
    I use ranger, it has vim-bindings and previews based on MIME type, very cool

    [​IMG]
     
  10. theSeekerr

    theSeekerr Member

    Joined:
    Jan 19, 2010
    Messages:
    3,599
    Location:
    Broadview SA
    Funny lookin' CLI you got there...
     
    grs1961 and GumbyNoTalent like this.
  11. grs1961

    grs1961 Member

    Joined:
    Jan 21, 2005
    Messages:
    519
    Location:
    Melbourne
    Hmm, just used one of my favoured tools to prove a point, should stick it up:
    dig @208.67.222.222 myip.opendns.com +short​

    Quite useful when dealing with the "Oh, you have to scrape websites/login to your router to get your IP address" types.
     
  12. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    1,453
    Location:
    BRISBANE
    what's wrong with `curl icanhazip.com`?

    use drill (from ldns) instead of dig, dig is dead baby
     
    GumbyNoTalent likes this.
  13. demiurge3141

    demiurge3141 Member

    Joined:
    Aug 19, 2005
    Messages:
    2,232
    Location:
    Melbourne 3073
  14. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    waltermitty mate you are a champion, https://icanhazip.com/ is perfect for my cheap ass, I now have a AWSCLI script that modifies security group to allow IP access to specific ports, hope no one seals my AWS API key... ;)

    PS - It replaces the need for a VPN gateway, how cheap am I... very, I need all my cycles for the DB nothing else, as I have embraced Lambda for API and S3 for asset hosting... WINNAR!
     
    Last edited: Jun 26, 2020
  15. grs1961

    grs1961 Member

    Joined:
    Jan 21, 2005
    Messages:
    519
    Location:
    Melbourne
    Well, apart from the extra hops outside Oz:
    traceroute to 208.67.222.222 (208.67.222.222), 30 hops max, 40 byte packets
    1 <router> (IP) 0.723 ms 0.458 ms 0.453 ms
    2 10.20.22.66 (10.20.22.66) 7.942 ms 8.338 ms 9.289 ms
    3 27-32-160-2.static.tpgi.com.au (27.32.160.2) 17.911 ms 18.888 ms 17.579 ms
    4 203-26-22-121.static.tpgi.com.au (203.26.22.121) 23.239 ms 21.558 ms 17.037 ms
    5 syd-apt-ros-wgw1-be-20.tpgi.com.au (203.29.134.71) 18.411 ms 18.933 ms 19.449 ms
    6 be300.sglebbrdr11.aapt.net.au (203.219.107.198) 19.223 ms 17.896 ms 18.667 ms
    7 202.10.14.202 (202.10.14.202) 19.811 ms 18.615 ms 18.132 ms
    8 pvadom.precisionglobal.asia (59.100.201.110) 18.790 ms 17.686 ms 21.034 ms
    9 ae-29.r20.sydnau02.au.bb.gin.ntt.net (129.250.9.218) 18.617 ms 18.071 ms ae-14.r00.sydnau04.au.bb.gin.ntt.net (129.250.9.242) 18.123 ms
    10 xe-0-0-7.r20.sydnau02.au.ce.gin.ntt.net (202.68.65.150) 19.465 ms 18.408 ms 18.864 ms
    11 xe-0-0-7.r20.sydnau02.au.ce.gin.ntt.net (202.68.65.150) 18.381 ms 18.627 ms resolver1.opendns.com (208.67.222.222) 18.866 ms

    Versus:

    traceroute: Warning: icanhazip.com has multiple addresses; using 116.202.55.106
    traceroute to icanhazip.com (116.202.55.106), 30 hops max, 40 byte packets
    1 <router> (IP) 0.594 ms 0.493 ms 0.364 ms
    2 10.20.22.66 (10.20.22.66) 8.000 ms 8.514 ms 9.750 ms
    3 27-32-160-66.static.tpgi.com.au (27.32.160.66) 8.226 ms 8.331 ms 8.284 ms
    4 203-26-22-121.static.tpgi.com.au (203.26.22.121) 17.444 ms 23.811 ms 24.969 ms
    5 syd-apt-ros-int1-eth8-3.tpgi.com.au (203.29.134.67) 23.596 ms 20.748 ms 24.019 ms
    6 100ge13-1.core1.sjc1.he.net (216.218.139.233) 174.868 ms 180.081 ms 175.795 ms
    7 10ge14-4.core1.pao1.he.net (72.52.92.113) 173.768 ms 172.931 ms 176.158 ms
    8 100ge6-2.core1.ash1.he.net (184.105.222.42) 230.932 ms 231.068 ms 231.219 ms
    9 100ge1-1.core1.nyc4.he.net (184.105.223.166) 234.165 ms 235.702 ms 234.730 ms
    10 100ge16-2.core1.lon2.he.net (72.52.92.165) 303.490 ms 303.046 ms 305.193 ms
    11 100ge7-1.core1.fra1.he.net (184.105.80.38) 313.839 ms 313.103 ms 314.127 ms
    12 decix2-gw.hetzner.com (80.81.193.164) 340.254 ms decix-gw.hetzner.com (80.81.192.164) 335.683 ms 335.658 ms
    13 * core24.fsn1.hetzner.com (213.239.252.42) 319.135 ms 319.021 ms
    14 ex9k2.dc1.fsn1.hetzner.com (213.239.245.98) 319.507 ms ex9k2.dc1.fsn1.hetzner.com (213.239.245.90) 318.784 ms ex9k2.dc1.fsn1.hetzner.com (213.239.245.98) 322.507 ms
    15 dedi4.de.icanhazip.com (116.202.55.106) 321.114 ms 317.654 ms 318.500 ms

    Which, if you're cheap like I am (using TPG) it can lead to problems. :)

    And re "drill" - I had a look at it, can't see how to tell it to just give me the result. Meh, if I was using DNSSEC it'd maybe be useful.
     
  16. adelaide_boi

    adelaide_boi New Member

    Joined:
    Jul 14, 2020
    Messages:
    5
    Location:
    Adelaide
    exa (Rust) is "a modern replacement for the command-line program `ls` that ships with Unix and Linux operating systems, with more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And it’s small, fast, and just one single binary." - https://github.com/ogham/exa

    tre (Rust) is "a replacement for `tree` command that uses `git ls-files` as source of file when possible." - https://github.com/dduan/tre
     
  17. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    Agg likes this.
  18. cvidler

    cvidler Member

    Joined:
    Jun 29, 2001
    Messages:
    14,809
    Location:
    Canberra
  19. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    Only rm_dir is there by default, so you can add a rule or acceptation for rm.
     
  20. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
    vizex https://github.com/bexxmodd/vizex
    [​IMG]
    [​IMG]
     
    Agg likes this.

Share This Page

Advertisement: