GNU Linux/Useful Commands: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:GNU Linux]] | [[Category:Useful Commands|GNU Linux]] | ||
== File Conversion == | == File Conversion == |
Revision as of 04:27, 19 December 2024
File Conversion
Batch Convert Man Pages into HTML files
Requires the mandoc program to be installed.
mkdir html && for x in .; do mandoc -Thtml -O man=./html/%N.%S.html,toc $x > html/$x.html; done
Virtual Machines
I've found this to be more useful than guestmount (provided by the libguestfs-tools package for Ubuntu), because it does not require superuser privileges to execute, and is easy to unmount afterwards. Based on the answer provided on Super User: https://superuser.com/a/1548983.
mkdir -p ~/tmp/windows10-vm
nbdfuse ~/tmp/windows10-vm [ qemu-nbd path_to_disk_image ] &
fusermount -u ~/tmp/windows10-vm