Last active
June 20, 2018 22:29
-
-
Save kimschles/2ab4d4c08f98fe9ad05fcceb558e444d to your computer and use it in GitHub Desktop.
RO Onboarding Shell Commands Part 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Window 1 | |
| echo 'this is file one' > one.txt | |
| echo 'this is file two' >> two.txt | |
| cat one.txt two.txt | |
| cat > three.txt | |
| 'this is file three' | |
| ^d | |
| echo 'i am adding this to file three' >> three.txt | |
| echo 'here is an additional line' >> three.txt | |
| echo 'and another one...' >> three.txt | |
| cat three.txt | sort | |
| cat three.txt | wc -l | |
| cat three.txt | sort | head -3 | |
| # Window 2 | |
| three.txt tail -f | |
| ^c | |
| three.txt tail -f | grep 'file' | |
| three.txt tail -f | grep -v 'file' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment