Three tips for improving Linux management efficiency

Linux management efficiency is a manifestation of an administrator's ability to work. Here are three tips to help some less experienced administrators to complete the management of the system.

Administrators want to improve Linux management efficiency by following some management techniques. Here are three tips for Linux management efficiency: uninstalling unresponsive DVD drives, restoring problematic screens, and screen collaboration.

Tip 1: Unmount the unresponsive DVD drive

Newbie experience: When you press the Eject button on the DVD drive of the server (running a Redmond-based operating system), it will pop up immediately. He then complained that on most enterprise Linux servers, if a process is running in that directory, the pop-up will not happen. As a long-term Linux administrator, I will restart the machine. If I do n’t know what is running and why I do n’t release the DVD drive, I will eject the disk. But this is very inefficient.

Here's how to find the process to keep the DVD drive and eject the DVD drive easily: first simulate. Insert the disk in the DVD drive, open a terminal, and mount the DVD drive:

# mount / media / cdrom

# cd / media / cdrom

# while [1]; do echo "All your drives are belong to us!"; sleep 30; done

Now open the second terminal and try to eject the DVD drive:

# eject

You will get the following message:

umount: / media / cdrom: device is busy

Before releasing the device, let's find out who is using it.

# fuser / media / cdrom

The process is running and the failure to eject the disk is actually our fault.

Now, if you are the root user, you can terminate the process at will:

# fuser -k / media / cdrom

Now you can finally unmount the drive:

# eject

fuser is normal.

Tip two: restore the problematic screen

Try the following:

# cat / bin / cat

Attention! The terminal is like garbage. Everything entered is very messy. So what should I do?

Enter reset. However, entering reset is too close to entering reboot or shutdown. I was so scared that my palm sweated — especially when performing this operation on a production machine.

Rest assured, the machine will not restart during this operation. Continue operation:

# reset

Now the screen is back to normal. This is much better than logging in again after closing the window, especially if you have to go through 5 machines and SSH to reach this machine.

Tip 3: Screen collaboration

David, a senior maintenance user from product engineering, called and said, "Why can't I compile supercode.c on these new machines that you deploy".

You will ask him: "What machine are you running?"

David replied: "Posh". (This virtual company named its 5 production servers in honor of Spice Girls). Now you can show your skills, another machine is operated by David:

# su-david

Go to posh:

# ssh posh

After arriving, run the following code:

# screen -S foo

Then call David:

"David, run the command # screen -x foo" in the terminal.

This connects your conversation with David in the Linux shell. You can enter, he can also enter, but each other can see what the other is doing. This avoids entering other levels, and both parties have the same control. The advantage of this is that David can observe your troubleshooting skills and know exactly how to solve the problem.

Finally, everyone can see the problem: David's compilation script hard-codes an old directory that is not on this new server. Load it and compile again to solve the problem, then David continues to work. You can continue the previous entertainment activities.

One thing to note about this technique is that both parties need to log in as the same user. The screen command can also: implement multiple windows and split the screen. Please read the man page for more information.

For screen sessions, I have one last tip. To detach from it and let it open, enter Ctrl-A D (that is, hold down the Ctrl key and click the A key. Then press the D key).

Then run the screen -x foo command again to rejoin them.

Leisure Chair

Leisure chairs are a type of furniture used for rest, relaxation, and enjoyment, typically with comfortable seat and backrest designs to provide optimal comfort and support. There are a wide variety of leisure chairs that can be classified based on different functions, materials, styles, and uses. The following will introduce several common categories of leisure chairs.
1. Classification by function:
-Lying chair: Lying chair is a leisure chair that can adjust its angle to meet different needs, and can be used for lying, reading, resting, or sunbathing.
-Lazy chair: Lazy chair is a large and comfortable leisure chair, usually with a wide seat and backrest, which allows people to sit or lie comfortably.
-Leisure sofa: A leisure sofa is a leisure chair with multiple seats that can be used by multiple people at the same time and is usually used for family entertainment or leisure activities.
2. Classification by style:
-Modern style chairs: Modern style chairs usually adopt simple lines and modern design, with fashionable and minimalist characteristics, suitable for modern home decoration.
-Classical style chairs: Classical style chairs usually adopt retro designs and exquisite carvings, with elegant and luxurious characteristics, suitable for classical style home decoration.
-Nordic style chairs: Nordic style chairs usually adopt a simple and natural design, emphasizing practicality and comfort, suitable for Nordic style home decoration.
3. Classification by purpose:
-Indoor leisure chairs: Indoor leisure chairs are suitable for indoor environments such as homes and offices, and can be used for activities such as rest, reading, and watching TV.
-Outdoor leisure chairs: Outdoor leisure chairs are suitable for outdoor environments such as gardens, balconies, terraces, etc., and can be used for outdoor leisure, sun exposure, and other activities.
In short, leisure chairs are multifunctional and diverse furniture that can be chosen according to different needs and preferences. Whether relaxing at home or enjoying the sunshine outdoors, you can find suitable leisure chairs for yourself.

Fabric chair,Egg chair,Fashion chair

Foshan Shengshi Zhihui Technology Co., Ltd. , https://www.zhhotelfurniture.com

Posted on