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.
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?
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
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.
Sep
10
comment Portable Linux webserver that does not require sudo, install, and internet
The absurdity is that you are trying to build things on a server where the sys-admin in charge clearly doesn't want you or anyone else building stuff. If this is needed for the business, make the business case to that person or their boss.
Sep
10
comment Portable Linux webserver that does not require sudo, install, and internet
If you don't have a c compiler there, you will have to build one on another machine. If there is a business case for you have these capabilities, I'd suggest you talk to someone in charge. This is getting absurd.
Sep
10
comment Can grub load a kernel from HTTP?
Wow, do they ever not make that ability clear. But it's there. A great idea is to spend some time trying to boot from crazy places from the command line of grub, it'll teach a lot.
Sep
7
comment Can't enable network adapter
Yeah. I just did some research and it seems like 6.7 might not have the alx driver included. This might be a case of the conservative nature of RHEL and therefore CentOS. Is there a reason why you went with CentOS?
Sep
7
comment Can't enable network adapter
The "alx" driver is seemingly what you want. Try "sudo modprobe alx".
Sep
7
comment Can't enable network adapter
lspci queries the cards directly to get identification strings, so it's unlikely the card is "off". The next question is whether there is a driver which recognizes it.
Mar
5
comment Error - Segmentation Fault
So: sudo chown -R $hippa .
Mar
5
comment Error - Segmentation Fault
The '.' at the end isn't punctuation. It's Unix-speak for "the current directory". Unix-speak for "the current directory's parent" is ".." If you run "ls -a" you'll see them.
Mar
5
comment Error - Segmentation Fault
My concern is that something else has the wrong permissions, and a program is getting an error message instead of the expected output, which might cause a seg fault.