When using 'gcc' -Os option not accepted
sleep
command produces sleep: cannot read realtime clock
Can no longer perform:
sudo cat XXX >> YYY
Results in Permission denied
where XXX and YYY are owned by root
When using 'gcc' -Os option not accepted
sleep
command produces sleep: cannot read realtime clock
Can no longer perform:
sudo cat XXX >> YYY
Results in Permission denied
where XXX and YYY are owned by root
Under Ubuntu 20.04 gcc -Os for optimize for size does not work am using gcc -s
and cat issue has been fixed with cat AAA | sudo tee -a BBB >/dev/null
And the shell 'sleep' command not working on WSL turned out to be a 'libc' issue.
sudo cp XXX >> YYY
to fail since cp needs a destination operand instead. – Kulfy May 01 '20 at 08:13sudo cat XXX >> YYY
,sudo
was attached to thecat
not the text redirection. That's why permissions were denied. See How to solve “permission denied” when using sudo with redirection in Bash? – Kulfy May 02 '20 at 15:39gcc -Os
? As of now it seems you're asking 2 questions in a single question which might make this question too broad. Consider asking one question in a post. – Kulfy May 07 '20 at 15:45