8 classic tips for Linux operating system

  
                  

1, handle special file names

Suppose there is a file name in the Linux system called "-ee", if we want to operate on it, for example to delete it, follow the general deletion method in the command Enter rm -ee command in the line, the interface will prompt us to be "invalid option" (invalid option), originally because the first character of the file name is "-", Linux takes the file name as an option, we can use "- - "symbol to solve this problem, enter the "rm ---ee" command to successfully delete the file named "-ee". If it is other special characters, you can put a "" symbol in front of the special characters, or enclose the entire file name in double quotation marks.

2, direct installation of Linux

When installing the Linux operating system, you can use the software called "loadlin.exe" on the system CD to directly adjust the Linux kernel Into the memory, the Linux kernel replaces the current operating system to take over the computer, and enter the Linux installation interface. When installing Linux, we can directly install Linux by typing "loadlin E:imagesvmlinuz root=/dev/ram initrd=E:imagesinitrd.img" in the run dialog; "E:imagesvmlinuz" is Linux. Core name.

3, eliminate the crash phenomenon under Xwindows

We can use two common methods to eliminate this phenomenon: First, use the composite key on the keyboard "Ctrl+Alt+Backspace" To close the currently running task; second, first press and hold the "Ctrl+Alt+F2" composite key on the keyboard, let the system switch to another console, then log in to the system, and then execute "#ps -ax/grep Startx" command, this will list the process ID of your Xserver, then enter the following command on the command line to eliminate the crash phenomenon under Xwindows: #kill -9 PID_Number, and finally return to the "Alt+F1" composite key The original platform.

4, quickly shut down the Linux system

The latest version of the Linux /UNIX system draws on the mainframe technology, using a log-proof file system that is resistant to power loss, can automatically track and save user data, The file system is automatically synchronized and the user can turn off the power at will, so that the system can be quickly shut down.

5, clever use of the "rm" command

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

6, clever use of the "Tab" button

We all know that when entering commands in the Linux character interface, sometimes you need to enter a lot of characters, if you often enter characters one by one, it is more troublesome. Assuming that the character typed is enough to determine a unique file in the directory, we simply press the "Tab" key on the keyboard to automatically fill in the rest of the file name, for example, to put the file under the directory /ccc "ddddddd" -1.2.3.tar.gz" When unpacking, when we type "tar xvfz /ccc/d" on the command line, if the file is the only file in the directory that starts with "d", it can be directly Press the "Tab" button, then the command will be automatically added to: tar xvfz /ccc/ddddddd-1.2.3.tar.gz, which improves input efficiency.

7, use the mouse to copy and paste to improve the speed of operation

After the Linux system is installed, each time you start to the character interface, it will automatically run a program called "gpm", after the program runs You can use the mouse to copy and paste. The specific method is to hold down the left mouse button and drag to make the place to be copied highlighted. At this time, the highlighted area has been copied, and then the content copied by the right mouse button will be pasted at the cursor position. If we are running a Linux system under Xwindow, the copy and paste operations are the same as under Windows 9x.

8, quick start Linux system

Under DOS, there is a simple and quick way to start Linux, that is load Linux. Loadlin.exe is an executable program under DOS. It can start Linux quickly 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 this program is placed on the installation disk, you can use the "find -name loadlin*" command to find it. Once you find it, copy it to the DOS partition and copy the Linux kernel file you are using. You can copy directly from the CD through Windows, or copy the file to the DOS partition using the "mcopy" command in the Linux environment; then write a batch file called "Linux.bat" with the following contents: c: loadlin c :vmlinuz root=/dev/hda1 ro (we assume that the two kernel files loadlin.exe and vmlinuz are in the root directory of the c drive, "root" is the root device of Linux, and Linux is in the first partition of the hard disk, so the device name For "/dev/hda1", "ro" means readonly). When you want to start Linux under DOS, run "Linux.bat".

Copyright © Windows knowledge All Rights Reserved