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,919
questions
0
votes
1
answer
65
views
Listing Folders and Files with the same name
I have a folder with extracted ZIP files in it.
(Extracted ZIP folders are the same name as the ZIP file without ZIP in the folder name
Example: File1.zip extracts to the file1 folder
I need to show ...
-1
votes
1
answer
132
views
Storage issues ubuntu 24.04
I am using sudo apt-get clean, autoclean, and autoremove. My cache is full and only clears one percent. What is the correct way to free up some space from the command line?
Here is the result of ...
3
votes
1
answer
143
views
How to use setfacl for adding the same permission
I found the setfacl from this link:
https://stackoverflow.com/questions/39397548/how-to-give-non-root-user-in-docker-container-access-to-a-volume-mounted-on-the
sudo setfacl -m u:$(id -u):rwx -R /some/...
0
votes
2
answers
66
views
Permission Denied Error When Cloning Cheatsheets with Cheat
I'm trying to set up cheat on my Ubuntu system. When I run the command to initialize the config file and download the community cheatsheets, I encounter a permission denied error. Here is the process ...
21
votes
2
answers
3k
views
How to check if the computer is a laptop or desktop using command line?
I am writing a bash script to set up the all the software I need after installing Ubuntu. If the computer is a laptop, I want to install tlp for power management. If it is a desktop, tlp is not ...
0
votes
0
answers
14
views
Problem with updating on Ubuntu Server [duplicate]
How can I fix this update issue?
6
votes
1
answer
707
views
Should I use the "time" keyword, the "/usr/bin/time" command or the "times" builtin to time the execution of commands in bash?
I have been delving into bash for the first time and want to try to test some code to compare different ways of achieving the same end. As part of this I have come across the time and times methods of ...
1
vote
2
answers
632
views
"unknown option: --bash" when opening the terminal
Whenever I open the terminal, I get the following line as the first line in the terminal:
unknown option: --bash
Here is a screenshot of my terminal:
Here is my ~/.bashrc file:
# ~/.bashrc: executed ...
0
votes
0
answers
73
views
How to install wordlist.txt for gobuster in ubuntu
I found this code sudo apt install wordlist and gave me a various types of wordlist like wamerican etc and these files are not the wordlist .txt file when I used the command gobuster -u (url) -w ...
0
votes
0
answers
47
views
Setting prompt using PS1 in a script puts cursor at beginning of line
I want to set the title and prompt in a command line window using the following command:
PS1='\[\e]0;deploy\a\]\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
If it is entered interactively, ...
0
votes
0
answers
81
views
How to install wordlist.txt on ubuntu for gobuster
I am using ubuntu download from Microsoft Store and I have gobuster but I don't have any idea on how to install wordlist.txt for gobuster someone please help me out
0
votes
1
answer
48
views
Problem in executing terminal commands
Command 'sed' is available in the following places
* /bin/sed
* /usr/bin/sed
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
sed: command ...
-1
votes
1
answer
141
views
How to update list from apt list --upgradeable [closed]
Listed Packages for upgrading
I can't seem to make any command work for lists; Sometimes the terminal will instruct me on what to do and it's generally easy to find tips on Google. I've tried sudo apt ...
3
votes
1
answer
283
views
How to manually set system wide proxy used by gnome-control-center in Ubuntu 22
How do I manually from terminal set the value of proxy server read by gnome-control-center? It doesn't use the http_proxy environmental variable and I notice apps such as Browsers uses value in the ...
-1
votes
1
answer
53
views
Re-write a zsh_lf snippet to work in zellij instead of tmux
I am trying to rewrite the code below (source):
_zlf() {
emulate -L zsh
local d=$(mktemp -d) || return 1
{
mkfifo -m 600 $d/fifo || return 1
tmux split -bf zsh -c "...
0
votes
0
answers
44
views
useradd: group '' does not exist when using -g to define primary group upon user creation
I'm following the exploratory exercises from https://learning.lpi.org/en/learning-materials/010-160/5/5.2/5.2_01/ and according to them this should work
yet, when I try this on ubuntu 22.04 ,brand ...
0
votes
0
answers
50
views
Folders created in terminal not showing with ls or in the GUI
I'm new to Linux so I'm following a guide. I've been trying to create a folder unraidshare1 in the media directory:
sudo mkdir -p /media/unraidshare1
No error message but no folder shows up in the ...
0
votes
0
answers
173
views
Flatpak theming Ubuntu 24.04
Recently I started to move every application possible to Flatpak (even some apt apps) as a tryout.
The installation went all right and without any errors. Then I copied the necessary theme and icon ...
0
votes
1
answer
95
views
ubuntu server 24.04 print [0.004s] or bash: 1716451538,009859: value too great for base (error token is "009859") each command
I've just installed ubuntu server 24.04 on bare metall. After each command terminal print "time" in square brakets:
[0.004s]
like
[0.006s] andrey@bonanza-server:~/iso$ rm -r ./*
[0.-55s] ...
0
votes
0
answers
252
views
Input delay on Ubuntu 22.04 terminal
I am facing some issues with my terminal that I run bash and fish shell. I followed the accepted answer that was; input delay on Terminal Ubuntu 22.04.4 but the issue was back.
I must close and re-...
0
votes
0
answers
31
views
When are the pactl list values set up?
I've run into an odd situation.
I'm running pulseaudio in system mode.
I have a udev rule to run a script file when a usb device is removed. In this script I'm checking the aplay -l values and ...
0
votes
1
answer
61
views
Running multiple bash scripts at once
I've like 10 repos running in the same machine, I some times change machines and want to deploy them automatically and fast so I made this script to execute each repo installation file at the same ...
3
votes
1
answer
364
views
How do I install ShengBTE software?
I am totally new user in Ubuntu. For research purpose, I need to install ShengBTE software. In the following I copied the texts which is important for compilation. According to the texts, I downloaded ...
0
votes
2
answers
78
views
can't find launchpad content [duplicate]
Err:13 https://ppa.launchpadcontent.net/gwibber-daily/ppa/ubuntu focal
Release 404 Not Found [IP: 2620:2d:4000:1::81 443] Err:14
https://ppa.launchpadcontent.net/gwibber-daily/ppa/ubuntu disco
...
0
votes
0
answers
167
views
How to start docker desktop using command line on linux
Docker desktop is working fine, I would like to be able to start it using a command line because I wrote a bash script that start every software I need. There does not seem to be a docker-* command ...
0
votes
0
answers
44
views
'screen -ls' command is not displaying the list of screen sessions
I am not able to see the list of screen sessions running using the command screen -ls. Executing this command line yields nothing. Restarting the terminal hasn't helped me to solve the problem. I can ...
1
vote
0
answers
103
views
Extremely slow terminal input is back on Ubuntut 22.04
I ran into this problem before and posted about it, apparently others were having the issue too.
I ran the suggested fix and everything was fine, now it's starting again and I don't know what to do.
0
votes
0
answers
34
views
Existence of utility use distribution dataset?
I'm not sure if this is the right board to ask this. I'm curious if anyone has stumbled upon a dataset or study of terminal input distributions. Separation of data by fields such as general tasks or ...
0
votes
0
answers
18
views
Find the Pulseaudio channel count
How can I check what the channel count is currently? I think I'm at 2 channels but I want to be able to confirm it. I'd like to be able to do it in the terminal with pactl if possible. Also how do I ...
0
votes
1
answer
45
views
How to shutdown a PC at a specified time, with option to cancel?
I have been experimenting with the crontab file and making a .sh script file, but I haven't been able to either: cancel the shutdown or reliably show a message in the terminal as a "warning" ...
0
votes
2
answers
73
views
Live USB changed files
I run Ubuntu live USB in Try Me mode. How to get all changed files and settings?
Example: I boot live USB. I change light mode to dark mode. How to know what file is changed? I want to make own live ...
3
votes
3
answers
394
views
dir command: force output to one filename per line, full path included, but nothing else
This will probably seem to be a simple question for advanced users, but I have tried with no success.
I want to get a file list in the terminal using the dir command, having the following format: only ...
5
votes
3
answers
1k
views
How do I randomize filenames recursively?
I already know how to do it in a given directory:
for file in *.png; do
mv -- "$file" "$RANDOM-$RANDOM-$RANDOM.png"
done
How do I turn this into a recursive command?
-1
votes
1
answer
46
views
I'm trying to install the command tracepath but I get an error "Unable to locate package tracepath"
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package tracepath
I'm using Ubuntu 22.04 LTS.
2
votes
1
answer
37
views
How to get package version in one command line in bash [duplicate]
I'm trying to get the installed version of systemd in the following command, but it returns all lines contain the keyword "systemd".
# dpkg -l | grep " systemd "
ii gnome-logs ...
0
votes
1
answer
77
views
"command not found" while running runuser
I want to execute pm2 -s jlist as the user managing the service.
I can execute the command if I switch to user's shell, but I cannot do the same as root using runuser -l pm2_user -c 'pm2 -s jlist' ...
0
votes
0
answers
110
views
I’ve changed username by sudo usermod now I can’t log in the user account
I was trying to change my username and searching in the internet I’ve found this command:
sudo usermod -l new_username -d /home/new_username previous_username
To apply the changes to all directories.
...
0
votes
1
answer
71
views
Installed thonny using sudo but can't run from desktop
Ubuntu 22.04.4 LTS
kubuntu 22.04
I downloaded the thonny bash script from thonny git.
from terminal i typed sudo bash thonny-4.1.4.bash
it installed fine.
If I run in terminal sudo /root/apps/thonny/...
0
votes
1
answer
58
views
The "sudo add-apt-repository ppa:nemh/systemback" command does not work
I'm trying to create a Live ISO of my linux distribution using a tutorial and to do so it tells me to enter this command:
sudo add-apt-repository ppa:nemh/systemback
problem it returns me this error:
...
0
votes
0
answers
38
views
Asus laptop: keyboard and wifi not working [duplicate]
After installing Ubuntu 24.04 on my Asus Vivobook 14 keyboard,wifi and Bluetooth stopped working.
I need help.
5
votes
1
answer
886
views
Addressing Another Terminal Input Lag with Ubuntu 22.04
Ubuntu 22.04.4 LTS
Kernel : Linux 6.5.0-28-generic
Gnome version: 42.9
Windowing system: X11
I am experiencing another terminal lag with Ubuntu 22.04. Typing is always 1 character late and I am ...
0
votes
0
answers
287
views
Ubuntu 24 stuck on a terminal after restart
Ubuntu 24 was stuck in a terminal screen showing some status. I got access to a terminal by hitting ALT+F2. Then I reinstalled ubuntu-desktop and restarted.
The GUI appears but old installed apps like ...
-1
votes
2
answers
84
views
Logitech Craft on bluetooth
A few years ago I found a web page describing how to connect the specific keyboard logitech craft on ubuntu.
Today it seems this page is gone.
I'm trying to connect via bluetooth. My system sees other ...
2
votes
1
answer
31
views
Ubuntu terminal sudo password not persisting [duplicate]
Is it possible that the same opened terminal (default in ubuntu) will ask for the sudo password from time to time after being provided a password at some point?.
E.g.:
$ sudo service my_service_name ...
0
votes
0
answers
29
views
Terminals types, pseudo and regular
I wouls like to know the difference between TTYs and PTYs I cannot see any difference as a complete beginner. Could anyone help?
0
votes
1
answer
99
views
Download file in the ubuntu terminal
I have a question. My situation is that I host my website on a ubuntu Server and I have clone my github reposentory to it. I could find my file by using the cd command but now the question, is it ...
1
vote
0
answers
35
views
how to extract exact scanimage command from "document scanner" tool
I want to automate my scans that I used to perform with the "document scanner" GUI tool.
I am aware of scanimage command (that is most likely used internally), that can be used as such
...
4
votes
3
answers
414
views
How do I find out a list of journalctl log size by unit?
One of the services on my system is spamming the log and generating a lot of data. I don't know which service it is.
With regular log files, I can use ls -lha to print the size of all the files in the ...
0
votes
2
answers
89
views
How to execute scripts from a samba drive (cifs mounted)?
If I'm starting a shell script "test.sh" from a samba share, I've got an error:
bash: ./test.sh: /bin/sh: Defekter Interpreter: Eingabe-/Ausgabefehler
(bash: ./test.sh: /bin/sh: bad ...
0
votes
1
answer
79
views
Unable to open certain programs such as Pensela on Ubuntu 22.04 LTS
I am having trouble opening certain applications such as pensela.
They appear on my app list as well as go on my dashboard when I add to favorites but whenever I try to open them (whether by clicking ...