Some times you need to convert a lot of files from .nef to .jpeg format in a Linux environment. You can do this jobs easily with UFRaw tool.
Requirements:
$ sudo apt-get install ufraw
Steps:
Launch then the terminal, switch to the directory containing NEF files, and run the following command:
$ ufraw-batch --out-type=jpeg --out-path=./jpg *.NEF