Does a duplicate entries in a PATH variable revoke the precedence given by the first entry?
If I have a PATH variable that (when exploded onto multiple lines) contains something like this (with a few notes added by me):
If I have a PATH variable that (when exploded onto multiple lines) contains something like this (with a few notes added by me):
“not sure I understand idempotent well enough to understand the answer”.
I’m fine customizing most settings in LS_COLORS. I don’t need help customizing the colors for different file suffixes. What I would like to do is configure special colors for certain directories, based on their suffix.
I’m trying to make a .desktop file for Minecraft. Nothing appears to happen upon executing the file. I’ve tried assigning the Exec key as follows:
I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi). I can do this with sshfs (auto mount in fstab) when I set up a blank rsa key, but when I try to use an actual key, like 123, the raspberry pi filesystem wont mount. This is pretty obvious, since I have to supply the passphrase, but is there a way to have it ask for the passphrase when I first try to access /home/my_name/raspberrypi, or do something similar to that? Because if someone gets my laptop, they dont need to put a password or anything in to get access to my raspberry pi, if I leave the rsa key blank. I have looked into autofs, and autosshfs, but autosshfs won’t download, and autofs doesn’t explain how to mount with an actual rsa key (well, I haven’t found a guide on how to). I’m using arch Linux, latest version. Here is the fstab entry:
If I have partition /dev/sda1 which is mounted on root /, and I have partition /dev/sdb1 which is mounted on /var, is there a way I can access original contents of /var on sda1 without first unmounting sdb1?
I have a bash script which uses rsync to backup files in Archlinux. I noticed that rsync failed to copy a file from /sys, while cp worked just fine:
I want to split 'hello' into h e l l o in an array using only bash, I could do it in sed with sed 's/./& /g' but I want to know how to split a string into an array in Bash when I do not know what the delimiter would be, or the delimiter is any single character. I don’t think I can use ${i// /} without some creativity because the delimiter is an unknown, and I don’t think that expression accepts regex. I tried using BASH_REMATCH with [[ string =~ ([a-z].).* ]] but it doesn’t work as I expected. What is the proper way to use only bash to accomplish a string.split() type of behavior? The reason is that I am trying to write the rev utility in all bash:
I was hacked this morning!