title: How to delete a word in iTerm in mac os
body: <p>I am using iTerm as a terminal in my mac. I am not able to delete a word in command line for ex in command <code>cd /path/to/dir</code>, i want to delete just <code>path</code> word , then how can i do that in iTerm.</p>
  
  <p>basically what is the shortcut to delete a word in iTerm. </p>
  
  <p>I looked at <a href="https://apple.stackexchange.com/questions/154292/iterm-going-one-word-backwards-and-forwards">https://apple.stackexchange.com/questions/154292/iterm-going-one-word-backwards-and-forwards</a> and <code>fn+option+delete</code> is just deleting a single character, not the whole word.</p>