Skip to main content

All Questions

Tagged with
1 vote
3 answers
88 views

how do you remove spaces in email addresses using sed?

I have a file with thousands of email addresses with a space inside the email address that shouldn't be there... (example Aaliyah, Graves: Graves [email protected]) as pictured above... I'd like to ...
J Cren's user avatar
  • 21
-1 votes
1 answer
600 views

How to modify a Windows ISO image on Linux?

I am using Ubuntu. I have a Windows 10 consumer ISO image and I want to modify the ISO to remove all editions from it but keep the Pro edition and that will be in index 4, and need to do all that work ...
ali90i's user avatar
  • 1
0 votes
1 answer
160 views

Find MAC addresses of connected Wii Remotes

I want to connect one or more Wii remotes for reading their inputs. From the output of cat /proc/bus/input/devices I can extract data like Sysfs and the input Handlers. The Handers information I use ...
dmw64's user avatar
  • 123
1 vote
0 answers
36 views

Going to the direcory of a file as fast as posible [duplicate]

Is there a way to get to the path of a file as fast as possible and in the least amount of keystrokes. Context: Type cd and then paste the path of a file and then have to go back and hit backspace ...
GumGun's user avatar
  • 11
0 votes
1 answer
45 views

Could linux give clearer error messages to distinguish files from directories?

mkdir temp mkdir: cannot create directory ‘temp’: File exists rm temp/ rm: cannot remove 'temp/': Is a directory Is there any reason why the first error message should not be "Directory exists&...
Simd's user avatar
  • 371
-2 votes
1 answer
51 views

Is there a port of the Windows' REN command for Unix-like operating systems? [duplicate]

I already know the rename command in GNU/Linux. However, it is very complicated and cumbersome because it uses regular expressions. For example, in Windows, I can simply rename files in bulk by typing:...
TranslucentFoxHuman's user avatar
12 votes
2 answers
5k views

Check if current user can run sudo without requiring a password

I want to check if the current user running a BASH shell script has access to passwordless sudo or not. If they don't, I'd rather have the script exit rather than prompting them for a password.
Jay Taylor's user avatar
1 vote
0 answers
325 views

Bash terminal lagging one input behind

After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen. Specifically, if I were ...
Nick Reed's user avatar
  • 173
1 vote
4 answers
296 views

Zip all files in directory to multiple independent outputs

I am trying to zip all files in a single directory into multiple independent output zip files. What I mean by this is that I do not want to produce a split archive; rather I would like multiple zip ...
CopyOfA's user avatar
  • 123
0 votes
0 answers
77 views

apt cache for live build

How can I cache all internet files when building with live-build? lb config --cache true --cache-packages true --cache-indices true does not work (see the last section of the build script and log). ...
wjwrpoyob's user avatar
  • 460
0 votes
0 answers
36 views

Difference in live usb and base

I have booted into the official Debian live USB with debian-live-12.5.0-amd64-gnome.iso. I have changed a few settings (for example, enable touchpad's tap-to-click in system settings and Firefox's ...
wjwrpoyob's user avatar
  • 460
2 votes
2 answers
253 views

Create FAT-formatted disk image that can fit 1G file

I'm struggling to create a FAT-formatted a disk image that can store a file of known size. In this case, a 1 GiB file. For example: # Create a file that's 1 GiB in size. dd if=/dev/zero iflag=...
jdeanwallace's user avatar
3 votes
1 answer
190 views

How to get display to show a pdf properly

When I do: display file.pdf it shows this: I can't resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming ...
Simd's user avatar
  • 371
0 votes
0 answers
28 views

VirtualBox-Redtat 7.9

I'm using Apple Macbook and I have VirtualBox in it. within my Virtual Box I have RedHat 7.9 I need to make a USB drive that i'm connecting into my MacBook visible into redhat. what is the steps ...
Nawar Alqadhy's user avatar
0 votes
2 answers
260 views

Check server's free and reserved CPU

I want to check the free and reserved CPU in a linux server. I found this command mpstat and below is the output: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle ...
DrGenius's user avatar
  • 103

15 30 50 per page
1
2 3 4 5
70