Skip to content

Commit 4c18b23

Browse files
committed
Add a new linux til
1 parent 3d3660a commit 4c18b23

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ TIL is a collection of the things that I learned today. The contents can be anyt
1515
* [MySQL](#mysql)
1616
* [Oracle](#oracle)
1717
* [Percona](#percona)
18+
* [PostgreSQL](#postgresql)
1819
* [PMDK](#pmdk)
1920
* [Predix](#predix)
2021
* [RocksDB](#rocksdb)
@@ -52,6 +53,7 @@ TIL is a collection of the things that I learned today. The contents can be anyt
5253
- [How to control cores via bash command](linux/how-to-control-cores-via-bash-command.md)
5354
- [Copy and paste in tmux](linux/copy-and-paste-in-tmux.md)
5455
- [Extract multiple lines from a file](linux/extract-multiple-lines-from-a-file.md)
56+
- [How to add a kernel boot parameter](linux/how-to-add-a-kernel-boot-parameter.md)
5557

5658
### MySQL
5759

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# How to add a kernel boot parameter
2+
3+
1. Open the GRUB file:
4+
5+
```bash
6+
$ sudo vi /etc/default/grub
7+
```
8+
9+
2. Find `GRUB_CMDLINE_LINUX_DEFAULT` and append a new paramter to its end:
10+
11+
```bash
12+
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem=2048m"
13+
```
14+
15+
3. Update the GRUB configuration:
16+
17+
```bash
18+
$ sudo update-grub
19+
```
20+
21+
4. Reboot:
22+
23+
```bash
24+
$ sudo reboot
25+
```

0 commit comments

Comments
 (0)