- Explain what the command line is.
- Explain why the command line is important.
- Use the command line to interact with your machines operating system.
Turn to your neighbor and discuss what the command line is. Be prepared to share your comments with the class.
Turn to your neighbor and discuss why the command line is important. Be prepared to share your comments with the class.
whoami
- Home directory
- Working directory
pwd
- Relative path
- Absulote path
ls
- Command flags
man
echo
tree
- Root directory
- Parent directory
cd
- Tab completion
mkdir
touch
rm
>
vs>>
cat
less
history
sort
- Piping (
|
) - curl
grep
mv
cp
rm -r
- Filename permissions
- https://gist.githubusercontent.com/rogerwschmidt/8a1aba88b8f2ee0d032a181cabfddccb/raw/74c1090c41665cc19d20cf0a126261d1a97073bc/books.txt
- Use
curl
to download text from the link above and>
to save it to a file called books.txt - Practice using
cat
,|
,grep
andsort
on books.txt