Answers for "linux check if file exists in directory"

12

how check is file exist linux

FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
    echo "$FILE exists."
else 
    echo "$FILE does not exist."
fi
Posted by: Guest on October-23-2020

Code answers related to "linux check if file exists in directory"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language