Linux (3)

Source: Internet
Author: User
If a CD is attached, but we do not want to use the interface to view the content of the CD, what should we do through the command line? Actually, very... information & nbsp; | & nbsp; Security & nbsp; | & nbsp; if a CD is attached, you are not allowed to view the content of the CD on the UI, how can I do this through the command line? In fact, it is very simple, and the two commands are done. [Root @ localhost ~] # Create a directory for mkdir/mnt/cdrom to store the content of the attached disc [root @ localhost ~] # Mount/dev/cdrom/mnt/cdrom to the/mnt/cdrom directory. Www.2cto.com [root @ localhost ~] # Enter the cd/mnt/cdrom Directory [root @ localhost ~] # Ls view all files under the CD CentOS headers NOTES RPM-GPG-KEYcentosdocs-man.css images RELEASE-NOTES-en.html isolinux repodata yumgroups. an example of managing RPM packages in xml rpm packages: sudo-1.7.2pl-5.el5. 5. el5. rpm includes the software name (sudo), version number (1.7.2pl), and release number (5. el5) and hardware platform (5. el5) installation: [root @ localhost ~] # Rpm-ivh sudo-1.7.2pl-5.el5. 5. el5. rpm-I installation of one or more selected software packages-H use "#" to display the progress of completion-q query the software package system or one or more selected software packages-e delete all select one or more software packages-u upgrade a software package that has been installed to the new version-v verifies that one or more software packages have been installed or selected [root @ localhost ~] # Rpm-ivh sudo: -- excludedocs does not install the document file in the software package -- prefix PATH installs the software package to the PATH specified by PATH -- test www.2cto.com only tests the installation time and does not actually install -- replacepkgs overwrites the installation, if we accidentally delete some software in the installation package, this parameter is very useful-U can be used to upgrade the software by adding uppercase U to the parameter [root @ localhost ~] # Rpm-Uvh sudo-1.7.2pl-5.el5. 5. el5. rpm uninstall: Note: If other software packages are dependent, a message is displayed during the Uninstall. you can use -- nodeps to forcibly uninstall [root @ localhost ~]. # Rpm-e -- nodeps sudo, but this is generally not recommended. we can uninstall the dependent software package before uninstalling it. Benefits of YUM package management application yum @ automatically resolve dependencies of software packages @ convenient software package upgrade first we need to ensure that we can connect to the Internet, of course, you can also set up a yum repository on the LAN, but it does not make much sense. If this is installed on your linux system, your installation software will become very simple. Add the mysql database you want to install [root @ localhost ~] # Yum install mysql: yum install yum check-update check upgrade yum update upgrade yum list package query yum info package information yum remove uninstall www.2cto.com yum-help man yum help PS: start playing deep linux, at least from the interface, unlike ylmf OS, which is similar to windows, the interface is of course. below the command, I don't have such a high level to watch videos (linux video tutorial ), in fact, the content I have organized is the content of the video tutorial "LAMP brothers-linux" on the donkey. If you are interested, you can download it. I personally think it is good. Deep linux is developed based on ubuntu. I do not comment on Chinese products, so it is easy to find and spray. Haha! Two minor problems are encountered during use. Post the problem. Other linux may also encounter similar problems. By default, deep logon is performed by common users. to use root logon, you need to add a root password. How to set the root user fnngj @ fnngj-virtual-machine:/$ sudo passwd root [sudo] password for fnngj: enter a new UNIX password: re-enter the new UNIX password: passwd: you have successfully updated the password fnngj @ fnngj-virtual-machine:/$ su -- root Password: www.2cto.com. you want to upload the following files in depth, but the connection fails, generally, the ssh service is installed by default in linux. However, the installation is very simple, and a command is required. Install the ssh service root @ fnngj-virtual-machine:/etc/init. d # sshd start program "sshd. Run the following command to install: apt-get install openssh-serverroot @ fnngj-virtual-machine:/etc/init. d # apt-get install openssh-server check if the ssh service has enabled root @ fnngj-virtual-machine:/etc/init. d # netstat-nap | grep-I sshdtcp 0 0.0.0.0: 22 0.0.0.0: * LISTEN 3315/sshd tcp6 0 0 0 ::22 ::* LISTEN 3315/sshd author
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.