Been using the CLI more and more and for whatever reason it gives me more dopamine than using apps with a GUI and I'm curious about what else is out there since I was a windows user til 6 months ago.
Discovering ish and the ability to use alpine linux on my iphone, also has me curious if there is anything useful/fun out there that isn't openssh, ranger, and ffmpeg. (a-shell is still updated and comes with those two by default but doesn't have access to alpine repo and apk, uses its own iphone based thing) Tho im curious about cli tools/apps in general to use on my pc or over ssh, not just those that could be installed on my phone
I mostly use ffmpeg to convert video and compress stuff for size limits (so I can convert before sftp when away from my pc after the render finishes) Ranger file manager on phone since it can easily exit at a path, and yazi with the shell script that lets it exit at whatever path your on on pc.
Will update this list as people comment.
- Conversion/Compression: ffmpeg
- Email: mutt, neomut
- File management: mc, nnn, ranger, yazi, sfm
- File editor: vim, neovim
- Git: lazygit
- Piracy: ani-cli (anime) rip (music)
- Pdf Management: pdftk (pdftk-idk, or stapler)
- Python: rich, pythondialog, textual
- Docker management : lazydocker
- Performance monitor: btop, nvtop (nvidia), ncdu (disk usage)
- Network management: nmtui
- Web browser : browsh (firefox backend)
- Video downloader: yt-dlp
- Shell scripts: dialog, whiptail
- Misc: netpbm (plaintext image creation) If you can't comment this post seems to be bugged for me at least, says I've deleted it and I can't reply to anyone.
47 Comments
Mordikan@kbin.earth · 16 pts · 1y
lazydocker:terminal based docker managementncdu: disk usage analyzernmtui: terminal based network managementbrowsh: terminal based web browser with headless Firefox backenddil@lemmy.zip · 4 pts · 1y
I do like btop for performance monitoring, your comment somehow reminded me
Mordikan@kbin.earth · 1 pts · 1y
I really like btop/bpytop too. Its more useful than glances imo.
dil@lemmy.zip · 1 pts · 1y
I always click on it from the start menu, forgot it was terminal based
Ferk@lemmy.ml · 4 pts · 1y
I prefer
duaoverncdu, specially when called interactively (dua i), since you can explore the results in parallel before it finishes scanning, while it updates asynchronously.wwwgem@lemmy.ml · 14 pts · 1y
I rely on cli tools for a lot of things too. Here's a list:
tmux: terminal multiplexer
zsh (with fzf zsh completion): shell
fzf: fuzzy finder
doas: sudo replacement
bat: cat replacement
fd: find replacement
advcpmv: cp/mv replacement
eza: ls replacement
zenith: htop replacement
trash-cli: trash management
neomutt: email client (notmuch is a most recommended addition)
neovim (and plugins): text/code editor
buku: internet bookmarks manager
tut: mastodon client
ucollage: image viewer
udevil: (un)mounting removable devices and networks without a password
magic-tape: youtube search/download and more
rofi: used with scripts to do a lot of things
pass: password manager
yazi: file explorer
iwd: wireless manager
khal: calendar and webdav sync with vdirsyncer
taskjuggler: complete task manager
newsboat: feed aggregator
fwupd: firmware updater
chawan: web browser
ncmpcpp: mpd-client
duf: disk usage
abook: contacts manager
I have some of them detailed here.
This GitHub also has a long list.
Edit: added abook and duf to the list
TootSweet@lemmy.world · 9 pts · 1y
I'm a big fan of jq. It's a domain-specific language for manipulating JSON data.
ImageMagick is like ffmpeg but for images.
inotify-tools has command-line utilities that can be used in a Bash script or a Bash one-liner to make arbitrary things "happen" when something "happens" to a file or directory. (Then the file is opened or written to or renamed or whatever.)
I probably should mention rsync. It's like a swiss army knife for copying files from one place to another. And it supports "keeping files syncronized" between two locations.
Of course, there's tons of stuff that you pretty much can't talk about Bash scripting without mentioning. Sed, awk, grep, find, etc.
Also, I totally relate about the terminal giving more dopamine. I kinda just hate going on a point-and-click adventure to do things like image editing or whatever. To the point that I've written a whole-ass domain-specific-language to do what I want rather than use Gimp. (And I'm working on another whole-ass domain-specific-language to do a traditionally-GUI-app sort of task.)
harsh3466@lemmy.ml · 4 pts · 1y
jqis indispensable.Badabinski@kbin.earth · 4 pts · 1y
A bunch of GNU tools have added JSON output and it's so good. Like, GNU
columncan take tabular data and convert it into JSON really easily. It's like the perfect text stream.balsoft@lemmy.ml · 1 pts · 1y
OMG how did I not know this... It just might be time to switch to nushell/elvish.
sxan@midwest.social · 9 pts · 1y
Oh boy. This is a rabbit hole which, once you fall into, there's no coming back out.
There is a world of terminal software. You can, quite reasonably, get entirely rid of X (and Wayland) and live in the console. Honestly, the reason I don't is only because there is no fully competent terminal web browser (although there are some quite good ones), and because anything having to do with graphics like photo management, or vector graphics drawing, is really where GUIs are useful. But for everything else, terminal clients are almost always superior.
Choosing a good terminal emulator is important, and the best one right now is Rio. It's fast, smaller memory footprint, and less CPU use than Wezterm or Kitty, and it supports ligatures, iTerm, and SIXEL graphics.
In that goes tmux, because it works over ssh and having consistent everywhere is handy, because it survives terminal and window manager crashes, and because you can open multiple clients in different windows on the same tmux session.
In that runs zsh, because it's the best shell. It's backwards-compatible to bash, but has a ton of extra features.
I'm conservative about replacing standard POSIX tools with new fad tools, because grep is literally everywhere (even BusyBox) and new things usually aren't; but ripgrep and fd are such nice improvements over grep and find I've been unable to resist. Helix is currently the best text editor. However, having a good familiarity with grep, find, and vi is IMHO critical, because they're the foundations.
My media player is ostui, which is an ncurses SubSonic client with synced lyrics and cover art support. I use catnip for visualization, because it uses less memory and CPU than cava. For task management I use a bespoke script (tdp) that use fzf with todo.txt files. I use gotop for system monitoring.
I try to use chawan for terminal web browsing, and it does do CSS layout better than most, and supports sixel image rendering, but it's often a chore so I mostly browse in Luakit, which is a GUI program.
rook is my secret service tool that uses a KeePassXC DB as the backing store, and provides credentials to everything that needs them.
dinit handles all of my user task management, because systemd is fucking broken for user tasks. dinit is a better init system.
Almost every application I use is a cli or TUI client. The exceptions are the web browser, for reasons I've explained; Jami, which doesn't have a CLI client; Factorio, which is a game; and darktable for photo management. I'll also occasionally open Gimp or Inkscape for graphics, vlc for movies (which I could probably watch in the terminal, now that I think of it), and I usually view PDFs in a GUI client such as mupdf.
My philosophy on software is to use standards wherever possible. I avoid programs that insist on using their own DBs when there's a perfectly good standard, such as ics, maildir, and so on. It's just another form of vender lock-in. Hence notmuch (maildir), khard and lbb (directory of .ics), khal (directory of .vcs), rook (KeePass DB), and so on. This drives most of my tooling choices.
GrappleHat@lemmy.ml · 8 pts · 1y
Unpopular opinion maybe: many of the suggestions here are not worth the time.
Buy I'll add one to the mix:
yt-dlpI use a lot to download YouTube videos. Very robust.dil@lemmy.zip · 3 pts · 1y
Feel free to tell them why and help fill us in on whats better lol, im sure no one minds finding better, or is it because youd rather use an app or website?
digdilem@lemmy.ml · 2 pts · 1y
Great tool. It's also leveraged by pinchflat, where you add Youtube channels via a webui and it downloads their videos and adds them to Jellyfin.
Landless2029@lemmy.world · 1 pts · 1y
It even works on other sites. I haven't run into mainstream site it doesn't support.
Decker108@lemmy.ml · 8 pts · 1y
My list is a bit software developer-centric, but can be useful for development-adjacent tasks too.
mbirth@lemmy.ml · 7 pts · 1y
Midnight Commander (mc) is a classic file manager if you grew up in the 90s with Norton Commander on DOS.
For my local Git repositories I prefer
lazygitnow. There’s also a plethora of other lazy* tools for e.g. Docker.And you should maybe look at
dialogorwhiptailto spice up your shell scripts.If you do Python, there’s the
richlibrary and there’s alsopythondialog. Both pretty easy to use. If you want more, there’stextual.EDIT:
muttfor emails is nice once you’ve managed to set it up.dil@lemmy.zip · 2 pts · 1y
Yeah i never used norton commander so mc was a bit rough looking for me, but it was the first one I saw and why I found yazi, ranger, etc. There are a ton of them, just listed the few i tried
mbirth@lemmy.ml · 3 pts · 1y
Yeah, I’m trying to build some muscle memory in
yazi, too, as I like its instant previews.I’ve also just remembered this website that has lots of other cool terminal tools:
https://terminaltrove.com/
callyral@pawb.social · 6 pts · 1y
things i use:
gitui . terminal UI for git (like lazygit)
helix . modal text editor similar to vim, but with less configuration required
eza . basically
lsbut with some more featuresbalsoft@lemmy.ml · 3 pts · 1y
Not only less configuration required, but also semantic navigation (jump around the AST directly with simple keybindings). I can't use a code editor without it now.
callyral@pawb.social · 4 pts · 1y
just searched up abstract syntax tree in helix, and i learned about syntax aware motions. how had i never heard of them before? they look very useful! thanks for mentioning that
Zikeji@programming.dev · 5 pts · 1y
Ripgrep (rg) instead of grep or ack. Stupid fast.
yt-dlp since I don't see it mentioned.
Drop tmux and use zellij (if you are scared of tmux, zellij is easier to learn IMO).
cmnybo@discuss.tchncs.de · 5 pts · 1y
GNU Parallel: It lets you run multiple things in parallel. It's very useful for batch converting large numbers of files.
Ephera@lemmy.ml · 4 pts · 1y
Well, seeing them in the list like that rubs me the wrong way. 😅
Both of those come with a CLI, called
gitanddockerrespectively, which is the official way of using them. These CLIs might not be particularly sexy, depending on who you ask, but they're decent enough and worth learning, even if you go thelazy*route, since online resources all just explain the official CLIs and you might find yourself one day administering remote systems where you can't install additional software...why0y@lemmy.ml · 4 pts · 1y
du-dust - disk usage (written in R U S T ⚙️) bottom/btm - htop/top replacement zed editor obs-studio (not CLI exactly)
tux0r@feddit.org · 4 pts · 1y
Let’s save yourself some time. https://github.com/toolleeo/awesome-cli-apps-in-a-csv
eager_eagle@lemmy.world · 3 pts · 1y
dua-cli- file storage analyzer, ncdu alternativetopgrade- one tool to upgrade all package managershexagonwin@lemmy.sdf.org · 3 pts · 1y
emacs is great, from your list it can do at least email/file management/file editing/git/piracy/python/web browser
alt_xa_23@lemmy.world · 3 pts · 1y
pdftk is fantastic for merging and splitting pdfs (among other things)
EarlGrey@discuss.tchncs.de · 2 pts · 1y
Amazing tool but sadly abandoned and slowly getting more and more unstable and difficult to build
The better options:
psykon@lemmy.sdf.org · 3 pts · 1y
I often work with media files. These are some tools I really like in this domain:
corsicanguppy@lemmy.ca · 3 pts · 1y
Xargs, bc, paste, sed, awk.
tuna@discuss.tchncs.de · 3 pts · 1y
I've been meaning to try out netpbm
If you aren't aware, pbm represents an image with plaintext, which makes it great for when you want to easily create an image with code
I recently learned there is a whole suite of CLI tools which work with the format. Like conversion to/from png, scaling, and overlaying one image on top of another.
freijon@lemmings.world · 3 pts · 1y
The suggestions in the comments are all nice, but the biggest game changer for me was nushell. Once you understand how it works there is no going back. I have saved so many hours already.
Interstellar_1@lemmy.blahaj.zone · 3 pts · 1y
streamripfor ripping music from streaming servicesharsh3466@lemmy.ml · 3 pts · 1y
zoxide. It'scdbut better. It remembers which directories you've navigated to, and fuzzy finds them.So instead of typing:
cd /really/long/path/to/sime/dirYou can type:
zoxide dirAnd it'll take you right to the directory.
I've got it aliased to
zdso I type:zd dirAnd I'm there.
dizzy@lemmy.ml · 1 pts · 1y
Pretty sure zoxide automatically uses “z” as its alias by default. One less letter for you to type.
why0y@lemmy.ml · 3 pts · 1y
You can save tons of time by adding aliases to your
.gitconfigsuch as 'ga $fname' (where "fname" would be files you want to add) the alias for git add. You can also do the same thing with gc, gs, etc and if youre like me and you write dozens of lines of code a day, it can save you a lot of time.harsh3466@lemmy.ml · 1 pts · 1y
I've already aliased
glfor git log with my flags, but have been too lazy to add more aliases.harsh3466@lemmy.ml · 1 pts · 1y
Oh. I did not know that. Gonna try that right now.
Maiq@lemy.lol · 3 pts · 1y
nvtop: visualize nvidia GPU usage and memorytop: monitor/manage processes althoughps aux | grep appNameis still my goto.pyenv: easily install and use any python versionipython: a customizable python interpreter. I have figured out many poorly documented modules using ipython and great for exploring modules.after hitting tab will show all attributes related to your imported module, use arrow keys to select methods == profit!
nethogs: monitor network connections by app.firejail: app sandboxingdessalines@lemmy.ml · 2 pts · 1y
Some I haven't seen mentioned yet:
gramgan@lemmy.ml · 1 pts · 1y
bluetuithis great for managing Bluetooth devices.k4j8@lemmy.world · 1 pts · 1y
aerc for email
Frederic@beehaw.org · 1 pts · 1y
Well, I used vi a lot, but seriously nano is better especially for beginner.
I also use DoubleCommander instead of midnight one
seralth@lemmy.world · 1 pts · 1y
juipeltje@lemmy.world · 1 pts · 1y
Good old nano is something i use a lot, although i am considering finally giving micro a try, heard a lot of good things about it, and i want something with a bit more features in the terminal, but i really hate vim keybinds. I also really like rmpc, which is an mpd client with album art support, though i am not using it anymore at the moment because i realized mpd wasn't really what i was looking for when it comes to music players.
Edit: also want to mention cyanrip. Really good cli cd ripper with a lot sane defaults, easy to use, and in terms of accuracy probably the closest thing to EAC on windows.
s-tui is also great. It's a tui stress testing utility. I still use it every now and then even if it's just to test if my fan curve is actually working by putting some load on the cpu.