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
569 posts
 
77%
+5 −0
Q&A Get current server of pacman

with pacman --debug We can display the mirrors that pacman uses with the --debug option. For example, when running pacman --debug -Sy, pacman will write lines like these to standard error: debug...

posted 3y ago by Matthias Braun‭  ·  edited 3y ago by Matthias Braun‭

Answer
77%
+5 −0
Meta Red border on question

There are keyboard shortcuts for navigation. Unfortunately they don't seem to be documented in help (at least I couldn't find an entry there), but you can see a list by typing ?. The red frame is ...

posted 3y ago by celtschk‭

Answer
77%
+5 −0
Q&A Is this a robust way to distinguish explicitly installed packages from those pulled in as dependencies?

apt-mark aims to do this: the commands apt-mark showmanual and apt-mark showauto should show you respectively the packages which you explicitly installed and the ones which were added as dependenci...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Q&A Installing Ruby on MacOS 12.2 (or 11.6) produces compilation errors in the downloaded source; how do I fix?

A project I want to work on requires Ruby. I was directed to RVM or rbenv. I tried rbenv first because it has Mac instructions, ran into failures, uninstalled it and installed RVM, and still ran ...

1 answer  ·  posted 2y ago by Monica Cellio‭  ·  edited 2y ago by Monica Cellio‭

77%
+5 −0
Q&A Capture separate _and_ combined stdout/stderr

Using BASH, how can I redirect stdout and stderr each, to two separate files, simultaneously? That's a mouthful, let me clarify a little: I have a hypothetical script that may/will generate outpu...

1 answer  ·  posted 2y ago by jaybeers‭  ·  last activity 2y ago by Quasímodo‭

Question shell bash
77%
+5 −0
Q&A How do I safely replace brew on Big Sur?

I'm still trying to solve my problem with installing Ruby on a new Mac, and some discussions are saying that I need to reinstall brew because of the change from the old chipset to the M1. (I'm jus...

4 answers  ·  posted 2y ago by Monica Cellio‭  ·  last activity 4mo ago by matthewsnyder‭

Question macos-11
77%
+5 −0
Q&A In a bash shell script, how to filter the command line argument list to unique entries only, for processing each?

Here's an alternative that is a one-liner drop-in for your existing script: eval set -- $(printf "%q\n" "$@" | sort -u) It works by escaping the initial arguments, piping the escaped arguments ...

posted 2y ago by r~~‭  ·  edited 2y ago by r~~‭

Answer
77%
+5 −0
Q&A In a bash shell script, how to filter the command line argument list to unique entries only, for processing each?

The solution is to use an associative array to store what you've already seen: #!/bin/bash unset seen declare -A seen for arg in "$@" do if [[ -z "${seen[$arg]}" ]] then ...

posted 2y ago by celtschk‭

Answer
77%
+5 −0
Q&A How do I deal with a "pending update to "snap-store" snap, close the app to avoid disruption" notification in Ubuntu 22.04?

If snap-store itself is preventing the update, it's straightforward: snap-store --quit sudo snap refresh snap-store But sometimes it might be something else, in which case the above solution w...

posted 1y ago by Quasímodo‭  ·  edited 1y ago by Quasímodo‭

Answer
77%
+5 −0
Q&A How to figure out the licenses of files installed from packages?

The Debian Administrator's Handbook: The Inner Workings of the Debian Project: Documentation for each package is stored in /usr/share/doc/package/. (...) The copyright file includes information ...

posted 2y ago by Quasímodo‭

Answer
77%
+5 −0
Q&A How to figure out the licenses of files installed from packages?

On a Linux system, a lot of files are installed from packages, many of which have different licenses (and sometimes different licenses for different files in the package). If I want to figure out ...

1 answer  ·  posted 2y ago by celtschk‭  ·  last activity 2y ago by Quasímodo‭

Question .deb licensing
77%
+5 −0
Q&A How to run a command on a list of files?

There are several options, like xargs and for. I'll leave those for other answers and only describe my favorite, GNU Parallel. You will have to install it separately, because unlike the inferior xa...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
77%
+5 −0
Q&A How to convert Flac to Mp3 with FFmpeg?

I have a directory filled with Flac audio files and I would like to convert them all to Mp3. How do I go about this using FFmpeg? I am using the git FFmpeg and Slackware -current.

