Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the practical skills of Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what are the practical skills of Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the practical skills of Linux"?

1. Handle special file names

Suppose there is a file called "- ee" in the Linux system. If we want to operate on it, for example, if we want to delete it, type the rm-ee command on the command line according to the general deletion method, and the interface will prompt us that it is an "invalid option" (invalidoption). Because the * * character of the file name is "-", Linux regards the file name as an option, so we can use the "-" symbol to solve this problem. Enter the "rm---ee" command to successfully delete the file named "- ee". If it is another special character, you can add a "" symbol before the special character, or enclose the entire file name in double quotation marks.

2. Install Linux directly.

When installing the Linux operating system, you can use a software named "loadlin.exe" in the CD of the system to call the Linux core directly into memory, and the Linux core will take over the computer instead of the current operating system, and enter the installation interface of Linux. When installing Linux, we can install Linux directly by typing the command "loadlinE:imagesvmlinuzroot=/dev/raminitrd=E:imagesinitrd.img" in the run dialog box, where "E:imagesvmlinuz" is the core name of Linux.

3. Eliminate the crash phenomenon under Xwindows.

We can eliminate this phenomenon in two common ways: * use the compound key "Ctrl+Alt+Backspace" on the keyboard to close the currently running task Second, first press and hold the "Ctrl+Alt+F2" compound key on the keyboard, let the system switch to another console, then log in to the system, and then execute the "# ps-ax/grepstartx" command, which will list the process ID of your Xserver, and then enter the following command on the command line to eliminate the panic under Xwindows: # kill-9PID_Number,*** returns to the original platform through the "Alt+F1" compound key.

4. Quickly shut down the Linux system

The * version of the Linux/UNIX system draws lessons from the mainframe technology and uses a power-resistant log file system, which can automatically track and save user data and automatically synchronously refresh the file system. Users can turn off the power at will, thus achieving the goal of quickly shutting down the system.

5. Ingenious use of "rm" command

We can use the "rm" command with the "- r" parameter to delete a non-empty directory. For example, we enter a command such as "rm-rbbb" on the command line to indicate that the system will delete all files and subdirectories contained in the bbb directory.

6. Ingenious use of "Tab" key

As we all know, when entering commands in the Linux character interface, you sometimes need to enter a lot of characters. If you often enter characters one by one like this, it is more troublesome. Assuming that enough characters are typed to determine the only file under that directory, we can automatically complete the rest of the file name by pressing the "Tab" key on the keyboard, for example, when we unpack the file "ddddddd-1.2.3.tar.gz" under the directory / ccc, when we type "tarxvfz/ccc/d" on the command line. If the file is the only file in this directory that starts with "d", you can press the "Tab" key directly, and the command will be automatically completed to: tarxvfz/ccc/ddddddd-1.2.3.tar.gz, thus improving the input efficiency.

7. Use more mouse copy and paste to improve the operation speed

After the Linux system is installed, every time it starts to the character interface, it automatically runs a program called "gpm", which can be copied and pasted with the mouse. The specific method is to press and hold the left mouse button and drag to highlight the place you want to copy, then the highlighted area has been copied, and then the content copied by pressing the right mouse button will be pasted at the location of the cursor. If we run Linux under Xwindow, copy and paste will be the same as under Windows9x.

8. Start the Linux system quickly

Under DOS, there is a simple and quick way to start Linux, and that is loadLinux. Loadlin.exe is an executable program under DOS. It can quickly start Linux in a pure DOS environment without restarting the computer. Usually we can find this program in the "/ kernels" directory of the CD. If you don't know where the program is placed on the installation disk, you can use the "find-nameloadlin*" command to find it. Find it and copy it to the DOS partition. You also need to copy a copy of the Linux kernel file you are using. You can copy files directly from the CD via Windows, or you can use the "mcopy" command to copy files to the DOS partition in the Linux environment. Then write a batch file called "Linux.bat", the contents of which are as follows: c:loadlinc:vmlinuzroot=/dev/hda1ro (we assume that both loadlin.exe and vmlinuz kernel files are in the root directory of disk c, "root" is the root device of Linux, and Linux is in the hard disk * * partition, so the device is called "/ dev/hda1", "ro" means readonly). In the future, when you want to start Linux under DOS, run "Linux.bat".

Thank you for your reading, these are the contents of "what are the practical skills of Linux". After the study of this article, I believe you have a deeper understanding of the practical skills of Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report