title: Rename file/directory name in linux
body: <p>How to replace the below filename(Windows supported format) with customised name through linux command line. Below is just one sample case. I have 100 plus files in my test directory, hence i need a automate way, instead of manually entering 'mv' command for everyfile.</p>
  
  <pre><code>C:\Users\admin\Desktop\PCAP_Storage\TROJAN_MISC_ZEUS-DERIVATIVE
  to 
  TROJAN_MISC_ZEUS-DERIVATIVE
  </code></pre>
  
  <p>I have tried one method, result in error</p>
  
  <pre><code>test@localhost:~$ rename 's/C:\Users\admin\Desktop\PCAP_Storage\//g' C:\Users\admin\Desktop\PCAP_Storage\TROJAN_MISC_ZEUS-DERIVATIVE
  Substitution pattern not terminated at (user-supplied code).
  </code></pre>
  
  <p>Tried ignoring special character as well.</p>
  
  <pre><code>test@localhost:~$ rename 's/C:\\Users\\admin\\Desktop\\PCAP_Storage\\/' C:\Users\admin\Desktop\PCAP_Storage\TROJAN_MISC_ZEUS-DERIVATIVE
  Substitution replacement not terminated at (user-supplied code).
  </code></pre>