Article Title: Ten "quick" in Linux ". Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. fast loading of system files
Before using the linux file system, you must run the mount command to first load the specified file system. after using the command, you must run the unmount command to uninstall the specified file system. Now, we can use the autofs command in RedHat linux6.0 to save the trouble of mount and umount each time. In addition, RedHat6.0 also comes with the autofs rpm command, after installing the file system, you can enjoy the convenience of automatically loading the file system. First, create a cd directory under the/misc Directory. if you use its built-in auto. misc and auto. master, you can implement the automatic loading function immediately.
2. quick installation
Generally, when installing a software system, you need to start the boot disk of the system before installing the software. However, when installing the Linux operating system, we can use a DOS software named loadlin.exe in the system optical disk to directly transfer the Linux core to the memory, and replace the current operating system with the Linux core to take over the computer and enter the Linux installation interface. When installing Linux, you only need to enter loadlin E: \ images \ vmlinuz root =/dev/ram initrd = E: \ images \ initrd in the run dialog box. the img command can directly install Linux. E is the drive letter, and E: \ images \ vmlinuz is the core name of Linux.
3. quickly start the system
With the increasing configuration of personal computers, installing Linux on your computer is no longer a new problem. Suppose we have two operating systems windows and Linux installed on our computer, how should we start Linux? Do you need to restart the computer every time and boot through LiLo? In fact, if we use dos, there is a simple and fast way to start Linux, that is, load Linux. Loadlin.exe is an executable program in dos. it can quickly start Linux in a pure dos environment without restarting the computer, we can find this program in the/kernels Directory of the CD. If you do not know where the program is stored on the installation disk, you can use the "find-name loadlin *" command to find it. Copy it to the dos partition and copy the Linux kernel file you are using. You can copy files directly from the CD in windows, or use the mcopy command in Linux to copy the files to the dos partition, and then write a Linux. bat's batch file. the file content is as follows: c: \ loadlin c: \ vmlinuz root =/dev/hda1 ro. in this example, we set both the loadlin.exe and vmlinuz kernel files to the c root directory, root is the Linux root device, and Linux is in the first partition of the hard disk. Therefore, the device name is/dev/hda1, and ro indicates readonly. In the future, you can run Linux. bat to start Linux in dos. In this way, Linux is started quickly and efficiently, greatly reducing the waiting time during system self-check.
4. quickly create a file list
In the Linux operating system, we can also play MP3 files. However, in the Linux command line status, we can play only one song at a time, if we want to play all MP3 files under a directory consecutively, we must first create an mp3 playlist for all audio files with the extension of MP3, and then use the playback command, to play the music files in the list in sequence. how do we create a playlist for mp3 files? In fact, it is very easy to enter the following command in the system command line: find/mnt/cdrom-name *. mp3-print> cd1.play. list, so that all MP3 files in the specified directory will be created with the name play. list file. Then you can use the xmms or x11amp command to play these mp 3 music.
5. enter the command quickly
Most Linux interfaces are in the command line input state. therefore, to execute a function, you may need to enter a long command character, if you need to repeat such commands several times to implement a function, it is certainly troublesome to input such a character and a character, is there a way to quickly enter commands we have used before? The answer is certainly yes. we can use "!" in Bash Shell. To repeat the commands that have been input several times, saving you the trouble of re-entering the command.
6. Quick Start editor
When we use the less or more command to view a file, we may find that the file to be viewed has an error or other content to be modified. in this case, we need to modify it, however, in the viewing status, you cannot directly edit the file. you must start the editor to edit the file. in this status, how can we start the editor quickly? In fact, it is very easy to do. as long as we enter the v key in less, we will immediately start vi or other editors you specify in the environment variables. However, in more mode, we can only use vi commands.
7. quickly shut down the system
In earlier versions of Linux/UNIX, the shutdown command must be run before the power can be switched off. However, the latest version of Linux/UNIX has made great improvements in this regard, there is no need to shut down as before. Because the new version draws on the mainframe technology and uses a log file system that prevents power loss, it can automatically track and save user data and automatically synchronize and refresh the file system. Users can turn off the power at will, to quickly shut down the system.
If Linux is not properly shut down, it may lead to a failure to enter the Linux KDE environment, but it can only be in the console environment, and a large part of English characters are continuously tumble up. After login as root, type the startx command and the error message "x server cannot be connected" appears.
8. quickly delete files
We know that in the Linux character interface, you can use the rm command to delete a file. you can use the rmdir command to delete a directory. However, the rmdir command can only delete blank directories. if there are files under a directory, you can only delete the files in the directory with the rm command, therefore, rmdir and rm commands are usually used together to completely delete a complete directory. However, this method can be used to deal with several levels of sub-directories. if a directory contains several sub-directories, and these sub-directories contain several levels of sub-directories, using this method will not exhaust you. Now we can use the rm command with the-r parameter to Delete a non-empty directory. for example, we can enter commands like rm-r bbb in the command line, the system deletes all files and subdirectories in the bbb directory.
9. Quick Access
After logging on to Linux, if we press Alt + F2 on the keyboard, we can see a Shell prompt, which is actually the second virtual platform. Generally, the newly installed Linux system has four virtual machines. we can access them with the composite keys Alt + F1, Alt + F2, Alt + F3, and Alt + F4. When a program fails to lock the input or the Linux system suddenly loses response, you can switch to another virtual station to log on to and kill the faulty process task.
10. decompress the file quickly
If we need to decompress several compressed files, some users may use the unzip command to decompress the compressed files one by one, but this method is too inefficient, some users think of using wildcards to compress multiple files at the same time. However, when they enter unzip * shi in the command line, an error message is displayed, so how can I Unzip multiple files at the same time? In fact, the wildcard method is correct, but the command entered by the user in the command line is incorrect. the correct input should be unzip "*".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service