provide some basic shell functions.