KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
With /bin/bash , how would I detect if a user has a specific directory in their $PATH variable? For example if [ -p "$HOME/bin" ]; then echo "Your path is missing ~/bin, you might want to add it." else echo "Your path is correctly set" fi
Tags (comma-separated)
Save Edits
Cancel