Added more tips (unfinished).
This commit is contained in:
parent
7aae4e6439
commit
bd0c61c18e
16
README.md
16
README.md
|
@ -1,6 +1,6 @@
|
|||
# Random Linux Tips
|
||||
# Random Linux Tips (WIP)
|
||||
|
||||
## 1. Automatically clear cache.
|
||||
### 1. Automatically clear cache.
|
||||
- Description: Move files older than a specific amount of time from your user's ~/.cache directory to the trash.
|
||||
- Requires: [https://github.com/PhrozenByte/rmtrash](rmtrash).
|
||||
- How-To:
|
||||
|
@ -8,3 +8,15 @@
|
|||
$ 0 17 * * * /usr/bin/find ~/.cache/* -mtime +7 -exec /usr/bin/rmtrash -rf {} \;
|
||||
- This command looks at files in ~/.cache every day at 5 p.m. and moves files older than 7 days to the trash.
|
||||
- Additionally: This can also be done using regular "rm" instead of "rmtrash".
|
||||
|
||||
### 2. Clean systemd journal.
|
||||
https://wiki.archlinux.org/title/Systemd/Journal#Journal_size_limit
|
||||
https://wiki.archlinux.org/title/Systemd/Journal#Clean_journal_files_manually
|
||||
|
||||
### 3. Syntax highlight for nano
|
||||
https://wiki.archlinux.org/title/Nano#Syntax_highlighting
|
||||
|
||||
### 4. Repeat a command using watch.
|
||||
|
||||
### 5. Use sudo !!.
|
||||
|
||||
|
|
Loading…
Reference in New Issue