Should Ubuntu prevent “sudo rm -rf /” command ?

There have been talks over the ubuntuforums, regarding a user posts “sudo rm -rf /” command on “Absolute Beginner Talk” board, which results in deletion of the whole root directory of a Linux operating system (Ubuntu included).

Was the user out of his line when he’s posted such command on a beginners forum? Absolutely.

Exercise Caution When Running sudo
Users should exercise caution when running command with root privilege (sudo) . I pity to those who unknowingly execute the command and completely destroy their operating system. Its a truly lame attempt to humor oneself at the expense of others losing their precious data.

It is not a bug in coreutils, it is not a bug at all
But the lamest part is, somebody took the time to file a bug report regarding “sudo rm -rf /” on Launchpad.

There’s nothing wrong with that command, it did what it supposed to do, and that is the behavior expected from a Unix/Linux based system, there’s nothing wrong with that command at all.

Besides, if somebody compromised your system and got into your root accout, you are screwed anyway as there are a lot of other command which has the same (if not worse) devastating effect as “sudo rm -rf”, a fact that has been acknowledge on the same bug report

What do you think ?
I don’t know about you, but I felt more comfortable educating newbie users to be more careful when running command with root privilege than supporting an act which seems to ‘cripple’ the operating system itself. Trust me, this is not going to help newbie users.

p/s: I’m in complete agreement with this guy, this is not a bug, stop pampering newbies or else you’d ruin each and every of them!

Ubuntu Alternative : Get Linux Mint

Linux Mint – a yet another Linux distro based on Ubuntu has made a fourth release last month, Daryna.

Originally started as no more than Ubuntu-distro preinstalled with proprietary multimedia codecs, Linux Mint now focussed on providing user-friendly Linux distribution complete with customizable desktop which achieved through its unique configuration tools.

linuxmint.png

The latest release Daryna, is based on Ubuntu Gutsy Gibbon, and compatible with Gutsy repositories, meaning that you can receive (security) updates release from Ubuntu team for your installation.

Another Linux Mint area of focus is making everything works out from the box including Wifi and various multimedia file format which uses proprietary codecs.

Currently Linux Mint Daryna is available on 3 different download version :- Main, Light and KDE Community Edition. Linux Mint is only currently available for 32bit PC platform only.

Ubuntu Linux : How to combine multiple PDF file

Here’s how to combine multiple PDF file on Ubuntu.

First install ghostscript and pdftk from Ubuntu repository :

apt-get install gs pdftk

Then, using ghostscript, combile all the pdf files you desired into one file, using this command

[code]
s -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined_file.pdf -dBATCH file1.pdf file2.pdf file3.pdf
[/code]

The command will produced the combined pdf output on “combine_file.pdf”

Contribute to Ubuntu by becoming MOTU!

Ubuntu MOTU (Masters Of the Universe) is a continous effort to contribute by adding, maintaining and supporting software packages in Ubuntu Universe repository.

Generally to become a MOTU, you would have to work with software developers helping them in making their software available in Ubuntu Universe repository, knowledge of how to build *.deb packages is required at this stage.

One can apply to become a MOTU once he/she has made a significant amount of contribution to distro and forwarded his/her application to the MOTU council.

Advantages of Becoming a MOTU
MOTU has the advantage of joining the Ubuntu core developers group, which in turn can play a leading role in introducing and developing new features for Ubuntu operating system.

Interested in becoming a MOTU? Join the MOTU class in #ubuntu-classroom in irc.freenode.net. The Packaging 101 classroom would be held on 13 December 16.00 – 17.30 (UTC time).

Reference: Ubuntu MOTU website

How to recover corrupted gzip files in Linux

Ever come accross corrupted gzip or tarball which couldn’t be uncompressed? No worries, The gzip Recovery Toolkit make it possible for you to recover those files.

Here’s how to recover gzip (or tarball .tar.gz) file in Linux operating system :

  1. First download and compile gzrt
  2. run gzrecover on corrupted gzip — “gzrecover corrupted.tar.gz”
  3. extract the recovered file using cpio — “cpio -F corrupted.tar.recovered -i -v”

Note that however that not all file/data are recoverable using this method. Alternatively, you can use bzip2recover for recovering bzip2 compressed file.