cd should replace ~ with home path