Questions tagged [bash]
Bash is a free shell for Unix-like operating systems from the GNU Project.
11,930 questions
0
votes
1
answer
44
views
How do I exclude a folder from the 'find' command?
I have a folder ghostbusters/ and I'm working in that folder.
ghostbusters$ ls -Alh
egon/
peter/
ray/
winston/
I want to get a listing of all files within ghostbusters/ except for those within peter/....
0
votes
0
answers
41
views
Prevent previous bash history entries from being overwritten
I very frequently retrieve commands from my bash history (^R) and start modifying it to fit my current needs, but if I change my mind and break (^C) to cancel it altogether, whatever changes I made ...
6
votes
2
answers
146
views
Why does Git Bash hang for several seconds if I press Tab as the first key? And how do I stop it?
Git Bash has the ability to press Tab to autocomplete a few things, such as file names, folder names, and a handful of git commands.
Sometimes, I accidentally press Enter before pressing Tab, which ...
3
votes
1
answer
671
views
ssh and find interact weirdly when no files match the find qualifiers
All three servers are RHEL8.
When run locally, these commands run as expected:
Node_A:
$ find /var/log/postgresql -name '*log' -type f -size +4096c
/var/log/postgresql/postgresql-2025-11-06_11.log
/...
0
votes
0
answers
46
views
How can I use ghostscript to move PDF contents to the top-left corner of a custom-size page?
I own a tablet with a screen size of 1920x2560 pixels or 162x216 millimeters. To facilitate PDF reading and note taking in the margins, I would like to edit each page of a PDF in the following way:
...
-1
votes
2
answers
58
views
How to copy/move files of a specific extension from subfolders to folders in current working directory?
I have the following folder dtructure:
|-/dataa/dataA/Content1/*.txt
|-/dataa/dataA/Content2/*.txt
...
|-/dataz/dataZ/Content1/*.txt
|-/dataz/dataZ/Content2/*.txt
And I want to copy/move all the *....
0
votes
1
answer
121
views
.desktop file won’t launch Proton app on double-click (works in terminal)
I’m creating a custom Proton-based “Windows layer” (without Steam) to run .exe files directly on Linux.
Running them from terminal works fine — but double-clicking via a .desktop launcher does nothing....
1
vote
0
answers
37
views
Why is there a strange character (@) in the Cygwin/bash prompt?
When I run :
$ env -i /bin/bash --norc
@bash-5.2$ PS1='$ '
@$
There is an at sign (@) at the beginning of the prompt.
This happened recently, in CMD windows and in Windows Terminal.
1
vote
1
answer
31
views
How to configure QTCreator to use bash-language-server?
I need to edit some Bash scripts, and would like to use tooling like shfmt, ShellCheck, etc.
It would be nice to have that built into my editor, QTCreator.
This is what bash-language-server is ...
0
votes
1
answer
82
views
Why aren’t ANSI escape codes moving the cursor on columns in Linux terminal as expected?
I tried to change the cursor position in the Linux terminal using, for example:
echo -e "\e[16;45H"
However, it did not work as expected. It only moved the cursor on lines and did not move ...
2
votes
2
answers
180
views
How to change a string on the line for a specific parameter (we don’t know the string value) in a Linux Bash script?
Please note that I have done some search and tried different solutions with sed/awk and nothing worked. I'm stuck, so I posted the question here requesting your help.
Let’s say that there's a generic ...
2
votes
1
answer
81
views
Why does `bind -x` with Ctrl+O stop working after dropping to shell from `vifm` in Kitty terminal?
bind -x '"\C-o":vifm'
This opens vifm but then when I drop down to the shell by pressing o on my keyboard triggering nnoremap o :shell<CR>, I am not able to use the ctrl + o keyboard ...
3
votes
1
answer
95
views
How to keep the tail of a logfile, and not the near-infinite debug spew before it?
I'm stress-testing a function in C++ that mostly works, but crashes on a rare occasion. So I have printf's all over it to catch the actual state at the moment that it fails. Of course, those printf'...
0
votes
2
answers
135
views
Decompress multiple mydumper generated zstd / gzip files into a single tar file for streaming to backup progam stdin
I use mydumper to efficiently backup some huge mysql databases (400GB in 8 minutes).
The tool creates roughly 900 files in a directory, each being one sql table, which all are zstd (or gzip) ...
4
votes
4
answers
513
views
How can I grep two different match combination of the file names with filter?
How can i grep two different match combination of the file names with filter.
I want to retrieve all 'TP' and 'OS' files [present in the second qualifier] and for 'PM' type only select 11 and 34 [...