Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
575 posts
 
66%
+2 −0
Q&A Alternating 2 keyboard layouts with Key Combination

Sorry it was a typo, _ instead of -, that caused the problem. I want to have a key combination to alter the keymaps. It worked with one for us and one for hu, but now I want to use one key combina...

1 answer  ·  posted 6mo ago by Arpad Horvath‭  ·  edited 6mo ago by Arpad Horvath‭

60%
+1 −0
Q&A How to prevent keyboard layout modifications from affecting external keyboards

Using For the console: /etc/vconsole.conf ---- KEYMAP=dvorak For X Session: .xinitrc ---- setxkbmap -layout us -variant dvorak & Problem For the console, it applies the dvorak lay...

0 answers  ·  posted 7mo ago by mcp‭  ·  edited 7mo ago by mcp‭

77%
+5 −0
Q&A How to invert command exit code?

An exclamation mark followed by space in the beginning of a pipeline will negate the final exit code of the pipeline. Here's an example in Bash. Echoing $? will print out the exit code of the prev...

posted 7mo ago by Iizuki‭  ·  edited 2mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to invert command exit code?

How to apply a logical not to a shell command, e.g. in a Bash script? So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero ...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 13d ago by Quasímodo‭

40%
+0 −1
Q&A How can I restrict filename characters?

