IntroToLinux

9. Troubleshooting Common Issues

Command Not Found:

# Check if command exists
which command_name

# Check PATH
echo $PATH

# Check if file exists but not executable
ls -l /path/to/command

Variable Not Set:

# Check if variable exists
echo $VAR_NAME

# List all variables
set | grep VAR_NAME

# Check if exported
env | grep VAR_NAME

Next: → Review Questions
Previous: ← Advanced Environment Concepts
Lesson Home: ↑ Lesson 3: History & Variables Course Home: ⌂ Introduction to Linux