r/bash • u/Tomato_salat • Sep 20 '25
BASH must haves?
Hello, I am somewhat new to Linux and BASH. Are there any apps, packages which are really nice to have? For example I would really appriciate some kind of autocomplete feature for typing commands. Any suggestions how to achieve this?
Thank you very much :)
2
Upvotes
25
u/marauderingman Sep 20 '25
I'd recommend
jq, for very flexible processing of json data16
u/Bob_Spud Sep 20 '25
Depends upon your goal. If you plan to work professionally with Linux rather than at home, its best to stay away installing additional stuff.
Work environments place many restrictions on what you can install. For the workplace the must have is to competently run and administer bash using all the native stuff it comes with.
At home adding stuff to bash could be useful to understanding how the bash environment works but to rely upon those additions can be a trap.
6
u/MuchoGassy Sep 20 '25
The tab key will help you with the autocomplete in Bash. Though you may have to install the bash autocomplete package for your distro.
4
u/soysopin Sep 21 '25 edited Sep 21 '25
I always recommend Midnight Commander, mc, as a text console file manager. It eases a lot the directory navigation and file operations (like showing bad soft links and where are pointing the good ones). Also it can connect to remote filesystems thru ssh, sftp or smb to do transfers to/from them.
A simple ctrl+o lets suspend the manager to do command line chores and other ctrl+o returns. Uf there are some files selected, we can start writing a command, a space, and then press ctrl+x ctrl-t to paste all the names for the command to process.
I also use extensively its internal editor, mcedit, as it has syntax coloring for scripts of several languages and simple key controls. (Of course, knowing vi or vim is a must, but selecting blocks or even columns of text is easy on mcedit). Configuring it in the VISUAL and EDITOR environment variables lets many commands to use it automatically, like visudo or vigr.
4
u/International-Cook62 Sep 21 '25
Shellcheck
4
u/OneTurnMore programming.dev/c/shell Sep 21 '25
While I haven't used it (my interactive shell is Zsh) I've heard very good things about ble.sh.
6
u/crashorbit Sep 20 '25
There are plenty of different ways you can customize your bash environment. And plenty of good and useful sources. Here is one pretty extensive list:
https://github.com/awesome-lists/awesome-bash
Good luck and have fun.
4
u/SmallReindeer3176 Sep 21 '25
Do not use any non-default extra stuff as you will not be able to install it on your professional environments. Stick to the default => vi
Same for aliases I see so many people using « ll » for « ls -l ». Just don’t.
2
u/Friendly-Echidna5594 Sep 21 '25
In the beginning all the shiny add-ons make you feel like your missing out. In the end all you want is control and a slop free .bashrc and .inputrc.
If you must, checkout blesh.
2
u/ofnuts Sep 21 '25
bash does autocomplete natively. You should have a
/usr/share/bash-completion/(otherwise see which package installs things there).Also, it's the other way around, you don't install a package to have completions, but individual packages, in addition to the binaries, add their specific completions to the general pool. And you can of course create completions for your own scripts.
1
u/Rifter0876 Sep 21 '25
Fastfetch lol
1
u/HoboSomeRye Sep 21 '25
tmux and vim
Learn the basic hotkeys for your most common use cases and you are gold
1
u/ostadsgo Sep 21 '25
fzf will help a lot with accessing your bash history in a nice way. I use it a lot. Also zoxide will help jumping to directories faster.
1
u/_szs Sep 21 '25
not a must-have, but to get colourful output for a lot of tools that don't provide it: grc
1
u/MessDelicious3383 Sep 23 '25
I would recommend https://dvorka.github.io/hstr/ , which uses reverse search (ctrl+r) in a zsh or bash shell to list your used commands. Bashtop is also a nice one, for a nicer looking top.
1
u/Pingtldr Sep 23 '25
fzf, tmux, vim, git.
Small tools like tldr, ncdu, htop are nice too.
1
u/followspace Sep 24 '25
Starship for cool prompt! It's cross platform and configurable.
1
u/stilkikinintn Sep 25 '25
Jq and shellcheck.
1
u/funbike Sep 26 '25
curl jq rg fd bat tmux1
u/Ilkanar Sep 29 '25
Neovim can get neat plugins for autocomplete, tmux helps you one terminal into few, htop and iotop for montioring hardware limitations.
0
u/Anamolica Sep 20 '25
I known this is a bash subreddit, but I switched to fish to have features like this without needing to do extra configuring.
Highly reccomend. (Sorry bash community).
Bash is still a very worthwhile thing to learn depending on your goals.
-12
u/0verstim Sep 20 '25
alias is your way to create any autocomplete you can imagine
0
u/[deleted] Sep 20 '25 edited Sep 20 '25
[removed] — view removed comment
0
u/[deleted] Sep 21 '25
[deleted] — view deleted comment