Unix & Linux
Copy only directories with .mp3 files with rsync
I’m trying to copy only folders with .mp3 files in them to another device. And only the .mp3s in them.
The structure looks like this:
How to use watch command with a piped chain of commands/programs
I usually use watch Linux utility to watch the output of a command repeatedly every n seconds, like in watch df -h /some_volume/.
Systemd Restart=always is not honored
Note: I wrote an article on Medium that explains how to create a service, and how to avoid this particular issue: Creating a Linux service with systemd.
Sum values in 5th column that correspond to same field in 2nd column
Considering below file:
Remote desktop (KDE) over SSH reverse tunnel
I have a reverse ssh tunnel through a middleman server set up and working. I’m running Kubuntu 12.04 here and on the remote machine.
Any reason NOT to run Linux in a VM all the time?
I’ve switched to using Arch Linux for most of my day to day work and don’t need Windows for anything but gaming and the couple of apps that aren’t ported to Linux like OneNote. My Linux distribution is hosted in VirtualBox with Windows as host, and I quite like it that way, snapshots are incredibly useful.
Shared, read-write, photo directory tree, for normal users
I.e. what I want is the Linux equivalent of Windows Public/Pictures.
Trying to send multiple text attachments via mail message
Running this script on: “Red Had Enterprise Linux Server release 5.11 (Tikanga)”
What is the Mode_switch modifier for?
Playing with xmodmap I encountered a modifier key I hadn’t heard of: Mode_switch. It seems to have something to do with inserting special characters.