Questions tagged [bash]
Bash (Bourne-Again SHell), is the default interactive user shell used in Ubuntu. Use this tag for questions specific to Bash, as opposed to generic POSIX shells.
11,389 questions
0
votes
0
answers
63
views
Samba/Bash discrepancy when listing files via SSH
I'm looking at the file structure I've created and maybe losing my mind. Somehow my terminal seems to be telling me there are different files/folders in what should be the same place
The OS is most ...
2
votes
1
answer
214
views
Ubuntu won't install
Installing Ubuntu 24 or 25 with BalenaEtcher destroys my thumb drive, I need to format the drive. Using Rufus, I get this message:
MINIMAL BASH-LIKE LINE editing is supported. For the first word, TAB ...
0
votes
1
answer
78
views
Shortcut from ~/.local/share/applications/ not shown?
Problem with Ubuntu app shortcuts.
I've created the file ~/.local/share/applications/mpv.desktop, but (after pressing Win+a) there is NO shortcut shown in the list of apps.
Here is the file contents:
[...
-4
votes
1
answer
100
views
Have I been hacked after using Google AI prompts [closed]
I'm running 16.04 on a intel i5 don't know if you need more info. I'm no wizard when it comes to computers but i did build this thing around 8 years ago.
Anyway onto my problem:
I wanted to update the ...
0
votes
1
answer
129
views
Why don't both these command substitutions work?
According to both the Udemy course I am doing and Google AI, these two sets of commands ought to both print out what kernel version I am using. One of them works and the other doesn't. Why? And how ...
1
vote
1
answer
97
views
How to automatically start a screen session on Docker restart?
When the server restarts, docker restarts as well. But any screen sessions I start using sh in the entry point appear as dead?.
I am looking for a way to automatically start these screen sessions on ...
0
votes
1
answer
87
views
How would I add a .png image to a symlink that points to a bash script?
In my ~/Desktop folder I have a number of symlinks that point to bash scripts in my ~/bin folder. These scripts open such things as my bank's website, my credit card's website, my apartment complex's ...
0
votes
0
answers
45
views
Automatically skip the first of a major revision, but do grab the first minor rev and later?
One of the packages that I use has had a disconcerting number of xx.0.0 releases that came off like the (in)famous San Bernardino train wreck. So I want to skip the xx.0.x versions and wait for xx.1....
1
vote
1
answer
215
views
How to auto mount SMB share with special characters? <> and single quote
So I can mount SMB fine using Bash one liner, but I can't figure out how to make credential file or fstab work with the special characters <> and '
Example below with similar password that works....
1
vote
0
answers
95
views
Scripting default firefox settings
I'm trying to create some scripts to set up laptops with fresh Ubuntu installs.
The things I want to do include:
Adding noai.duckduckgo.com as the default search engine
Disabling all the Browser.ml ...
0
votes
1
answer
89
views
how to have stdout and stderr sent to separate files and also a combined file (in the correct order) in a single command
I need to have stdout and stderr outputted to separate files, and also outputted to a single file in the correct order, in a single command.
I got this response on https://forums.linuxmint.com ...
1
vote
1
answer
191
views
How to find out if a tiny image exists in a larger image from bash command line
I have a screen capture clip (not the whole screen) and I am looking for the existence of a tiny image (like 15x15 to 25x25 pixels in size) in this screenshot clip. My problem is, since the screenshot ...
1
vote
0
answers
68
views
Alias/Function Encapsulating while or for Loop
My goal is to create a function or alias (less probable) foreach which can be used inside of bash.
The target syntax would be:
foreach file in $(ls -v /path); do
echo "$file";
done
What ...
0
votes
0
answers
72
views
What exactly does the `gnome-extensions uninstall` command do?
While uninstalling GNOME extensions using the gnome-extensions uninstall command via Python's subprocess.check_output, I sometime get a timeout error and this error can happen to different extensions. ...
0
votes
1
answer
203
views
How to get bash shell by default?
On a Ubuntu 22.04 server, everytime some "service" implements a shell terminal (can be the screen command or the "terminal" windows in a JupyterHub server..) the defualt shell ...