2,563 reputation
1229
bio website
location Austria
age
visits member for 3 years, 8 months
seen 1 hour ago

Nov
6
comment Modify a file without creating another file
It's not a standard tool, but I think it deserves more publicity. See the link above , for download and source.
Nov
5
comment Modify a file without creating another file
thanks @nyuszika7h for suggesting multiple improvements. The script was a quick (sloppy) submission. If there are issues left, please let me know - I'm always keen on improving. E.g. I didn't know that echo has any issues. I'll check that.
Nov
5
comment Modify a file without creating another file
I found it here: tools.suckless.org/sbase
Nov
5
comment Modify a file without creating another file
by the way, sed -i internally writes to a temporary file and then moves it into the place of the original file. The option title --in-place is a little misleading.
Nov
5
comment Output of `iw list`: phy_x corresponds to what interface?
graphics card? I'm sure you meant something different...
Nov
5
comment What are the minimum system requirements for ultimate edition 4.2
Dual booting is possible with all Linux distributions, but some make it easier to set up during install. What you should do in the beginning is using a Live USB Drive (i.e. booting the distro from a USB drive without modifying your system at all). That way, you can test the distribution and get familiar with the look and feel.
Nov
5
comment What are the minimum system requirements for ultimate edition 4.2
The OS will just run fine. I assume you also want to play games when you install this kind of distro, so that depends a lot on your graphics card and the requirements of the game. In this sense, the question is not really answerable for us.
Oct
29
comment How to minimize the unnecessary files installed by package dependencies?
I get that you're using a debian derivative, but which distribution exactly? package management is where they might differ
Oct
28
comment How to make sure only one instance accessing the file at a time in a folder?
@JohnWHSmith thanks for this addition, I forgot to mention it.
Oct
27
comment fault-tolerant crond replacement
+1 I'd also do it that way. cheers
Oct
27
comment fault-tolerant crond replacement
Yes, only the former (and also no REST of course). I'm not sure if there exists any cron which has this option. What you can always do is wrap the command you want to run into a shell script, and specify by yourself what success means, write that to the disk (e.g. /root/.jobstatus) and check that file the next time you run the script.
Oct
27
comment fault-tolerant crond replacement
you are looking for an asynchronous cron. Here's a list (easiest to hardest). I'm using the easiest one (cronie)
Oct
20
comment If I install malicious software what may it do?
Your question is very broad/vague, but I think the first part is interesting (if dpkg could already execute malicious code in file.deb).
Oct
17
comment What does this regex mean? <!--.*?-->
Why downvote question and then upvote answers? It looks like legit beginner question. It could benefit from some details (e.g. which regex flavour: vim, perl, extended .. or example usage).
Oct
17
comment Folder alias / Symbolic link to return to back folder
rm 2015 is enough. It will remove the link only (no files)
Oct
17
comment Folder alias / Symbolic link to return to back folder
I just noticed that it is a relative link in your question. so I edited the answer. ~ is the home directory. / is the root node. Also, . is a synonym for the current directory.
Oct
16
comment Can I read and write to the same file in Linux without overwriting it?
sponge is also part of sbase
Oct
16
comment How do I get the exit code of a process, which runs through wine
I don't know about wine, but if $EXECUTABLE talks to stdout or stderr you could grep for an error or message which only appears upon failure. $EXECUTABLE | grep "error" when using a pipe, the variable $? has the exit value of the last program in the pipe. If you're interested in this solution, I can make it an answer.
Oct
16
comment How can I find out if a problem with the USB ports in my laptop is due to hardware or software?
also, do you see any output when running lsusb?
Oct
11
comment Is there a supposed way of installing several versions of a program on linux?
Correct. Almost all software distributed as source code support this. If they don't, you can always point to the compiled binaries (wirhout make install) with the PATH variable.