User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
playground:playground [2026/10/03 07:35] – [Delete all lines beginning with a # from a file] normanplayground:playground [2026/10/03 07:37] (current) – [Delete all lines beginning with a # from a file] norman
Line 1: Line 1:
 ====== PlayGround ====== ====== PlayGround ======
  
-===== Delete all lines beginning with a # from a file =====+===== Delete all lines beginning with a # from a file  =====
  
 <code> <code>
Line 10: Line 10:
 </code> </code>
  
 +==== Remove From ssh known_hosts file ====
 <code> <code>
 sed -i -n '/#/!p' /root/.ssh/known_hosts sed -i -n '/#/!p' /root/.ssh/known_hosts