285 reputation
39
bio website campderros.com
location
age
visits member for 2 years, 11 months
seen 4 hours ago

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
Sep
4
answered extract lines according to a particular column
May
23
awarded  Popular Question
Oct
28
comment Why do we need “at” command in linux
Also worth pointing out as another difference with cron, is that at retains your environment the way it was when the job was scheduled: same working directory, environment variables, ...
Oct
1
comment Exit vim more quickly
Also, ESC Z Q to exit without saving