Depending on what you want, an alias might help, e.g. in your
~/.bashrc:
Keep in mind, that bash is always picky about quoting and whitespace.
Then do logout/login or type
bash if you want to test things and then try
cdw on the commandline.
Type
help alias for short help within bash or
man bash and then
/alias to search system docs.
An even better solution is to install "autojump", see
https://github.com/gsamokovarov/jump
As Ubuntu sudoer type
In your
~/.bashrc add the line
and reload bash.
Autojump will start to remember your visited directories. Aftera directory is learned, you can "jump" to it with a few keystrokes.
If
~/my_working_dir is learned, the command
might work.