background preloader

Linux

Facebook Twitter

Linux: What are some time-saving tips that every Linux user should know. Vim tips: Folding fun. The problem with writing and editing on a computer, versus having words on paper, is that it's usually hard to compare text from different sections of a document when they don't fit on the screen together. One way to do it is to use Vim's viewports feature. Another is to "fold" the text. Using Vim's folding features, you can tuck away portions of a file's text so that they're out of sight until you want to work with them again. Here's how. Vim's folding commands begin with z -- which, as the Vim docs point out, sort of looks like a folded piece of paper. Creating folds Let's start with some simple folding actions. Folding also works in visual mode.

Another option is to specify a range in command mode. Vim can also make some smart text selections. As an added bonus, Vim also recognizes nested blocks, so it will create the fold based on matching delimiters, and not the first closing bracket it comes across. Finally, you can create a fold from the cursor position to a search result. Bash Guide for Beginners. Getting Started with TeX, LaTeX, and Friends - TeX Users Group. This page is for the benefit of new TeX system users. As such, it tries to be short and simple. (An even shorter getting-started document is available.) What's going on here? TeX is a typesetting language. Instead of visually formatting your text, you enter your manuscript text intertwined with TeX commands in a plain text file. You then run TeX to produce formatted output, such as a PDF file.

Thus, in contrast to standard word processors, your document is a separate file that does not pretend to be a representation of the final typeset output, and so can be easily edited and manipulated. Here are some links with further background: The Pointers to Frequently Asked Questions document provides a short overview of the TeX world. Installing TeX and LaTeX If you are looking to install a complete system, we recommend TeX Live for Unix/GNU/Linux, MacTeX for MacOSX, and proTeXt for Windows. There are many other TeX implementations, some free software, some shareware, some proprietary/commercial. 100 Vim commands every programmer should know. Linux Free Software Catalog and Packages Search - pkgs.org. How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux. Q. Can you explain UUID concept related to Linux ext3 partitions and storage devices?

How do I update /etc/fstab using UUID under Ubuntu Linux or any other Linux distro? A. A Universally Unique Identifier (UUID) is an identifier standard used in software construction, standardized by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE). The intent of UUIDs is to enable distributed systems to uniquely identify information without significant central coordination. Thus, anyone can create a UUID and use it to identify something with reasonable confidence that the identifier will never be unintentionally used by anyone for anything else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve name conflicts.

UUID and Partitions Linux's ext2/ext3 filesystem uses UUID to identify partitions. UUID benefits How do I find out UUID for /dev/sdb2? 41c22818-fbad-4da6-8196-c816df0b7aa8 List all UUIDs.