DEV Community

Discussion on: Basic UNIX commands

Collapse
 
pbkarlsson profile image
Philip Karlsson

You mentioned the -p flag for rmdir. It can also be used with mkdir, as 'mkdir x/y/z'.

As a few people have mentioned, you can add aliases in your ~/.bashrc.

My favorite is:
mkdcd() {
mkdir $1
cd $1
}
Which makes creating and changing your cwd easy.

And also: cd.. for cd ..