ubuntu

How to rename files in Linux like the ren command in Windows

How to rename files in Linux like the ren command in Windows I need to rename a bunch of files (more than 100) and want to know how to I do that when the pattern of the files is something like "Filename_01.jpg" to "NameOfFile_01.jpg" In Windows, I would type: ren Filename_*.jpg NameOfFile*.jpg Because of the …

Total answers: 1

How (abc) is parsed in bash

How (abc) is parsed in bash I’m using a program designed for windows that I compiled myself for GNU/linux. The program works in the command line, and one argument looks like this: prgm -arg1 abcd(10)(22) -i files.ext Where (10) and (22) are flags like a, b, c and d. This command is failing because bash …

Total answers: 2

How to find a string in files, said string including line breaks, ", @

How to find a string in files, said string including line breaks, ", @ I know grep allows me to search for a string in files, however I did not manage to find the right method to search for the following string: "snapshot3" : { "@custom_name" : true So the string I am looking for …

Total answers: 1

How can I write my input down to file?

How can I write my input down to file? Recently, I needed to write my terminal output down. And I’ve read this question to find the answer. But now, I would like to write my commands down (which I type in terminal, for example:sudo apt update etc.) to store the history of what I have …

Total answers: 1

With what shared objects are the debug symbols in a debug deb package assocciated with?

With what shared objects are the debug symbols in a debug deb package assocciated with? I am trying to find debug symbols that are associated with various shared objects shipped under the Ubuntu 22.04 distro. For example, let’s consider the amd64 deb package: libssl3 (version 3.0.2-0ubuntu1) which ships a number of stripped shared objects. One …

Total answers: 1

Firefox leaves old snaps on disk

Firefox leaves old snaps on disk I am using Firefox installed through snap (Ubuntu 23.04, snapd/lunar-updates,lunar-security,now 2.59.1+23.04ubuntu1.1 amd64). I have removed all but latest versions due to lack of disk space. Installed should be only the latest version as reported by snap: sudo snap list –all | grep firefox firefox 117.0.1-2 3131 latest/stable/… mozilla** But …

Total answers: 1

Nautilus open terminal in remote edit command

Nautilus open terminal in remote edit command I regularly use the "right click → open in remote terminal" functionality of Nautilus in Ubuntu 22.04. I don’t know the command, but it seems it is doing ssh blah@host, and I would like to add the -X flag so I can open GUI applications from this terminal. …

Total answers: 1

Sources.list Critical Vulnerability link update

Sources.list Critical Vulnerability link update This question is related to this GitHub post. I just wanted to make sure if I got the link correctly and not made an error I replace the ma.archiveUbuntu links with http://security.ubuntu.com/ubuntu Is this correct, or do I do to do something else? Asked By: Vegeto.T || Source If we …

Total answers: 1

Multiple Ubuntu installations in the same disk but different partitions

Multiple Ubuntu installations in the same disk but different partitions I need to install 3 different Ubuntus in different partititions and each installation shouldn’t be able to read data from the others. I thought this was simple installing multiple versions of Ubuntu in different encrypted partitions but I don’t find how I can do this …

Total answers: 1

Ubuntu Chromebok Audio Drivers

Ubuntu Chromebook Audio Drivers Hello Ask Ubuntu users, I installed Ubuntu 22.04.3 LTS on a Levono Ideapad 3 Chromebook. When installing it, I wasn’t able to get the audio to work. I am assuming this is a driver issue. Does anyone have any idea on how to fix this problem? More computer specs (If needed): …

Total answers: 1

Why is the manual of apt incomplete?

Why is the manual of apt incomplete? I would like to see what are the command-line switches of apt list but after 30min of research I don’t manage to find a lot of information about it… I tried to type apt list –help, man apt and man apt-get but didn’t get much information especially about …

Total answers: 1

Webcam stoped working after upgrading from 20.04 to 23.04

Webcam stoped working after upgrading from 20.04 to 23.04 I have this USB webcam that was working fine until I upgraded from 20.04 to 23.04. The webcam still works on Ubuntu 22.04 (I’ve just tested it on another machine). UPDATE: I also tested in 23.10 and it doesn’t work When I connect the webcam to …

Total answers: 1

Security update missing (apt update)

Security update missing (apt update) As a sysadmin, I’m pretty aggressive about the security updates. I’m looking for the best practices when an update is missing in the official repository. Example Sept. 1st, CISA releases a security update about vmware-tools I run ‘apt update && apt upgrade’ on my Ubuntu servers, hoping to install the …

Total answers: 1

if I install 23.04 now can I upgrade it easily to 23.10 next month (Ubuntu)

if I install 23.04 now can I upgrade it easily to 23.10 next month (Ubuntu) I started downloading the 23.04 iso and realized quarter tiling is on 23.10. So I have a choice now between 22.04.04 LTS and 23.04. Wouldn’t mind trying 23.04 if I can upgrade next month to 23.10 easily. Asked By: mLstudent33 …

Total answers: 1

How to add userChrome.js and config-prefs.js to firefox snap

How to add userChrome.js and config-prefs.js to firefox snap I’m tyring to follow this guide on github https://github.com/tsaost/autoload-temporary-addon I’m trying to add the files as described in that repo. Their are two files that need to be added. config-prefs.js userChrome.js so I tried adding /snap/firefox/current/usr/lib/firefox/defaults/pref/config-prefs.js and /snap/firefox/current/usr/lib/firefox/userChrome.js With the command cp /tmp/config-prefs.js /snap/firefox/current/usr/lib/firefox/defaults/pref/config-prefs.js but it …

Total answers: 1

How can I turn off a USB Lamp in Ubuntu?

How can I turn off a USB Lamp in Ubuntu? I bought a USB lamp that I want to turn ON/OFF using commands (my purpose is to setup some CRON jobs to turn it ON at certain times). I researched several answers, but none worked. I tried outputting to /sys/bus/usb/drivers/usb/unbind, /sys/bus/usb/devices/usb1/power/level, the uhubctl tool, using …

Total answers: 1