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

Long-time Linux user (since 1994).


May
6
comment Set a screen session name at the command prompt
Why not just use alias newscreen='screen -D -R -S'?
May
6
comment Is there a way to execute the second-to-last command that started with a given string?
You could also use Ctrl-r to search backwards in history
May
6
revised Use IP tables to port forward behind a router?
Make meaningful title
May
6
awarded  Enlightened
May
6
comment XOR of a shell variable and a binary file
This is a description of a logical (boolean) xor operation, not a binary (bit-by-bit) xor the OP was asking for.
May
6
awarded  Nice Answer
May
5
answered Access through samba to link to different filesystem in shared directory (permission error)
May
5
comment Redirect grep out to a file does not work
Have you looked at the size or content of tmp.txt? One reason could be that the output file is also searched by grep, resulting in an infinite amount of results. And how large is the current directory, incl. subdirs?
May
5
answered What does “fno” stand for in g++'s fno-stack-limit compile option?
May
5
comment How do I use the SED command to remove injected code from multiple files?
It's probably a good idea to consider reinstalling the whole server. When the server has been compromised, you can't know what harmful software might be running on it..
May
4
revised vi: move a line by 4 bytes
fixed title
May
4
suggested approved edit on vi: move a line by 4 bytes
May
4
answered How can I know if patch command is working?
Mar
12
comment Why does this executable still execute after I deleted it?
Of course, the executable could have been recreated from a different shell between the ls -la and the ./testedfb.
Mar
8
comment Opening ALSA Microphone in two programs?
I guess something like JACK (jackaudio.org) could do that, but that's not easy to set up , I believe.
Mar
4
awarded  Popular Question
Mar
4
comment List only regular files (but not directories) in current directory
The version using $f works for me. Maybe I have an old bash version? I couldn't find $_ in the Bash manual, even though it does exist.
Mar
4
comment List only regular files (but not directories) in current directory
No. In a directory with two subdirs (1 and 2) and two files (3 and 4), it prints "/bin/sh" twice. Again, what is the meaning of $_?
Mar
4
comment List only regular files (but not directories) in current directory
Which shell is that for? Bash doesn't print anything, I guess because $_ is empty
Feb
24
comment What do $@ and $< in a makefile mean?
@vonbrand yes, pretty sure.