2,584 reputation
41230
bio website none
location Copenhagen, Denmark
age 41
visits member for 3 years, 3 months
seen yesterday

Long-time Linux user (since 1994).


Dec
9
comment Script thinks input is a command?
Put a space between the [ and the following text. This ought to fix it
Nov
14
awarded  Nice Answer
Nov
10
awarded  Notable Question
Nov
5
comment Modify a file without creating another file
The vi and sponge solutions also create temporary files to do their work...
Oct
25
answered Qt application gray on OpenBox when launched from autostart.sh
Oct
20
comment Shell script written in a different shell than what my current shell
The only thing I would add is if you execute the script using . script.sh or source script.sh, it will use your current shell, not spawn a new one. Which means that then it will make a difference what shell you are using.
Oct
8
reviewed Edit Why the S_ISUID and S_ISGID mode bits got cleared when the owner or group of an executable file are changed by an unprivileged user
Oct
8
revised Why the S_ISUID and S_ISGID mode bits got cleared when the owner or group of an executable file are changed by an unprivileged user
removed unnecessry text
Sep
30
awarded  Explainer
Sep
16
awarded  Yearling
Sep
10
awarded  Notable Question
Aug
26
comment Login by ssh , exec one command and i don't want to quit the bash
I achieved the same by changing the PS1 setting in the .bashrc of all remote machines I was working on (30+ servers). This means some setup work, but then you can just ssh into the machines..
Aug
26
revised Pattern replacement
deleted 4 characters in body
Aug
26
answered Pattern replacement
Aug
22
answered MySQL different database location
Aug
19
reviewed Looks OK Get text between a word and the last line?
Aug
18
comment Why doesn't the sudo command need the root password?
The answer should really start with the setuid part, because that's the reason that it is actually possible. /etc/sudoers is just the reason for the flexibility of the sudo command.
Aug
6
revised How do you get fgrep to find the literal “--help”?
added 216 characters in body
Aug
5
answered How do you get fgrep to find the literal “--help”?
Aug
4
comment Why am I getting “Job for httpd.service failed…,” and how do I go about fixing it?
What happens when you start apache directly with /usr/bin/apachectl start?