appendix-a

appendix A  Command reference

 

This appendix provides a comprehensive reference for all commands used throughout this book. Bookmark this section for quick lookup as you work through projects.

A.1 Terminal (macOS/Linux) commands

Tables A.1 through A.5 list the fundamental shell commands you need for navigating your filesystem and managing files.

Table A.1 Navigation and filesystem commands

Command

Description

Example

Notes

pwd

Print current working directory

pwd

Shows your current location

ls

List files in directory

ls

Basic file listing

ls -la

List all files with details

ls -la

Includes hidden files and permissions

ls -lh

List files with human-readable sizes

ls -lh

Shows KB, MB, GB instead of bytes

cd

Change directory

cd ~/projects

Navigate to a folder

cd ..

Go up one directory

cd ..

Move to parent folder

cd ~

Go to home directory

cd ~

Shortcut to /Users/yourname

cd -

Go to previous directory

cd -

Toggle between two directories

A.2 Homebrew commands

A.3 Ollama commands

A.4 Python and pip commands

A.5 Streamlit commands

A.6 Source code repository for this book

A.7 Git commands

A.8 Quick reference card