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 [2025/05/14 08:58] – external edit 127.0.0.1playground:playground [2026/01/09 08:40] (current) – [PlayGround] 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>
 +===== Create Users Trash Bin ======
 +
 +<code>
 +cd /to/folder
 +</code>
 +<code>
 +mkdir -m777 -v .Trash-$UID
 +</code>
 +
 +<code>
 +chown $USER .Trash-$UID
 +</code>