Reputation
312
Top tag
Next privilege 500 Rep.
Access review queues
Badges
3 9
Impact
~4k people reached

May
21
revised How can I end a here-document that starts with <<\\$fff?
escape title backslashes
May
21
suggested approved edit on How can I end a here-document that starts with <<\\$fff?
May
4
comment What the equivalent of “grep | cut” using sed or awk?
You can remove the first cat: grep email2 /etc/emails.conf | ...
May
4
answered What the equivalent of “grep | cut” using sed or awk?
Mar
19
awarded  Good Question
Mar
19
comment What else apart from /etc/localtime and $TZ affects `date`?
Totally right, the file belongs to the package tzdata and rpm -V tzdata shows that the UTC zone files have been modified. After reinstallingtzdata everything works as expected.
Mar
19
accepted What else apart from /etc/localtime and $TZ affects `date`?
Mar
19
comment What else apart from /etc/localtime and $TZ affects `date`?
It seems you were right, someone tried to overwrite /etc/localtime without realizing it was a symlink, so it overwrote the UTC zonefile instead.
Mar
19
revised What else apart from /etc/localtime and $TZ affects `date`?
added 966 characters in body
Mar
18
awarded  Editor
Mar
18
revised What else apart from /etc/localtime and $TZ affects `date`?
edited title
Mar
18
comment What else apart from /etc/localtime and $TZ affects `date`?
That doesn't answer the question but workarounds the effects. I want to know what else can be affecting the date command, not what I have to do to tell date to give me the UTC time. If my /etc/localtime pointed to another timezone this workaround would be useless.
Mar
18
comment What else apart from /etc/localtime and $TZ affects `date`?
@StéphaneChazelas updated with more info
Mar
18
revised What else apart from /etc/localtime and $TZ affects `date`?
added more info
Mar
18
asked What else apart from /etc/localtime and $TZ affects `date`?
Mar
17
awarded  Notable Question
Feb
24
answered How to tell if output of a command or shell script is stdout or stderr
Feb
2
comment What does `. /path/command` do? (Space after dot, absolute path)
for bash builtins you can use help, as in help source or help .
Jan
17
comment Is 'echo “Defaults insults” >> /etc/sudoers' safe?
If he just wants to add Defaults insults why going through a tempfile and using visudo. Just umask 0377 && echo 'Defaults insults' > /etc/sudoers.d/insults to enable, and rm /etc/sudoers.d/insults to disable
Jan
16
comment Is 'echo “Defaults insults” >> /etc/sudoers' safe?
@muru writing a new /etc/sudoers.d/insults is the right answer to the OP's problem, althought not the answer to the question asked. If you would write it down as answer I would upvote it