User Tools

Site Tools


playground:playground

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 [2025/05/14 08:58] – external edit 127.0.0.1playground: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  =====
 +
 +<code>
 +sed '/^#/d'
 +</code>
 +<code>
 +sed -i '/^#/d'
 +</code>
 +
 +==== Remove From ssh known_hosts file ====
 +<code>
 +sed -i -n '/#/!p' /root/.ssh/known_hosts
 +</code>
 +===== Create Users Trash Bin ======
 +
 +<code>
 +cd /to/folder
 +</code>
 +<code>
 +mkdir -m777 -v .Trash-$UID
 +</code>
 +
 +<code>
 +chown $USER .Trash-$UID
 +</code>
playground/playground.1747213096.txt.gz · Last modified: by 127.0.0.1