Clears the current working directory. Avoids fatal typos.
Execute clearwd
in the shell and it will remove all files, directories, and subdirectories. It additionally takes path arguments, clearing all files in the specified path.
clearwd
would remove all files and directories recursively in the ./
directory
clearwd foo bar
would clear directories foo
and bar
First, python must be installed
Then, clearwd
can be moved to path in /usr/local/bin/
with mv clearwd /use/local/bin