Language Selection

English French German Italian Portuguese Spanish

The Cult of Linux

Filed under

Ever wanted to comment out multiple lines of code while writing shell scripts in vi, but didn't want to pound your keyboard for half an hour doing it?

(I#Escape j.j.j.j. = carpal tunnel)

Here's the nerdy way to do it:

:.,+N-1 s/^/#/g

Full Details

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

To be honest

I've never really wanted to do anything in vi. Smile

More in Tux Machines

Games for GNU/Linux

Build open source clouds with 4 OpenStack guides and tutorials

Every time you turn around, it seems like there’s a new open source project which might be of value to a cloud administrator. A huge number of these projects fall under the umbrella of OpenStack, the open source cloud toolkit. And it may seem impossible keep up. Fortunately, there are plenty of tools out there to help with growing your OpenStack knowledge base, from meetups and in-person training, to mailing lists and IRC channels, to books, websites, and the official documentation. Read more

Reusable theme to fix accessibility sites

Public administrations that need to make their website comply with rules on accessibility and open standards should consider reusing, a port of the government’s Digital Services theme, built on Boostrap’s html and css templates. Read more

Alpine Linux 3.4.5 Released with Linux Kernel 4.4.27 LTS, Latest Security Fixes

A new maintenance update of the server-oriented Alpine Linux 3.4 operating system has been released, bringing a new Linux kernel version from the long-term supported 4.4 series and the latest security patches. Read more