You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linux.adoc 747B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. +++
  2. +++
  3. :source-highlighter: pygments
  4. :source-language: console
  5. == Linux
  6. === Random commands
  7. Split some pages from a PDF::
  8. [source]
  9. ----
  10. $ pdftk myoldfile.pdf cat 1 2 4 5 output mynewfile.pdf
  11. ----
  12. Resizing disks::
  13. [source]
  14. ----
  15. $ fdisk # delete and recreate the partition
  16. $ resize2fs # resize to the new partition
  17. ----
  18. Adjust IO priority::
  19. [source]
  20. ----
  21. $ iotop -c 3 pid # -c 3 is "when idle"
  22. ----
  23. Take a screenshot of an area::
  24. [source]
  25. ----
  26. $ scrot -s output.png
  27. ----
  28. === Alpine
  29. https://www.alpinelinux.org/[Alpine] is a lightweight linux distribution that
  30. uses musl libc and busybox. It is often used in docker images due to its
  31. relatively small footprint.
  32. ==== Notes
  33. * The equivalent of Ubuntu's `build-essential` is `build-base`