Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Yakimavets committed Oct 25, 2017
1 parent b9cd6c4 commit 6350823
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pages/linux/nl_ru.md
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}}`
7 changes: 7 additions & 0 deletions pages/linux/ntfsfix_ru.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ntfsfix

> Исправить типичные ошибки на NTFS разделе.
- Исправить указанный NTFS раздел:

`sudo ntfsfix {{/dev/sdb2}}`
20 changes: 20 additions & 0 deletions pages/linux/zramctl_ru.md
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`

0 comments on commit 6350823

Please sign in to comment.