Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| playground:playground [2025/05/14 08:58] – external edit 127.0.0.1 | playground:playground [2026/01/09 08:40] (current) – [PlayGround] norman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PlayGround ====== | ====== PlayGround ====== | ||
| + | ===== Delete all lines beginning with a # from a file ===== | ||
| + | |||
| + | < | ||
| + | sed '/ | ||
| + | </ | ||
| + | < | ||
| + | sed -i '/ | ||
| + | </ | ||
| + | ===== Create Users Trash Bin ====== | ||
| + | |||
| + | < | ||
| + | cd /to/folder | ||
| + | </ | ||
| + | < | ||
| + | mkdir -m777 -v .Trash-$UID | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | chown $USER .Trash-$UID | ||
| + | </ | ||