how check is file exist linux

Solutions on MaxInterview for how check is file exist linux by the best coders in the world

showing results for - "how check is file exist linux"
Pietro
04 Jan 2017
1FILE=/etc/resolv.conf
2if [ -f "$FILE" ]; then
3    echo "$FILE exists."
4else 
5    echo "$FILE does not exist."
6fi
7
similar questions
queries leading to this page
how check is file exist linux