Questions tagged [command-line]
Questions about using the command-line interface (CLI).
21,827
questions
0
votes
0
answers
14
views
how to move 30GB of 80Gb files
I have folder that content +500 videos and folder size is about 80GB
I went to move 30GB of this videos to another folder , but how ?
I'm using terminal and can't install gui desktop
0
votes
1
answer
24
views
Ubuntu Studio 22.04.1 LTS Terminal commands not changing hostname
When I set up my new install I typed in my username and didn't change the suggested hostname so it's currently 'user-hostname' so when I type in Terminal it shows as "user@user-hostname" and ...
-1
votes
0
answers
15
views
rsnapshot is putting a ' ' directry level in the backup path
Yes its adding a beta.0/' '/etc into the path when its run.
These are the lines from the nub config.
backup root@nub:/home/ remote/
backup root@nub:/etc/ remote/
backup root@nub:/usr/local/ ...
-1
votes
1
answer
23
views
Calculate video total video length and output as total with respective folder
I'm working with some videos and I want to measure the total length of videos each folder contains and output it with the respective folder. Current structure is like this.
.
└── Parent folder/
├──...
2
votes
1
answer
60
views
timeshift or equivalent on headless server
I wanted to install timeshift on a headless server. Unfortunately it depends on a mass of GUI that I really don't want polluting a server (for example x11-common etc).
Is there either a way to install ...
3
votes
0
answers
25
views
WSL zsh Shell Prompt Not Updating
Im running Ubuntu 22.04 under WSL and would like to change my prompt info and look from the default.
I did the following
sudo apt install zsh
chsh -s /bin/zsh
I updated the .zshrc file to be PROMPT='%...
-1
votes
0
answers
23
views
How to set ulimit?
I get the following error while setting ulimit as root user.
root@machine:~# ulimit -n unlimited
-bash: ulimit: open files: cannot modify limit: Operation not permitted
I am using Ububtu.
I am root ...
-1
votes
1
answer
71
views
Lost GUI at Boot up. Now it Boots up to command line
I'm using Ubuntu 22.04.1 Desktop LTS (GNU/Linux 5.15.0-58-generic x86_64).
After I updated from 22.04 to 22.04.1 and after the last install I lost me GUI at bootup. I am not sure which app I ...
0
votes
0
answers
27
views
Facing issues when trying to compile the pthread.c my Ubuntu 22.04 via vs code terminal
I have installed pthread using this command in my vs code terminal--> sudo apt-get install libpthread-stubs0-dev
When I try to compile the pthread.c file I am getting below error message. Here ...
2
votes
1
answer
111
views
How do I stop a job in the background from outputing to the terminal? [duplicate]
I ran make in the terminal for Kismet on my Pi and it's been outputting to the terminal every 10 to 15 seconds, regardless of it is being run in the background or not.
I tried using CTRL+Z and running ...
1
vote
1
answer
56
views
grep and awk commands not returning or storing output to the variable
I have been provided a users.csv file containing a list of users_ids of all employees. My task is to loop through this users.csv file for each employee and search if it exists in backup.txt file using ...
1
vote
2
answers
61
views
Terminal not displaying directory, commands executing instantly when pasted; arrow up ==> ^[[A [duplicate]
I'm using Ubuntu 22.04.1 LTS.
I created the user "dom" when I first set up Ubuntu. From then, I created another user, named "schule" that also had sudo rights. Here is how I ...
0
votes
0
answers
18
views
USER is not in the sudoers file - can't install VS code [duplicate]
Just trying to install VS studio. I'm following the project odin tutorial, have downloaded the file, but when I run the next line:
sudo apt install ./code-latest.deb
I get the error:
.
USER is not in ...
3
votes
1
answer
45
views
Listing installed packages using apt list --installed, but only display the package names
I use bash a lot and I was working on a script that I could use to help someone uninstall a package, and in the error message that shows when the package is not on the system, I am trying to figure ...
0
votes
0
answers
28
views
Changes don't get executed on ubuntu, old code are kept running [closed]
I am running a python file on ec2, I change the code in the py.file, and when I reopen the file I can see the changes I made, however when I use comment python3 filename.py. it still execute the old ...
0
votes
0
answers
11
views
Trigger OSK via terminal
I am trying to find a way to trigger OSK via command line. Can quite find the binary though, any idea what would work?
PS, for many many different reasons, I am only looking into solutions for the ...
0
votes
0
answers
26
views
Problem with cdrom source in apt [duplicate]
if you are reading this, thank you, it means you are trying to help me out or you have a similar thing going on on your Ubuntu Jammy Jellyfish.
Translation:
Change disc: 'Ubuntu 22.04.1 LTS _Jammy ...
0
votes
0
answers
41
views
How to integrate C program with init file?
So I am working on building minimal os using busybox. What I want is I want to run my .net program from BIOS. But I am not sure linux will run .net program or not, so to clear my path I am using C ...
1
vote
1
answer
90
views
How to reset `ip a` index to start at `1` and end at `number of devices`
The command ip a shows list of network ports and also shows an index.
For example, 1 for lo and 2 for enp5s0 here:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
0
votes
0
answers
35
views
Why does IPv6 host route gets lost the second time I run "nmcli device reapply port1"?
I set the IPv6 address of port1 with nmcli:
/usr/bin/nmcli connection modify port1 ipv6.method manual ipv6.address 1510::2/64
/usr/bin/nmcli device reapply port1
The first time I run this, the IPv6 ...
0
votes
2
answers
69
views
Is there a fairly complete current stable Ubuntu version Docker container? The Docker.hub one is very stripped down & doesn't have some basic commands
Is there a fairly complete, current, stable version of Ubuntu in a Docker container? I'm running Docker under a 4GB Raspberry Pi 4b with 128GB sd card, soon to be a 256GB M.2 SSD. So I should have ...
-2
votes
0
answers
37
views
mv: cannot move '/home/medicalemergencydrone/goku' to '/System/Resources/Komorebi/goku': Directory not empty
I am trying to set live wallpaper using Komorebi software, but each time I try set the wallpaper I get this error. Please help me with this.
mv: cannot move '/home/medicalemergencydrone/goku' to '/...
3
votes
1
answer
134
views
How do I use the output of "pgrep" with "ps -p"?
I'm trying to display Conkys process uptime. If I type the following into the terminal one line at a time it all works and I get the result I'm after.
getPID=$(pgrep -f conky)
conkyPID=$(ps -p $...
2
votes
1
answer
71
views
Concatenating separate commands that download m4a and converts it to mp3 all in one
I can download the audio using the command below but how can I also convert it into a mp3 file at the same time.
Example: Download m4a file
yt-dlp -f 139 --external-downloader aria2c --external-...
-1
votes
0
answers
18
views
Can't access files on a drive that may be corrupted, how an I recover?
I had a main SSD failure followed by a motherboard failure after getting a new SSD. So I bought an all new motherboard, NVMIE SSD, and I've got everything up and running with a new install of Ubuntu ...
0
votes
0
answers
22
views
Epson XP 3100 printer not printing colour
Using Ubuntu 20.04, I have just changed all colour ink cartridges on my Epson XP 3100 printer with new OEM cartridges. Prior to this I had no problems printing in colour but now I can only print in ...
1
vote
2
answers
73
views
Console welcome message is no longer updating
After logging into Ubuntu 22.04 via SSH, the usual welcome message does not refresh itself any longer and I don't know why this happens. In addition to that I get the following error message when ...
-3
votes
1
answer
50
views
how do i navigate in the terminal [duplicate]
i am new to linux and i am confused on how to navigate to and from between root@2c00d30f31ad:/ and root@2c00d30f31ad:~#
Here is what i am facing:
root@2c00d30f31ad:/alx-pre_course# cd ...
-1
votes
0
answers
40
views
/home/user/subfolders disapeared
I definitely need help:
Some of my ~subfolders disapeared.
They are visible when using the locate command as shown below but cannot be accessed
marc@Dell2:/~$ locate sandBox
/home/marc/sandBox
marc@...
1
vote
1
answer
31
views
Where is the "scripts" directory in Nautilus 43?
Where do you put the scripts that appear in the context menu when you right click in a folder or on a file in Nautilus?
(Screenshot from a previous version of Nautilus)
My scripts used to work just ...
0
votes
0
answers
15
views
opening terminal when save as executed inside a given program for instance Texmaker Ubuntu 22.04.1
Is there a way to open terminal instead GUI when saving a given file inside a given program in Ubuntu?
For instance, after editing a latex document inside Texmaker, I will press Ctrl+S and the GUI ...
0
votes
0
answers
34
views
In a dockerfile, what is the purpose of "#APT::Get::Install-Recommends"?
Inside a Dockerfile I have the lines:
RUN echo '#APT::Get::Install-Recommends "0";' >/etc/apt/preferences.d/99recommends
RUN echo '#APT::Get::Install-Suggests "0";' >>/etc/...
1
vote
0
answers
27
views
Detect if app is really playing something or is silence
I need to determine how much sound is really coming out from specific application as a number from terminal. (this is called silence in pavucontrol) I don't want to detect application current volume ...
-1
votes
0
answers
70
views
Removing additional space and comma from a specific line and column in the JSON file using linux commands
I have a JSON file that has errors in line 1284-column 247, line 1271-column 161, and so on, which I would like to remove using Linux commands.
Specifically, I want to replace double space with single ...
2
votes
1
answer
642
views
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509' in ubuntu 22.04
During the installation of the Apache superset with the direction from the below link
https://asd.learnlearn.in/apache-superset-ubuntu-22/
We are getting the error shown below:
(venv) skt@admin:~$ ...
0
votes
0
answers
17
views
How can installing winamp audio player app in Ubuntu? [duplicate]
first of all I want to ask if the Winamp app can be used in Ubuntu? Because I have used that application for years, I have been using Ubuntu for about three years, and it seems to me better than ...
4
votes
1
answer
121
views
Text color in Terminal window
Is it possible to have a different color for the text that I type from the text for Terminal responses? I have adjusted the text colors using Terminal's Preferences > Unnamed > Colors facility, ...
1
vote
1
answer
24
views
How can I delete non-mp3 files recursively using fish shell?
The tree list is like this:
/Music
|--- folder1
|--- folder2
|--- folder3
| |---- folder3.1
| |---- folder3.2
| \---- folder3.3
|--- folder4
I had tried the command rm | ls -R | grep -v &...
3
votes
4
answers
857
views
Is there any way at the bash command line to compute multiplication and division so that the first 3 digits after the period appear?
I currently use the following to compute the following at the bash command line with commas every three digits:
printf "%'3.f\n" $(((29246636)*4096))
119,794,221,056
The equation needs to ...
0
votes
1
answer
51
views
Bug in Ubuntu Terminal [22.04]
I have a problem that occurs in my Ubuntu terminal, there is an offset that always ends up appearing at the bottom and I can't scroll to the last line.
For information, I use a custom Ubuntu theme, I ...
0
votes
2
answers
53
views
How to recover Ubuntu GUI? [closed]
I was working in Ubuntu 16.04 Xenial.
I was trying to upgrade from Python 3.5 to Python 3.8.
After doing pip install, I checked python3 --version it was still showing version 3.5.
So, I removed python ...
0
votes
0
answers
15
views
Cannot install Lutris on ubuntu 20.04 [duplicate]
I am trying to install lutris but i get this error in terminal:
E: Unable to correct problems, you have held broken packages.
I have tried evrey thing upgrading my system,etc.....
1
vote
1
answer
149
views
Terminal Output Redirected to another user's terminal
I wanted to know if it would be possible to redirect the output of my terminal into another user's (that is part of my group) terminal.
For example, I would like to be able to execute this command :
...
0
votes
1
answer
26
views
Nothing happens when i click google-chrome icon. I get "command not found" errors when i try launching google-chrome from the terminal
I changed my PATH environment variables when i was trying to install Java on my pc, then i tried restoring the old PATH by completely uninstalling java from my pc which caused google-chrome to stop ...
1
vote
2
answers
48
views
Reducing latency before retrieving a local terminal when an SSH session has expired
When working on a remote server, I open an SSH connection in a terminal ssh remote_username@remote_host.
For some reason, if I left this connection idle for too long, the terminal becomes ...
0
votes
1
answer
44
views
i am running ubuntu 22.04 and i cant update
when i type
sudo apt update
it gives my an error
Err:11 https://ppa.launchpadcontent.net/gnome3-team/gnome3/ubuntu jammy Release.
404 Not Found [IP: 2620:2d:4000:1::3e 443]
Reading package lists... ...
0
votes
0
answers
21
views
Creating a bridge device using nmcli
I am trying to create a bridge device in Ubuntu 22.04, so I can set it a a default network for KVM guests. I need bi-directional external (non-NAT communication from and to the guests.
I followed this ...
1
vote
0
answers
33
views
After latest security patches updation of ubuntu 20.04 version, Domain Joined computers are not recognised as member
After latest security patches updation of ubuntu 20.04 version, Domain Joined computers are not recognised as member. Even Local admin account only login can possible. Last two days facing the issue. ...
1
vote
2
answers
72
views
How to tail multiple gz files
To tail multiple log files, I use:
tail /path/to/logs/*.log
To tail a zipped log file:
zcat /path/to/mylog.1.gz | tail
But I'd like to tail multiple zipped log files since the output of the ...
-1
votes
0
answers
29
views
Scanimage: Document feeder out of documents
I am using a script as follows to scan multiple pages from a flatbed scanner without ADF.
scanimage --batch=out_p%04d.jpg --batch-prompt --source Flatbed --format jpeg -d "$SCANNER" --...