Episode 2: The Terminal
June 13, 2022 ยท View on GitHub
Opening the Terminal
If you are on a Mac, you can find the terminal in the Applications/Utilities folder:
On a Mac, our favorite shortcut to open the Terminal.app is to press Command+Space and type terminal into the Spotlight search:
Terminal Commands
Here is a summary of the terminal commands we covered in this episode:
ls: shows the contents of the current directorymkdir NewDirectory: creates a new directory calledNewDirectorycd NewDirectory: navigates into a directory calledNewDirectoryopen .: opens the current directory in the macOS Finder appclear: clears the terminaltouch some_file.py: creates a new, empty file calledsome_file.pymv some_file.py main.py: renames thesome_file.pyfile tomain.pyrm main.py: removes (deletes) the filemain.pyrm -r SomeDirectory: removes a folder calledSomeDirectory
Links
- iTerm2: https://iterm2.com
- Wiliam's open source work: https://github.com/williamFalcon
- Sebastian's open source work: https://github.com/rasbt
Questions or Suggestions?
If you have questions or suggestions, please don't hesitate to reach out to William (@_willfalcon) and Sebastian (@rasbt) on Twitter or join our Slack Channel. For more episodes, also check out the Lightning Bits: Engineering for Researchers.