Some time ago I was going through a project description prepared by a client who wanted to explain how their company works and how an IT system should help improve certain business processes. The whole thing was about large machines connected to each other, and the material touched on various areas of the company's operations in the context of those machines. In one place there was a term originally written as "rooting of machines". My knowledge of that field is fairly modest, but something stopped adding up right away. The context made it clear that the author meant a so-called process route, that is, doing something in a specific way, along a specific path of actions. An attentive observer would note, however, that the correct term here is "routing of machines".
It is a seemingly tiny difference, and the context makes the meaning clear, but it is a good opportunity to explain how "rooting" differs from "routing" and why that one letter in the middle deserves attention. Contrary to appearances, it changes a lot, even though the two words are pronounced similarly or even identically.
What is rooting?
To answer that question, we need to know what root is, in IT of course. The term comes from Unix systems and means the main user of the system, the superadmin. When someone says "I have root", they usually mean they have complete control over the system. On the one hand, that means you do not have to worry about being unable to do something: with all the permissions, you also have the full range of possibilities and everything the system itself offers. On the other hand, "with great power comes great responsibility", and a person logged in as root can do enormous damage if they do not know what they are doing or simply make a mistake. This user is treated under special rules and can even bypass the prompts saying that what they are doing requires superuser rights, so there is no warning before seemingly destructive operations.
That is why people much more often work as users with root privileges, meaning users who have the appropriate level of access but must type the sudo command, which acts as a kind of confirmation that a protected operation, or an operation on protected resources, is being performed. Apart from that, such a person is still an ordinary user with a home directory in /home. You can also switch to a true root account with sudo su ("su" stands for superuser), but we advise against it. It may be convenient when you are performing many operations that require higher privileges, but it makes mistakes more likely. We encourage you to read more on this topic, for example in threads on communities related to Stack Overflow.
So we already know what (or rather who) root is. And what is rooting? It means freeing a device from the manufacturer's limits so that you gain superuser rights and, on top of that, get access to previously hidden features, because the manufacturer's system overlay no longer restricts you. Rooting also involves unlocking the so-called bootloader, which is the way to install a different version of the operating system on a mobile device. This is where the term is most often used, specifically for Android phones that can no longer be updated any other way, or whose standard software we want to modify. Keep in mind that rooting is not "natural". It can put your device at risk (including so-called bricking, that is, rendering it unusable), and you will certainly lose your warranty.
This is a broad topic that draws on a lot of knowledge about operating systems. This article in "Komputer Świat" covers rooting itself, with its pros and cons. If you want to try a different mobile system on your Android smartphone or tablet, Tomasz Dunia has shown the process for Ubuntu Touch and Droidian.
What is routing?
Routing means determining a route and guiding a given object along it. The word turns up in at least two areas of IT, and one of them dominates.
That one is the routing of a packet that has to get across a network from one computer to another. It is not a simple process, considering that machines usually sit in different local networks, hidden behind NAT and devices called routers. Routers determine the route of a data packet and work out the recipient's address. Of course, many routers usually take part in the process: besides the devices on the sender's and receiver's side, there are intermediate machines along the way, for example those belonging to internet service providers (ISPs) or data centers. To see how complicated the path from our computer to, say, google.pl is, just type tracert google.pl (on Windows) or traceroute google.pl (on Linux) in the console.
Routers also usually act as a switch, that is, they split the network signal among several computers. Routing itself, however, is the determination and execution of a packet's route. So there is an access point in the network that we communicate with directly, and it is responsible for forwarding messages outward and receiving them. That is why a well-working router is the basis of efficient internet access in our home or company.
The second area where we deal with routing concerns applications and the way a URL typed by a user is "worked out". For example, if you open the following link:
https://wildasoftware.pl/post/gucio-jego-zaby-wytrwalosc-programistow
the request is first routed to the application behind the wildasoftware.pl address. Then, inside the application (written in Laravel), there are rules by which the address /post/:symbol leads to the right controller and method, passing the :symbol parameter. In Yii 2.0, which we use when building applications for our clients, a routing rule /product/api/count would mean that on opening the page the application goes to the product module, then to the ApiController controller and its actionCount method. Defining good routing rules is not easy, but when it is done well, it keeps things tidy and at the same time shows a developer right away where to look for the code they are interested in.
Incidentally, a request reaching wildasoftware.pl in the first place is also an example of routing. First it happens at the network level, to find the address of the right machine (the DNS protocol comes in here), and then at the server level, to direct the request to the right folder with the application (thanks to the mechanism of virtual hosts or server blocks).
Routing is such a general term that it reaches far beyond IT. One example is the already mentioned process routing in a manufacturing plant, that is, the set of all operations (understood very broadly) that lead, in the right order, to creating a product. Here too we have information about the order and the points at which an object has to stop so that production can run properly. Of course, this also involves optimizing such a procedure, but that is a separate topic. Routing is also a term found in logistics and transport, where it means determining an efficient route for distributing goods among various points. Here, though, there is common ground with IT, because this area makes use of various algorithms and computer methods that optimize the distance traveled. Students of computer science surely know the traveling salesman problem, but this topic also ties into the whole field of operations research and algorithmics.
Summary
As you can see, "rooting" and "routing" sound very similar but mean completely different things. The first is tied to operating systems and permissions, the second to computer networks or to processes where you need to plan a route or a sequence of operations. It is worth remembering the difference. Specialists will usually understand perfectly well what is meant and that the wrong word is just a typo, but in some cases it can matter a lot.
Best regards, and thank you - Jakub Rojek.


