Updated SC2024 (markdown)

koalaman
2014-09-11 11:02:34 -07:00
parent b20b80949a
commit 4c5cfe131f

@@ -2,12 +2,8 @@
## Problematic Code: ## Problematic Code:
`sudo ls -hal /root/ > /root/test.out` sudo echo 'export FOO=bar' > /etc/profile
## Correct Code: ## Correct Code:
`sudo sh -c 'ls -hal /root/ > /root/test.out'` echo 'export FOO=bar' | sudo tee /etc/profile > /dev/null
## Source
[http://stackoverflow.com/a/82278](http://stackoverflow.com/a/82278)