[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
it-tricks [2021/04/07 10:24]
127.0.0.1 external edit
it-tricks [2023/03/14 15:46]
vodrazka [TAR archive mounting]
Line 89: Line 89:
  
 ===== LaTeX, pdf ===== ===== LaTeX, pdf =====
-  * see also [[tex::triky]]+  * see also [[tex::triky]] and [[internal:publikace#collaborative-writing]]
   * [[http://mg.readthedocs.io/latexmk.html|latexmk]] can be used with ''-pdf -pvc'', so whenever you save a ''tex'' file, the corresponding ''pdf'' will be regenerated (and your pdf viewer will refresh). Other useful options are ''-interaction=nonstopmode -synctex=1'', see e.g. [[https://tex.stackexchange.com/questions/118489/what-exactly-is-synctex|synctex]]   * [[http://mg.readthedocs.io/latexmk.html|latexmk]] can be used with ''-pdf -pvc'', so whenever you save a ''tex'' file, the corresponding ''pdf'' will be regenerated (and your pdf viewer will refresh). Other useful options are ''-interaction=nonstopmode -synctex=1'', see e.g. [[https://tex.stackexchange.com/questions/118489/what-exactly-is-synctex|synctex]]
   * [[https://www.pdflabs.com/docs/pdftk-cli-examples/|pdftk]] for merging and splitting pdf files (and much more) from the command line   * [[https://www.pdflabs.com/docs/pdftk-cli-examples/|pdftk]] for merging and splitting pdf files (and much more) from the command line
Line 100: Line 100:
  
 ===== TAR archive mounting ===== ===== TAR archive mounting =====
-If you work with data consisting of many small files, you **should** store them in tar archives to save inodes. There is a way to mount a tar archive to a specific directory in the simmilar way you mount ISO image. You can use the following wrapper script to //mount// (read-only) ARCHIVE to DIRECTORY:+If you work with data consisting of many small files, you **should** store them in tar archives to save inodes and use LUSTRE filesystem efficiently. There is a way to mount a tar archive to a specific directory in a similar way you would mount an ISO image. You can use this command to //mount// (read-only) ARCHIVE (possibly compressed) to DIRECTORY:
  
-  /opt/bin/tarmount -a ARCHIVE DIRECTORY+  /opt/bin/tarmount ARCHIVE DIRECTORY
  
 and //umount// when you finish your work: and //umount// when you finish your work:
  
-  /opt/bin/tarmount DIRECTORY+  /opt/bin/tarmount -u DIRECTORY 
 + 
 +If you mount your data in this way, there is only one //open// operation instead of thousands or millions of such operations when opening each file separately. This will positively affect runtime when your data is stored on the LUSTRE filesystem. 
 + 
 +Run the command with //--help// option to see instructions for more advanced usage. The original tool can be obtained [[https://github.com/mxmlnkn/ratarmount | here]]. 
 +It can be installed as [[https://appimage.org | AppImage]].
  
-You can also use the original tool called [[https://github.com/mxmlnkn/ratarmount | ratarmount]] directly through the link: 
  
-  /opt/bin/tarmounter  
  
 ===== Other ===== ===== Other =====

[ Back to the navigation ] [ Back to the content ]