Validation Commands
Path Checking
check Command
pathmaster check
Validation Checks
Directory existence
Read permissions
Path syntax
Duplicate entries
Invalid characters
Output Format
Validating PATH entries:
✓ /usr/local/bin
✓ /usr/bin
✗ /non/existent/path
✓ /bin
Path Cleanup
flush Command
pathmaster flush
Features
Removes invalid entries
Creates backup first
Updates shell config
Shows removal summary
Maintains valid paths
Process
Backup creation
Path validation
Invalid path removal
Shell config update
Status report
Example Output
Creating backup... Done
Checking PATH entries...
Removing invalid path: /non/existent/path
Removing invalid path: /old/tool/bin
Updated shell configuration
Removed 2 invalid entries
Common Use Cases
System Maintenance
# Regular PATH cleanup
pathmaster check
pathmaster flush
Installation Cleanup
# After software removal
pathmaster check
pathmaster flush
Path Verification
# Before adding new paths
pathmaster check
Best Practices
Regular Validation
Schedule regular checks
Review invalid paths
Document removals
Keep backups
Cleanup Process
Check current PATH
Review invalid entries
Backup if needed
Run flush command
Verify changes
Error Handling
Check error messages
Verify permissions
Review shell config
Test PATH updates