Archive for unix

echo vulnerable

Posted in Linux with tags , , , on October 3, 2014 by xi'an

screen shot with ubuntu 10.10Even though most people are now aware of the Shellshock security problem on the bash shell, here is a test to check whether your Unix system is at risk:

env x='() { :;}; echo vulnerable' bash -c 'echo hello'

if the prompt returns vulnerable, it means the system is vulnerable and needs to be upgraded with the proper security patch… For instance running

sudo apt-get update && sudo apt-get install --only-upgrade bash

for Debian/Ubuntu versions. Check Apple support page for Apple OS.

The wonderful world of vim

Posted in R, University life with tags , , , on July 20, 2010 by xi'an

When searching for a way to recover control carriage return symbols ^M into genuine ones (under vim), I found this handy page of vim tips. And then saw that the enthusiastic author had even a blog about vim! Obviously, this post will be meaningless for all readers not aware of the joys of the vim editor, so let me stress that “vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. vim is distributed free as charityware. If you find vim a useful addition to your life please consider helping needy children in Uganda.” vim has now reached version 7.3a [beta]