I’ve seen that rvm (ruby version manager) is installed using the following command:
If I want to make the contents of file2
match the contents of file1
, I could obviously just run cp file1 file2
.
Considering this Q&A about the order of execution in the shell as it relates to redirection, and despite the fact that if a file doesn’t exist it gets created first so that cat example.txt | shuf > example.txt
doesn’t complain that the file doesn’t exist – which just confirms the order from what I understand – then why is it that about once every thousand times on my system the shuffle works when I do this (backup contains 15 static values each on their line)
On my Ubuntu-Desktop and on my debian-server I have a script which needs to be executed each minute (a script that calls the minute-tic of my space online browsergame).
This local command is the reference point. Let’s assume it successfully processes some binary data:
I’d like to know what the minus (-) and the EOC in the command below means. I know some languages like Perl allows you to chose any combination of character (not bound to EOF) but is that the case here? And the minus is a complete mystery for me. Thanks in advance!
I don’t actually need to run the command below, and I am aware of ssh keys if I did want to log in without typing a password. I would just like to know how ssh
seems to circumvent my file redirection.
I have created a simple systemd service file for a custom application. The application works well when I run it manually, but my CPU gets maxed out when I run it with systemd.
I’m using find
with the -exec
option in console, on FreeBSD (for example, find . -exec sha1 {} ;
).