A new directory can be created by simply using the mkdir command, and an empty directory can be deleted using the rmdir command. Directories which are not empty cannot be deleted as easily. Say we want to create a subdirectory in our programs directory:
$ls -F d e f* $mkdir p $ls -F d e f* p/
... and then delete it again:
$rmdir p $ls -F d e f* $