make header format yaml
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "android"
|
||||
tags: [ "system", "phone" ]
|
||||
title: android
|
||||
tags:
|
||||
- system
|
||||
- phone
|
||||
---
|
||||
# mtpfs
|
||||
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
---
|
||||
title: "Ansible Basics"
|
||||
tags: [ "system", "ansible", "orchestration" ]
|
||||
requires: [ "ssh", "pass" ]
|
||||
title: Ansible Basics
|
||||
tags:
|
||||
- system
|
||||
- ansible
|
||||
- orchestration
|
||||
requires:
|
||||
- ssh
|
||||
- pass
|
||||
---
|
||||
|
||||
# Start Locally
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
---
|
||||
title: "Ansible with Docker"
|
||||
tags: [ "system", "ansible", "docker" ]
|
||||
requires: [ "docker", "ansible" ]
|
||||
title: Ansible with Docker
|
||||
tags:
|
||||
- system
|
||||
- ansible
|
||||
- docker
|
||||
requires:
|
||||
- docker
|
||||
- ansible
|
||||
---
|
||||
|
||||
'Docker module', you say?
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Store Host Password"
|
||||
tags: [ "system", "ansible" ]
|
||||
title: Store Host Password
|
||||
tags:
|
||||
- system
|
||||
- ansible
|
||||
---
|
||||
|
||||
Make a hosts file with one host (your computer) and one variable, just to test:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "at"
|
||||
tags: [ "basics", "time" ]
|
||||
title: at
|
||||
tags:
|
||||
- basics
|
||||
- time
|
||||
---
|
||||
Install with:
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "awk"
|
||||
tags: [ "system", ".csv" ]
|
||||
title: awk
|
||||
tags:
|
||||
- system
|
||||
- .csv
|
||||
---
|
||||
# Basics
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "bash tips"
|
||||
tags: [ "shell", "POSIX" ]
|
||||
title: bash tips
|
||||
tags:
|
||||
- shell
|
||||
- POSIX
|
||||
---
|
||||
## Track Live Changes
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Instantly cd anywhere in bash"
|
||||
tags: [ "system", "bash" ]
|
||||
title: Instantly cd anywhere in bash
|
||||
tags:
|
||||
- system
|
||||
- bash
|
||||
---
|
||||
|
||||
Change locations quickly with the `bash` built-in variable: `$CDPATH`.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "character-encoding"
|
||||
tags: [ "system", "encoding" ]
|
||||
title: character-encoding
|
||||
tags:
|
||||
- system
|
||||
- encoding
|
||||
---
|
||||
|
||||
Convert a text file from one encoding type to another with:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Clean Your Downloads"
|
||||
tags: [ "system", "tmpfs" ]
|
||||
title: Clean Your Downloads
|
||||
tags:
|
||||
- system
|
||||
- tmpfs
|
||||
---
|
||||
|
||||
'Downloads` directory always too full of crap?
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "clock"
|
||||
tags: [ "basics", "time" ]
|
||||
title: clock
|
||||
tags:
|
||||
- basics
|
||||
- time
|
||||
---
|
||||
|
||||
Show system time:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "cron"
|
||||
tags: [ "basics", "time" ]
|
||||
title: cron
|
||||
tags:
|
||||
- basics
|
||||
- time
|
||||
---
|
||||
# Cronie
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
---
|
||||
title: "deduplicate"
|
||||
tags: [ "system", "deduplicate", "maintenance", "storage" ]
|
||||
title: deduplicate
|
||||
tags:
|
||||
- system
|
||||
- deduplicate
|
||||
- maintenance
|
||||
- storage
|
||||
---
|
||||
|
||||
`rdfind`: find duplicate files, then delete them, or turn them into links.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Default Programs"
|
||||
tags: [ "defaults", "mime type" ]
|
||||
title: Default Programs
|
||||
tags:
|
||||
- defaults
|
||||
- mime type
|
||||
---
|
||||
|
||||
Install the package `xdg-utils`, then make very liberal use of the tab button.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "$EDITOR"
|
||||
tags: [ "system" ]
|
||||
title: $EDITOR
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
The System's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`.
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "fstab"
|
||||
tags: [ "system", "disk" ]
|
||||
title: fstab
|
||||
tags:
|
||||
- system
|
||||
- disk
|
||||
---
|
||||
# Basics
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "Managing Groups"
|
||||
tags: [ "system" ]
|
||||
title: Managing Groups
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
|
||||
Check which groups you are in, and which are available:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "hard links"
|
||||
tags: [ "basics", "links" ]
|
||||
title: hard links
|
||||
tags:
|
||||
- basics
|
||||
- links
|
||||
---
|
||||
|
||||
A hard link is one file which exists in multiple locations.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "kernel modules"
|
||||
tags: [ "system" ]
|
||||
title: kernel modules
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
|
||||
Kernel modules live in lib/modules/$(uname -r)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "kill"
|
||||
tags: [ "basics" ]
|
||||
title: kill
|
||||
tags:
|
||||
- basics
|
||||
---
|
||||
|
||||
If you want to kill a program in a graphical environment, open a terminal and type:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "lf - The Light File Manager"
|
||||
tags: [ "file browser", "TUI" ]
|
||||
title: lf - The Light File Manager
|
||||
tags:
|
||||
- file browser
|
||||
- TUI
|
||||
---
|
||||
|
||||
## Config File
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "links"
|
||||
tags: [ "basics", "links" ]
|
||||
title: links
|
||||
tags:
|
||||
- basics
|
||||
- links
|
||||
---
|
||||
|
||||
There are two types:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "locale"
|
||||
tags: [ "basics", "time" ]
|
||||
title: locale
|
||||
tags:
|
||||
- basics
|
||||
- time
|
||||
---
|
||||
|
||||
Your locale tells the computer your location, preferred time-and-date format, standard language, papersize, et c.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "logs"
|
||||
tags: [ "system" ]
|
||||
title: logs
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
|
||||
# Basic
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Makefiles"
|
||||
tags: [ "system", "make" ]
|
||||
title: Makefiles
|
||||
tags:
|
||||
- system
|
||||
- make
|
||||
---
|
||||
|
||||
The `make` system wants to know:
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
title: "Makefile Graphs"
|
||||
tags: [ "system", "make", "graph" ]
|
||||
title: Makefile Graphs
|
||||
tags:
|
||||
- system
|
||||
- make
|
||||
- graph
|
||||
---
|
||||
|
||||
If you have `graph-easy` (often in the package `perl-graph-easy` or similar), you can make a graph from the makefile with `make2graph` (the package is often called `makefile2graph`).
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
title: "make help target"
|
||||
tags: [ "system", "make", "help" ]
|
||||
title: make help target
|
||||
tags:
|
||||
- system
|
||||
- make
|
||||
- help
|
||||
---
|
||||
|
||||
Make your first target 'help' to give an overview of the main targets.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "Makefile Patterns"
|
||||
tags: [ "system", "make" ]
|
||||
title: Makefile Patterns
|
||||
tags:
|
||||
- system
|
||||
- make
|
||||
---
|
||||
|
||||
Using the [basic example](../makefiles.md), you can make a complete backup of all backup files.
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
---
|
||||
title: "Python Projects with Makefiles"
|
||||
tags: [ "tutorial", "system", "makefiles", "graphviz", "python" ]
|
||||
requires: [ "makefiles" ]
|
||||
title: Python Projects with Makefiles
|
||||
tags:
|
||||
- tutorial
|
||||
- system
|
||||
- makefiles
|
||||
- graphviz
|
||||
- python
|
||||
requires:
|
||||
- makefiles
|
||||
---
|
||||
|
||||
If you have a python script which requires a packages - e.g. `graphviz` - you can automate the setup with a `Makefile`.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "mdadm"
|
||||
tags: [ "RAID", "disk" ]
|
||||
title: mdadm
|
||||
tags:
|
||||
- RAID
|
||||
- disk
|
||||
---
|
||||
# RAID5
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
title: "Monitoring"
|
||||
tags: [ "system", "CPU", "memory" ]
|
||||
title: Monitoring
|
||||
tags:
|
||||
- system
|
||||
- CPU
|
||||
- memory
|
||||
---
|
||||
|
||||
Print the average CPU load over 1 minute, 5 minutes, and 15 minutes:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "partitions"
|
||||
tags: [ "system" ]
|
||||
title: partitions
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
|
||||
# FDisk Basics
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "processes"
|
||||
tags: [ "basics" ]
|
||||
title: processes
|
||||
tags:
|
||||
- basics
|
||||
---
|
||||
# Processes
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
title: "snaps"
|
||||
tags: [ "system", "Ubuntu", "snap" ]
|
||||
title: snaps
|
||||
tags:
|
||||
- system
|
||||
- Ubuntu
|
||||
- snap
|
||||
---
|
||||
> sudo apt-get purge -y snapd
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "soft links"
|
||||
tags: [ "basics", "links" ]
|
||||
title: soft links
|
||||
tags:
|
||||
- basics
|
||||
- links
|
||||
---
|
||||
A soft link is a file which says how to go to another file.
|
||||
When a program encounters a soft link, it will make a guess at whether it should ignore it, or try to get to that file.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "swap"
|
||||
tags: [ "system" ]
|
||||
title: swap
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
# Making a Swap File
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "systemd"
|
||||
tags: [ "systemd" ]
|
||||
title: systemd
|
||||
tags:
|
||||
- systemd
|
||||
---
|
||||
```sh
|
||||
systemctl list-units
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "journal"
|
||||
tags: [ "systemd" ]
|
||||
title: journal
|
||||
tags:
|
||||
- systemd
|
||||
---
|
||||
|
||||
See a running log of all system messages:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "Making Services"
|
||||
tags: [ "systemd" ]
|
||||
title: Making Services
|
||||
tags:
|
||||
- systemd
|
||||
---
|
||||
# Basics
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "tmux"
|
||||
tags: [ "system" ]
|
||||
title: tmux
|
||||
tags:
|
||||
- system
|
||||
---
|
||||
Start with:
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "users"
|
||||
tags: [ "basics" ]
|
||||
title: users
|
||||
tags:
|
||||
- basics
|
||||
---
|
||||
# Basic Information
|
||||
|
||||
|
||||
Reference in New Issue
Block a user