Search
Overview A "useless use" or "abuse" of cat occurs when a Unix pipeline (sequence of commands that feed into each other, using the shell | or "pipe" operator) includes a call to cat that is unneces...
I think the Fedora project documentation covers this in the "First" section (emphasis mine): First We are committed to innovation. We are not content to let others do all the heavy lifting on ...
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...
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.
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) <...
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...
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...
Populate an array of the file names and then print how many entries are in the array: $ ( shopt -s nullglob; files=( .* * ); echo "${#files[@]}" ) 124 That will work correctly even if your fi...
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 '*...
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...
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 ...
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...
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...
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...
I vote against the merger. It's true that any LS question is likely to be on topic for PU, at least as I understand the scope of the latter, not being a participant in that community. However, I h...
Less does not display data files normally, but if it were some sort of Xxd. $ bash --norc $ export LESS= $ file -i /var/log/lastlog /var/log/lastlog: application/octet-stream; charset=binary $...
The reason why you don't find this in man ls is that the GNU project (that developed Coreutils) usually provides the complete documentation of its components not in classic manual pages, but in so ...
An article in the GTK blog explains the situation very well, but here is my go at it. In my keyboard layout, accents are handled as dead keys, so to insert "ë", first I type ¨ and then e. Nothing ...
This is originally Ibus' (an input method) behavior. It provides some facilities to extend the basic "input by typing". Examples: Ctrl+Shift+U for hex Unicode input. Ctrl+. for emoji selector. ...
You can edit the file you see in less by pressing v. From the man page: v Invokes an editor to edit the current file being viewed. The editor is taken from the envir...
GNU Screen and Tmux allow you to run command-line programs on a server, and 'disconnect' from them but let them keep running remotely. This is great if your primary computer is a laptop and it has...
Have a look at Xpra. I only use it locally but it's intended to forward from remote hosts as well.
I noticed in winetricks that it can install windows dlls to the wine folder. It even gives an option to install almost all of them at once. When should someone install these instead of staying with...
If a Debian bug number is referenced in the changelog of an uploaded package, it is automatically closed with a generic message: We believe that the bug you reported is fixed in the latest versi...
Technically, you don't need an /etc/hosts file at all if you have some other form of name resolution available - i.e. DNS. In practice, what you have will work nicely, and could be cut down to jus...