dir methods with sudo