Search
I'm trying to create a .desktop file which opens a file, either inside a Vim server named "VIM" if that server exists, or otherwise using the normal Vim .desktop file. My .desktop file is below. ...
My goal is to create a clickable link in the terminal that opens an executable. I'm trying to do this using thefile: URI. For example, I want to open Blender whose executable is /usr/bin/blender. I...
Since you are using GNOME, these links are probably handled by gio (as opposed to xdg-open or exo-open). GIO and xdg-open use ~/.config/mimeapps.list to figure out how to open a certain link. The f...
Docker stores data under directories like /var/lib/docker/overlay2/xyz123. These sometimes grow very large, and Docker does not provide good instructions for how to easily manage the space used by ...
Suppose I write a Bash function at the command line: $ hello-world() { echo "Hello, world!"; } and I revise (perhaps hitting up-arrow to retrieve it from command history and edit it) and test a...
How to get the version of the currently running Linux kernel? I'm looking for a commandline solution, but feel free to post GUI solutions as well.
I think I finally found a topic the Arch wiki doesn't cover :) I have a Zigbee USB dongle and some Zigbee-capable wireless devices. The dongle is supposed to create a network to which the devices ...
How to reset time in Ubuntu after replacing CMOS battery?
TL;DR BIOS Setup, not Operating System In most systems there is a user-accessible setup page that is part of the BIOS. This is accessed before starting Linux, Windows or any other operating system...
Suppose the machine is short on memory and the OOM Killer has selected a target process to shut down (in order to reclaim memory). How does the OOM killer actually kill the process? Is it done usi...
By default modern Ubuntu versions run the service systemd-timesyncd in the background. It fetches the time at regular intervals and should automatically set your system time when an NTP server is r...
There are probably myriad services for echoing your IP back over HTTP. Here are a couple: curl https://api.ipify.org curl https://ip.me curl https://icanhazip.com
If you just want the minimal set of top-level packages to install on your new system, brew leaves is less verbose than CodeFarmer's brew deps --installed. You get a nice concise list of the packag...
How to configure ZSH shell to print a timestamp on the right hand side of the prompt line when executing a command? I don't want to display the time prior to executing a command. Here's about how ...
The preexec function is called right before executing commands, so it's the place to do this sorta things. This solution is adapted from Dan Berindei's original answer (CC BY-SA 3.0) to a related ...
Suppose I have a directory structure like ├── src │ ├── folder_a │ │ ├── file_w │ │ └── file_x │ ├── folder_b │ │ ├── file_y │ │ └── file_z and I back it up using rsyn...
Wine has options for "Synchronization", like "Esync" or "Fsync". What do these actually do? What is the purpose of such an option? What is the impact to normal usage of a Windows program in Wine?
TL;DR When pacman bugs you for sudo, in bash or zsh (and possibly others but I haven't verified that), run sudo !! Full Answer As I see it you have 2 options: command substitution or an alias (o...
Sometimes your programs fail because the network port they are trying to use is already in use by some other process. How to find out what this other process is?
I am trying to debug an issue with audio playback in MuseScore. During this process, I realised that I had/have no clue about audio playback in Linux (or in general for that matter). I already le...
Over some period of time, I have used a couple tools for local TLS scans and diagnostics. One of them may include pointers for whatever situation you have. Tool Description From Current? ...
Desktop files always have either %u or %U as an argument for the program being launched. E.g. here's a line from my firefox.desktop: Exec=/usr/lib/firefox/firefox %u What does it mean?
They are defined in the Desktop Entry Specification. In fact there are also %f and %F options. They tell the desktop manager how the program handles multiple files. Like if I select a bunch of fil...
I am trying to run Solr 9.5.0 on Windows Subsystem For Linux 2. It crashes with a Segmentation Fault and does not start. I can run it on Windows without an issue. Java version on WSL2: 17 Java ve...
If all else fails, you could create a wrapper shell function to check the output of unrar l (probably by piping to wc -l) and proceed accordingly.