Ask Ubuntu Community Digest

Top new questions this week:

Replace the same text in more than 200 files in the same folder

I have more than 200 files in one folder on Ubuntu 22.04. I would like to search these for a specific text. If the text is found, it should be replaced by another text. How can I achieve this?

user avatar asked by D-T Score of 4
user avatar answered by Rinzwind Score of 13

How can I add a suffix to all file names with a certain extension and keep the extension at the end of the name?

I've been trying to add the suffix _new to all .c files in a certain directory. For example, I want the file named example.c to be called example_new.c. I tried to use a for loop: for i in *.c; do mv ...

command-line batch-rename  
user avatar asked by RaduV Score of 4
user avatar answered by klode Score of 4

PowerShell-like history auto suggestion for Bash

Microsoft added a neat feature in the 7.3.0 release of PowerShell called Predictive IntelliSense which autosuggests commands to enter as you type based on the history. Such a suggestion can be ...

bash 22.04 bash-history powershell  
user avatar asked by adanski Score of 3
user avatar answered by stumblebee Score of 4

videos from non-linux partition dont't play

I installed linux dual boot with windows, now I can't play any videos from another mounted partition. I should also mention that only videos have this problem and I can open pictures, documents, music,...

22.04 video ext4  
user avatar asked by alireza afarinzad Score of 2
user avatar answered by Archisman Panigrahi Score of 2

How to select GA (non-HWE) kernel during Ubuntu Desktop 22.04 LTS installation?

I'm installing Ubuntu Desktop on many computers for my friends and family. I prefer super stability and no kernel upgrades during 22.04 LTS lifecycle. How can I select original kernel GA 5.15 during ...

user avatar asked by keldorn Score of 2
user avatar answered by user535733 Score of 3

Auto-completion puts back-slash before $ mark, how can I disable it? (ubuntu 22.04)

To access files in a directory from another directory, I often set a variable for that directory. For example (so you can try it your self), export dir1=/usr/local/bin and then type ls $dir1/ ...

command-line bash 22.04 environment-variables auto-completion  
user avatar asked by Chan Kim Score of 2
user avatar answered by steeldriver Score of 2

Ubuntu 23.10 asking for TPM recovery key on every boot after firmware update

As the title says, I'm using Ubuntu 23.10 with the newly introduced TPM based FDE, i got a firmware update (for UEFI dbx) the other day so i did the update, then after reboot it asked me to enter TMP ...

uefi 23.10 tpm  
user avatar asked by Starry Score of 2
user avatar answered by Starry Score of 1

Greatest hits from previous weeks:

How do I resolve unmet dependencies after adding a PPA?

Occasionally, when I'm installing stuff, I get an error like the following: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the ...

apt software-installation package-management ppa dependencies  
user avatar asked by jrg Score of 664
user avatar answered by Basharat Sialvi Score of 675

Pending Update of Snap Store

What's with 'Pending Update of Snap Store?'

snap update-manager snap-store  
user avatar asked by Costa Michailidis Score of 372
user avatar answered by user535733 Score of 542

How to delete a non-empty directory in Terminal?

How do I delete the following directory? I typed: rmdir lampp This error comes up: rmdir: failed to remove `lampp': Directory not empty Is there a command to delete all the files in the directory ...

user avatar asked by naveen Score of 780
user avatar answered by Shantanu Banerjee Score of 1106

How to access a usb flash drive from the terminal?

I only have access to the command line. I need to backup my data (on the user folder) to a pen (USB DOK). How can I mount a flash drive manually? What should be the copy command?

command-line mount usb-drive  
user avatar asked by MEM Score of 318
user avatar answered by Oli Score of 452

Installing Broadcom Wireless Drivers

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible. What are the steps to install Broadcom wireless drivers ...

networking drivers wireless software-installation broadcom  
user avatar asked by Fer1805 Score of 401
user avatar answered by Luis Alvarado Score of 460

How do I login as root?

I want to login as root, but when I enter sudo -s and enter password, this message is shown: "you are not in sudoers file", and when I enter su and enter password, this is shown: "authentication ...

sudo root  
user avatar asked by ava Score of 110
user avatar answered by Karlson Score of 81

How do I install a .deb file via the command line?

How do I install a .deb file via the command line?

command-line software-installation  
user avatar asked by TheXed Score of 1420
user avatar answered by Luis Alvarado Score of 1578

Can you answer these questions? "An unexpected error occurred" on Firefox (snap)

When visiting in Firefox (snap), I see this message displayed in the website itself: I clicked the link to install the browser extension, and then I refreshed the page. ...

firefox snap gnome-shell gnome-shell-extension  
user avatar asked by Flimm Score of 1

How to add 500 IP address (Range of IP) in Network File for single interface

Ubuntu 20.04.4 LTS was what I was using. How can a single interface be configured with a 500 IP address ( Ranges of IP address) ? For example I need to configure and ...

20.04 network-manager ip ifconfig ip-address  
user avatar asked by Alvis Fabien Score of 1

How do I get OracleVM VirtualBox to work on Ubuntu 22.04?

I am new to linux and do not have much experience. I already tried to fix this twice and ended up going into emergency boot mode and had to reinstall the operating system. I really need some help so I ...

22.04 virtualbox  
user avatar asked by Aaron Newman Score of 1
You're receiving this message because you subscribed to the Ask Ubuntu community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005