Language Selection

English French German Italian Portuguese Spanish

The Cult of Linux

Filed under
Linux

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

Ubuntu Developers Working to Use Systemd on Ubuntu Touch

The desktop flavor of Ubuntu has already moved to systemd from an upstart, but Ubuntu Touch is still using upstart. It's not clear when the mobile platform will move to the new init system, but Ubuntu developers are already working towards this goal. Read more

Nginx open source server gets TCP load-balancing

With the release of the Nginx 1.9.0 Web server, Nginx has taken TCP load-balancing capabilities from its commercial Nginx Plus product and fitted it to the company's open source technology. TCP load balancing improves failover consistency among worker processes, according to Nginx. The feature already has appeared in the commercial Nginx 5 and 6 products. Read more

House of Cards UI central to Mozilla's plans for Firefox on tellies

Mozilla has revealed how it reckons Firefox should look when it's on the tellie. Firefox OS user experience designer Hunter Luo reckons that the four basic functions of a smart television are watching shows, accessing apps, controlling devices and looking at list of your content. The user interface for Firefox-for-tellies therefore presents each of those options as a “deck”, concealing “cards”. So in the image below, “TV” is the deck and each of the channels gets a “card”, in this case Channel 32. Read more

elementary OS "Freya" to Get New Beautiful Open File Dialogue

elementary OS "Freya" was released a month ago, but the developers are still making big changes to it. One of these modifications will bring a new "Open File Dialog" that should look and work much better than the previous one. Read more