To change the hidden attributes of a directory, use the chmod command with the appropriate permissions. For example, to make a directory hidden, use chmod 0777 .