Linux system---four classic skills

  

1, deal with special file names

Suppose there is a file name in Linux system called "-ee", if we want to operate on it, For example, to delete it, enter the rm -ee command on the command line according to the general deletion method. The interface will prompt us to be "invalid option", which is because the first character of the file name is "“-&rdquo ;, Linux takes the file name as an option, we can use the “——” symbol to solve this problem, enter the “rm —— -ee” command to successfully delete the name "-ee&rdquo" ;document. If it is other special characters, you can add a "” symbol before the special character, or enclose the entire file name in double quotes.

2. Direct installation of Linux

When installing the Linux operating system, you can use the software named "loadlin.exe" in the system CD to directly export the Linux kernel. Transfer to 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 box; where "E:imagesvmlinuz" is The core name of Linux.

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 by <;Alt+F1” The composite key returns to 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 "ld"; rm & rdquo; command

We can use the "ld" rm & rdquo; parameter to delete a non-empty directory, for example, we are in the command line Enter a command such as “rm -r bbb”, indicating that the system will delete all files and subdirectories contained in the bbb directory.

Copyright © Windows knowledge All Rights Reserved