Questions tagged [command-line]
This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.
22,639
questions
-1
votes
0
answers
25
views
Tmux log file seems suspicious
I have switched from a none-dabian distribution to Ubuntu recently, however, I don't come to discover to make my precious Tmux config to work with my current Ubuntu setup, with that there are the a ...
3
votes
1
answer
485
views
Where is git-prompt.sh located in Ubuntu 24.04?
I am trying to customize PS1 so it shows the branch I am when I enter a git repository. To do that I use the __git_ps1 function and everything works fine.
My issue is that, according to the ...
2
votes
1
answer
209
views
How to set default foreground color in Bash shell?
I found the set default background color code from
@user313992's answer:
On xterm-like terminal emulators:
This sets the background to a light green without having to clear the screen:
printf %b '\e]...
-1
votes
1
answer
14
views
Why does npm http-server not work on Ubuntu 24.04 LTS except on port 8080
I installed npm using the nvm as shown in the official site.
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# download and ...
-1
votes
0
answers
17
views
Running flatpak Gimp with multiple arguments I get errors
Before installing the flatpak version my command was working (prova.heic and prova.jpg are batch variables):
gimp -c -i -d -b "(dmmConvertHEICtoJPG \"prova.heic\" \"prova.jpg\"...
0
votes
0
answers
47
views
Why can my command embedded in a script only able to be executed when typed in the terminal?
I wrote a script to get sequences corresponding to some id's.
# Process each genome ID in array
for id in "${genome_ids[@]}"; do
echo "Processing genome ID: $id"
...
0
votes
1
answer
40
views
Terminal opened in Ubuntu but command prompt does not appear
When I open my terminal in Ubuntu, it opens, but I have no command prompt! I can't write any commands. I tried to reset it, but nothing happened.
The image below shows how the terminal opens and how ...
-1
votes
0
answers
73
views
When opening a text file through the terminal using `sudo nano`, the text file is empty
I'm trying to resolve an issue with audio stuttering but cannot edit the pulse daemon config (/etc/pulse/daemon.conf) because any attempt to open a text document in the terminal with nano shows up ...
0
votes
0
answers
23
views
Can't paste commands into Ubuntu shell command line
I'm very new to Linux and coding in general, and I've been having an issue where I can't seem to properly paste code into my command line.
I can paste by right-clicking, but if the source I'm copying ...
-1
votes
0
answers
24
views
lmms fails to install on UBUNTU 22.04 ( additional info ) [duplicate]
Some applications will download & install by simple point and click operations, however the program "LMMS" is of the type needing to be installed at the command-line.
My attempt:
sudo ...
0
votes
0
answers
29
views
Problem dev files
I have a problem with Ubuntu. From the moment I initialize my PC, the time changes and the connection drops. I have to refresh the time for the connection to come back. I noticed this because when I ...
0
votes
0
answers
58
views
apt install ubuntu-desktop is very slow
I'm running "apt install ubuntu-desktop" from server install of 24.04. It downloads everything very quickly, but when setting up packages it becomes very very slow. It takes more that an ...
1
vote
0
answers
99
views
installed Ubuntu 22.04 on HP-Pavilion Plus Laptop 14-ew1024nn problem with kernell panic sudo apt --fix-broken and graphics card drivers
I think I have a very complicated problem.
I don't have so much advanced knowledge about linux (Ubuntu 22.04).
I've installed it on HP Pavilion Plus Laptop 14-ew1024nn .
And when I was trying to solve ...
0
votes
0
answers
31
views
Why can't crontab bash script access user .local directory?
My cronjob is running. But the bash script that is running does not properly invoke another program. Usually, including a full path resolves this issue. I've included a full path in my bash script but ...
0
votes
0
answers
33
views
Can't use sudo anymore since running chmod: sudo: /etc/sudo.conf is world writable [duplicate]
Before I start, I am no Linux expert by any means, I just know the basics and am still at the beginning of my Linux/Server journey.
I messed up, I've used chmod before but now I used it in the root ...