Ubuntu: if [ -e $name ]; what -e does?



Question:

Someone could helps me saying me what -e does within an if construct an followed by a directory or file? thanks very much


Solution:1

See man test for details. -e returns true if the file or directory exists, and false if it doesn't.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »