File System Navigation
Basic navigation commands for moving through directories
navigationNavigation: Commands to move through the directory structure and view current location
# Current directory
pwd # Print working directory
cd # Go to home directory
cd ~ # Go to home directory
cd / # Go to root directory
cd .. # Go up one directory
cd - # Go to previous directory# Directory listing
ls # List files in current directory
ls -l # Long format (detailed)
ls -a # Show hidden files
ls -la # Long format with hidden files
ls -lh # Human-readable file sizes
# Directory operations
mkdir dirname # Create directory
mkdir -p path/to/dir # Create nested directories
rmdir dirname # Remove empty directory
rm -rf dirname # Remove directory and contents (careful!)