User Tools

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
playground:playground [2026/01/09 08:40] – [PlayGround] normanplayground:playground [2026/10/03 07:37] (current) – external edit 127.0.0.1
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 8: Line 8:
 <code> <code>
 sed -i '/^#/d' sed -i '/^#/d'
 +</code>
 +
 +==== Remove From ssh known_hosts file ====
 +<code>
 +sed -i -n '/#/!p' /root/.ssh/known_hosts
 </code> </code>
 ===== Create Users Trash Bin ====== ===== Create Users Trash Bin ======