2 answers  ·  posted 11mo ago by andrew.46‭  ·  last activity 11mo ago by matthewsnyder‭

Question FFmpeg Mp3
77%
+5 −0
Q&A When a command takes filenames as argument, how can I avoid creating temporary files?

What you're looking for is called process substitution. In Bash and many bash-like shells, you can use <(foo_command --with --arguments) instead of the file path: diff <(ls /home/alice) &lt...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by BryKKan‭

Answer
77%
+5 −0
Q&A How to get number of files in directory

Populate an array of the file names and then print how many entries are in the array: $ files=( * ) $ echo "${#files[@]}" 124 That will work correctly even if your file names contain newlines...

posted 1y ago by Ed Morton‭

Answer
77%
+5 −0
Q&A When a command takes filenames as argument, how can I avoid creating temporary files?

This other answer uses process substitutions. Not every shell supports this feature. If your OS provides pathnames for file descriptors (/dev/fd/N or /proc/self/fd/N) then you can use them to achie...

posted 11mo ago by Kamil Maciorowski‭

Answer
77%
+5 −0
Q&A Copy to clipboard from terminal with Vim bindings

Question How do I copy to clipboard from terminal with yy, assuming it's configured to use Vim bindings? I am using zsh with bindkey -v. MWE Enter something on the commandline (without pressi...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 9mo ago by Mithical‭

77%
+5 −0
Q&A Recursively remove files with the same name as the ones that end in `.part`

I want to remove all files with the ".part" extension in the current directory and its subdirectories, including files with the same name but different extension. Is this correct? find . -name '*...

3 answers  ·  posted 1y ago by ShadowsRanger‭  ·  last activity 11mo ago by jimbobmcgee‭

Question find remove
77%
+5 −0
Q&A How to convert PDF to docx

If your goal is to make small edits to the resulting document, you can use LibreOffice with the following command: soffice --infilter="writer_pdf_import" --convert-to docx document.pdf This wil...

posted 1y ago by samcarter‭  ·  edited 1y ago by samcarter‭

Answer
77%
+5 −0
Meta Split "installation" into "OS-installation" and "software-installation"

I would like to recommend splitting the "installation" tag into one for "OS-installation" and "software-installation". Although both are installation processes, the challenges associated with them ...

1 answer  ·  posted 11mo ago by AdminBee‭  ·  edited 10mo ago by Quasímodo‭

77%
+5 −0
Meta Split "installation" into "OS-installation" and "software-installation"

This sounds like a good idea. Installing an OS is a very different task to installing a piece of software on that OS and you can have experts in either of them with the two groups not necessarily o...

posted 11mo ago by terdon‭

Answer
77%
+5 −0
Q&A How can I use SIGUSR1 or SIGUSR2 without risk of terminating the process?

If you are about to start the tool Start the tool from a process that already blocks or ignores SIGUSR1 and/or SIGUSR2 and let the tool inherit these settings. A blocked signal, when generated, w...

posted 10mo ago by Kamil Maciorowski‭  ·  edited 10mo ago by Kamil Maciorowski‭

Answer
77%
+5 −0
Q&A What unexpected things can happen if a user runs commands expecting a text file on input lacking a file-final newline?

It is often taught that in Unix/Linux text files should end with newline characters. The reason given (orally) to me by various sources was that "some commands (such as wc) assume or require a newl...

2 answers  ·  posted 10mo ago by Lover of Structure‭  ·  last activity 10mo ago by tripleee‭

77%
+5 −0
Q&A Adding Python 3.11 to `$PATH`

I built Python 3.11 from source (from GitHub python/cpython branch "3.11"). Here is what I did (after downloading the repo as ZIP) cd Downloads 7z x cpython-3.11.zip cd cpython-3.11 chmod +x c...

2 answers  ·  posted 1y ago by HGStyle‭  ·  last activity 11mo ago by terdon‭

77%
+5 −0
Q&A What are the concrete security risks of forcibly terminating a process?

I'm using the Gnome System Monitor in Linux Mint. Whenever I attempt to "End" or "Kill" a process, I am given this warning via a modal dialog (emphasis mine): Killing a process may destroy data,...

2 answers  ·  posted 8mo ago by Karl Knechtel‭  ·  last activity 24d ago by Kamil Maciorowski‭

Question security kill