Reputation
569
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 8
Newest
 Nice Answer
Impact
~24k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
Mar
17
comment What differences are between running a command in shell with and without `bash -c`?
The clone lines are where the action is. There is an untraced clone wherein the subshell execve's data. But really, that's it. Bash->date or bash->bash->date.
Mar
3
comment What differences are between running a command in shell with and without `bash -c`?
Are you asking what the advantage is of either approach?
Mar
3
comment What differences are between running a command in shell with and without `bash -c`?
You seem to know a heckuva lot about the system, so I'm not sure where you are coming from with the question. The answer on the face of it is that 'bash -c date' is asking a new instance of bash to run date, whereas 'date' alone runs it without the extra shell.
Dec
10
comment 'This webpage is not available' after 'shutdown -r now'
Seems like you'd want to start with looking at the aws page for the instance?
Nov
23
comment Using dd to clone a disk while mounted - risks?
Yep, or even lower level. You could make a simple mirroring RAID, or you could run rsync periodically, or use a GUI based backup tool. I use the first two. RAID for minimizing downtime, rsync offsite to get backups out of the building.
Nov
23
comment Using dd to clone a disk while mounted - risks?
Edited. Thanks.
Nov
23
revised Using dd to clone a disk while mounted - risks?
Removed superfluous and incorrect information.
Nov
23
answered Using dd to clone a disk while mounted - risks?
Nov
19
answered Pipe filelist into 'git add'
Oct
1
comment why cd function in script doesn't work
Are you asking why your current directory isn't changed after the script is done running?
Oct
1
awarded  Nice Answer
Sep
30
awarded  Yearling
Sep
30
answered Tar is currently reading a 2GB file, and I deleted its only link. How do I stop it from running for an eternity?
Sep
30
answered Problems compiling Kernel 4.2 Under Debian Linux (Jessie)
Sep
30
answered Is developing/testing a linux module safe using a virtual machine?
Sep
28
comment sed Remove lines ending in [0-9]%
Aside: did you know about cat -e? It prints control characters as well.
Sep
24
comment sed Remove lines ending in [0-9]%
Yeah, I was grasping for straws. sed -ri '/^.*[0-9]+%/ d' ~/test.log works for me as well.
Sep
24
comment sed Remove lines ending in [0-9]%
Maybe make it "sed -ri '/[0-9]%$/d' ~/test/Log" to try extended regular expressions? This regex worked for me as well.
Sep
17
awarded  Quorum
Sep
11
comment Portable Linux webserver that does not require sudo, install, and internet
You describe this as a "highly secure server". As someone who has been on both sides of the IT fence, I can assure you that if I had found that a coder had installed a webserver on something I had demarcated as "highly secure", the next step would be a chat with their boss and HR. I'm not trying to rain on your parade, I'm trying to make sure you understand that you might be doing something which could get you fired.