A file can be created by the human user directly interacting on the laptop, or indirectly by a program. In principle, you cannot detect statically all file creation calls in a software (even if yo...

posted 7mo ago by Basile Starynkevitch‭

Answer
71%
+3 −0
Q&A How can I restrict filename characters?

You could try and convince Linux kernel maintainers, but they are reticent to that. I wonder what they'll do after POSIX.1-202x (Issue 8) possibly will forbid those. Maybe you could patch your ke...

posted 7mo ago by alx‭  ·  edited 7mo ago by alx‭

Answer
50%
+0 −0
Q&A How to see VRAM with inxi?

What switches do I need to add to see my video RAM (VRAM) with inxi? inxi -G shows my video card model and other info, but not video RAM.

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 6mo ago by matthewsnyder‭

Question inxi
75%
+4 −0
Meta shell and shell-scripting tags: duplicates?

My assumption has been that shell-scripting is for scripts only, not interactive usage. Whereas shell is everything else, like interactive usage. I wish we could edit these descriptions to clarify...

posted 7mo ago by matthewsnyder‭

Answer
77%
+5 −0
Q&A How can I restrict filename characters?

Suppose I want to limit what characters are allowed in filenames. For example, I want file creation to fail if there is a \n in the name. Is there a way to enforce this? If it matters, I prefer a...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Basile Starynkevitch‭

Question filesystem
66%
+2 −0
Q&A Run command with Key Combination in Gnome

Gnome should have a Settings app with a Keyboard shortcut section. Here you can click Add Custom Shortcut which will let you bind any key to any shell-style command. source Unless you are very sur...

posted 7mo ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A How to forward SSH access of one machine, through another, to the rest of a network?

Grove's answer is likewise good, but OpenSSH introduced ProxyJump (-J) in 2016 with v7.3, making it even easier to chain SSH hosts together: ssh -J user@interstitial.example me@destination.example...

posted 7mo ago by Michael‭  ·  edited 3mo ago by Michael‭

Answer
50%
+0 −0
Q&A How to fix the dark mode after the Gnome 1:44 update?

It seems like Gnome requires xdg-desktop-portal-gnome. that has been removed to be installed. It turns out that things used to work due to a fallback path that has been removed now. Installing t...

posted 7mo ago by mr Tsjolder‭

Answer
71%
+3 −0
Meta shell and shell-scripting tags: duplicates?

Is there a difference between these two tags? shell shell-scripting In a sense the first could be a bigger category. E.g. If someone wants to create a new shell, then they may have questions...

1 answer  ·  posted 7mo ago by Arpad Horvath‭  ·  last activity 7mo ago by matthewsnyder‭

Question discussion tag
50%
+0 −0
Q&A Run command with Key Combination in Gnome

Is there a way in Ubuntu (22.04) to run a given bash command for a given Key combination in Gnome (42.9)? This Ubuntu is running in Hyper-V on a Win10 host. (I would like to run the setxkbmap us a...

1 answer  ·  posted 7mo ago by Arpad Horvath‭  ·  last activity 7mo ago by matthewsnyder‭

Question ubuntu gnome
60%
+1 −0
Q&A How to fix the dark mode after the Gnome 1:44 update?

I recently updated Gnome to 1:44.0 and since the update my dark mode settings seem to be ignored for Gnome applications. When setting the dark style in Settings > Appearance, the desktop backgr...

1 answer  ·  posted 7mo ago by mr Tsjolder‭  ·  last activity 7mo ago by mr Tsjolder‭

Question dark-theme gnome
50%
+0 −0
Q&A How to open a port in firewalld?

You add a port to the public zone like so: # firewall-cmd --zone=public --add-port=8080/tcp Firewalld knows already many of the commonly used ports, so you might just use the service name inste...

posted 7mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to open a port in firewalld?

How to open a port when using firewalld as the system firewall?

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 7mo ago by Iizuki‭

Question firewall firewalld
60%
+1 −0
Q&A How to tile multiple small page PDFs on a single standard size PDF?

Suppose I have a PDF which is 2x3 in. I want to create a PDF with a single page, which has multiple copies of this. For example, if the small pieces are in landscape, and the large page is in portr...

0 answers  ·  posted 7mo ago by matthewsnyder‭

Question pdf
71%
+3 −0
Q&A Rename multiple files which have a variable suffix

You can use rename for this. Many distributions package it; for example, it's apt-get install rename in Debian. In normal usage, it is used to apply an arbitrary regular expression substitution ex...

posted 7mo ago by Canina‭  ·  edited 7mo ago by Canina‭

Answer
71%
+3 −0
Q&A Rename multiple files which have a variable suffix

An easy one-liner in POSIX-compatible shells: for f in *-min.jpg-*; do mv -- "$f" "${f%-*}"; done The only (mildly) tricky concept here is ${f%-*}, which expands to $f minus the shortest suffix...

posted 7mo ago by r~~‭  ·  edited 7mo ago by terdon‭

Answer
60%
+1 −0
Q&A Rename multiple files which have a variable suffix

find . -type f -print0 \ | grep -z -- '-min.jpg-[[:alnum:]]*$' \ | while IFS= read -r -d '' f; do find "$f" -print0 \ | sed -z 's/-min.jpg-[[:alnum:]]*$/-min.jpg/' \ | xargs -0 mv ...

posted 7mo ago by alx‭  ·  edited 7mo ago by alx‭

Answer
60%
+1 −0
Q&A Rename multiple files which have a variable suffix

I compressed some JPEGs with curtail it messed up the filenames. It was supposed to only add -min at the end but ended up adding a random string after the extension 😠: prs@PC:/DOWNLOADS/Pictures$ ...

3 answers  ·  posted 7mo ago by Pr. Sunflower‭  ·  edited 7mo ago by matthewsnyder‭

Question renaming
66%
+2 −0
Q&A How to run a command on a list of files?

In some cases, when you want to apply a pipeline or a complex command to each file, I find it useful to use while read: find . -type d \ | while read d; do find $d -type f -maxdepth 1 \ | hea...

posted 7mo ago by alx‭  ·  edited 7mo ago by alx‭

Answer
75%
+4 −0
Q&A How to bypass SSH destination host key fingerprint check?

I'm going to assume that you're using OpenSSH, since that is probably the most common SSH implementation on present-day *nix systems. The easiest is probably to use ssh-keygen -R to delete all kno...

posted 7mo ago by Canina‭

Answer
60%
+1 −0
Q&A How to bypass SSH destination host key fingerprint check?

When you first connect to a host, ssh asks you about saving its fingerprint. If you do, on subsequent connections it will check the fingerprint and refuse to connect if it changed. I get that this...

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Canina‭

Question ssh