📜 ⬆️ ⬇️

Linux processes in Bash man

Why is the head called "head off" and how is it related to the bash command shell? But if you look closely, you will have a lot in common. The processes that occur every second in our brain painfully resemble the screen of the top command - * nix utility, which dynamically displays the consumption of system resources.

You are loaded with work and suddenly a new employee of the development department defiled past your desk. The sleeping high-priority system daemon of backup DNA copying instantly captured almost all the resources, the current user process of working on the project was rejected as niceless into “beautifully far away” RAM and squeal plaintively offended ... With incredible efforts you manage to take control and return to work, justice is restored. Whew!



- Already two hours, it's time to eat lunch! - the cron service worked. The basic system process of energy recharging is activated and confidently begins to push apart and slow down other processes making their way up. And here you interrupt work, get up and go to eat.
')

whoami?


“Pharaoh turned to his seventy scribes, each of whom wrote down all the words of Pharaoh in one of the seventy languages ​​of the peoples of the world, and asked them:“ Do you know about God, Who is called by this four-letter name? ”. They replied: “We have read all the books of all nations and know the names of all the gods. But we never met this four-letter name. ” The scribes answered the truth. (The Book of Exodus)

How many processes are executed, starts the child processes, and dies every second in the human brain, and only a small part is controlled by us consciously. If you think about it, then the person does not work from under the super-user, this assumption is naive. It works as an ordinary user with the sudo command , with clearly defined rights in the / etc / sudoers file, and very modest ones. ( How to check this? Team whoami or look at the console, if there is a dollar sign, you are definitely not under the root. ) Only Indian yogis, at the cost of enormous effort, break into the system and get root access.

It happens that some process is a pernicious addiction, it takes all the resources and puts the user on his knees. And the unfortunate user calls out to the admin, but root is usually busy with more important matters ...

Permissions Denied: Workarounds


Now they write a lot about the fact that until the creation of a computer analogue of the human brain is still very, very far away, but at the same time we use all these resources? An ordinary person is essentially a demon of consciousness running in the background on a local host or in a virtual machine.

And all this is quite strange. The program is easy to install, "carry" - the whole problem. Take, for example, the usual dependence on tobacco: once we have done yum install smoking, we get a crontab entry with a 25 minute process call interval, and we need to seriously try to get rid of it, but it would seem: just comment out the line.

Depression, fear, irritation - alas, we are not able to see the PID of the malware, but even if we knew it, we do not have rights to execute the kill command. However, all is not lost, hack exists! This is a hack of indirect action: it turns out there are mutually displacing processes, if one is active, the other goes into the sleeping state.

Happy is the one who read the forbidden man and knows all the correspondences: fatigue is replaced by sleep, fear by laughter, etc. Remember how a meeting at the meeting instantly discharged someone's resourceful joke. At the beginning of the 2000s, I did not work for a long time with one muddy entrepreneur who acted with clients as quite a serious person, and in a non-business environment, from time to time he poisoned all sorts of tales and fabulous anecdotes, which apparently he himself invented. Now I understand, I knew, I knew, the cunning Rustamitch knew this hack, constantly being in a state of fear for his dark deeds, and laughter helped him in his fight with him (but the Obovites finally came to him). It is also the answer to the question why school teachers hate fun-loving ones - they destroy the atmosphere of fear, the favorite weapon of minded educators.

And is it possible to clean the system on its own, “kill” zombie processes in order to free up RAM and processor resources? Yes, one of the ways to reboot is sports training. I noticed that businessmen, as a rule, necessarily engage in some kind of sport: one loves tennis, the other goes to yoga, the third runs in the morning. Apparently, with increasing physical exertion, the body independently launches a scavenger program, which “kills” unnecessary parasitic processes and frees up system resources.

Diseases - as feedback


I hope that an augmented reality device like the ps or top command will someday be invented, and then many diseases will disappear. After all, now various ailments - a kind of feedback between us and the body.

For example, hypothermia causes the manifestation of the herpes virus. If we take into account that herpes exists with a human for thousands of years - immunity should be developed for him a long time ago, but this does not happen, on the contrary, the infection of humanity with herpes approaches 100%.

And what if this is a necessary program that signals that the body needs rest and simultaneously launches other, so far unknown processes? And the treatment of herpes with acyclovir is nothing more than meaningless violence against a software module that prevents it from working normally?

Now the subconscious has to invent sophisticated ways of interacting with the consciousness, and with monitoring we don’t have to play Field of Miracles, we will know in advance about the growing burden and take action.

Source: https://habr.com/ru/post/334950/


All Articles