basic unix code