open path using terminal ubuntu

C++
# nautilus /path
$ nautilus /var
Source

Also in C++: