forked from learn-it-in-russian/tldr-ru
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilya Yakimavets
committed
Oct 25, 2017
1 parent
b9cd6c4
commit 6350823
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# nl | ||
|
||
> Утилита для нумерации строк из файла, либо из стандартного ввода. | ||
- Нумерация строк в файле: | ||
|
||
`nl {{file}}` | ||
|
||
- Нумерация строк содержащих печатный текст: | ||
|
||
`nl -t {{file}}` | ||
|
||
- Нумерация строк, которые соответствуют регулярному выражению: | ||
|
||
`nl -b p'FooBar[0-9]' {{file}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ntfsfix | ||
|
||
> Исправить типичные ошибки на NTFS разделе. | ||
- Исправить указанный NTFS раздел: | ||
|
||
`sudo ntfsfix {{/dev/sdb2}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# zramctl | ||
|
||
> Создание и управление zram устойствами. | ||
> Используйте `mke2fs` либо `mkswap` для форматирования zram устройств в разделы. | ||
- Проверить доступен ли zram: | ||
|
||
`lsmod | grep -i zram` | ||
|
||
- Включить zram с 2 устройствами (используйте `zramctl` для настройки устройств в дальнейшем): | ||
|
||
`sudo modprobe zram num_devices={{2}}` | ||
|
||
- Найдите и инициализируйте следующее свободное устройство zram в 2-Гбайт виртуальный диск, используя сжатие LZ4: | ||
|
||
`sudo zramctl --find --size {{2GB}} --algorithm {{lz4}}` | ||
|
||
- Список текущих инциализированных устройств: | ||
|
||
`zramctl` |