Nowadays, many students are learning the LINUX system, and the LINUX system is gradually accepted by the majority of users. Today we will talk about the usage of the mount command in LINUX. In LINUX, you can install the application software from a CD or floppy disk. However, the difference is that it needs to use the mount command to log on to the optical drive or software drive. In addition, most of the software is compressed, so you still need to know how to decompress it. Finally, it must be configured and compiled to run. The following is an introduction in three aspects:
1. mount Logon
The LINUX drive device is represented by a special file/dev/fd0 and the file system is msdos. Therefore, use the following command to log on and read the content of the floppy disk:
1) # mount-t msdos/dev/fd0/mnt/floppy
2) # cd/mnt/floppy
Similarly, type the following command to read the disc:
1) # mount-t iso9660/dev/hdc/mnt/cdrom
2) # cd/mnt/cdrom
Then, run the cp command to copy the required software to the system.
Exit the software drive and use the umount command for the optical drive. Note: you cannot use this command in its directory, but should first cd to another directory before using: umount/mnt/cdrom.
Ii. Install software
Pin-to-link Software generally ends with .gzor .tarw..tar.gz. The former is compressed by gzip, and the latter is archived by tar and compressed by gzip.
1. Use the command gzip-d filenameto decompress the compressed file ending with .gz. The obtained file is in the current directory, but it has no. GZ file.
2. Run the tar-xvf filenamecommand to create an archive file ending with .tar. The generated file is in the same directory as the source file, and only .tar is missing.
3rd files ending with .tar.gz are the most common and can be directly installed with the command: gzip-cd filename | tar xfv. (You can also use this command to decompress: tar-zxvf filename.) In general, the first item of this type of files is a directory. Therefore, this directory will be created when the preceding command is used, and store all files in this directory. In special cases, run tar-tvf filename | more to view the first object. If it is not a directory, create a directory first, store the file under this directory, and run the command tar-xvf filename to install the file. After the preceding steps, files such as README and INSTALL are generated. Use vi to carefully read the relevant parts of these files, and configure them more specifically. The general steps are as follows:
1)./config,
2) make install
3) make. The main change is in the first step. parameters are required later. You can see that you can use the command to select./config -- help.
Iii. Example of practice: apacheWeb server) and php3 Software Installation
Download the Linux software apache.tar.gz?php3.tar.gz from the Internet.
1. Because apache.tar.gz is greater than 1.44 M, you can use MSDOS of SecureCRT to log on to LINUX using the telnet command and upload it through put.
2. Place the two software under the/usr/src directory and run the command gzip-cd apache.tar.gzphp3.tar.gz) | tar-xvf to install the software. This will see two directories: apache_1.3.6 and php-3.0.7.
3. Under the first directory, you will see the most important files: README and INSTALL. If it is in the GUI, you can open two xterms, one for careful reading, and the other for configuration according to the prompts of the file.
4. In the second directory, you will soon find the files: INSTALL, INSTALL. DSO, and README. QNX. Steps are similar to 3. Because these two files are correlated, you must configure the former.
5. After configuration, enter/apache_1.3.6/conf/httpd. conf. In the file, understand its comments, delete or add some options before "#". After saving the file, run the command/usr/src/apache_1.3.6/bin/apachectl start to open the http service and then browse the Web page in Netscape Communication.
This article introduces whether you have clearly understood the usage of the mount command in LINUX. I hope it will be helpful to many users who have learned about LINUX.
- Analysis on Suse Linux under vm
- Preschool guidance: SUSE Linux
- Abbreviations in SUSE Linux
- Operation Manual: Install the RDAC driver in SUSE
- Your Chameleon: Open Suse