Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux fundamentals 06-testing common linux commands collection 6

Shulou Source: shulou.com Published: 2022-06-02 05:49:33 10月03日 Update

This article mainly continues with the previous article on "testing common linux command set 6", including "touch, vim, yum, whereis, rpm" commands. Hope that interested friends can keep watching and welcome to put forward valuable suggestions for us to make progress together!

Command touch vi-vim Shortcut key Operation Chart .jpg31: command yumyum [parameters] [command] [package] description: find, install, update, delete one, a group or even all of the software packages of the command command to carry out the operation; package operation object Note: (1) CentOS system uses yum (2) Ubuntu system uses apt

01) make a list of all updatable software: yum check-update

02) Update all software: yum update

03) install only the specified software: yum install package_name

04) Update only the specified software: yum update package_name

05) make a list of all installable software: yum list

06) View the information of a software package: yum info package_name

07) remove a software package: yum remove package_name

08) find a software package: yum search

09) clear the cache:

Remove software packages in the cache directory: yum clean packages clear headers: yum clean headers clear old headers: yum clean oldheaders in the cache directory

10) get help: man yum

Command whereiswhereis [parameter] [command name] description: search the path where the command is located and the location parameter of the help document:-b locate the executable file location information and output to standard output-m location help file location information and output to standard output-s locate source code file location information and output to standard output

1) display the location of the scp command: whereis scp

2) display the path of the binary program of the scp command: whereis-b scp

3) whereis can help users find the binaries, source code and help pages of a command

Command rpmrpm [parameters] [command name] description: management tool parameters of the software package:-a query all packages-e delete specified packages-f query packages with specified files-h suites list when installing-I display information about suites-p query specified rpm files-Q use query mode When there is any problem, the rpm instruction will first ask the user-U to upgrade the specified package file-v to show the instruction execution process.

1) check the package name of the scp command: rpm-qf / usr/bin/scp

2) return information about the package: rpm-qif scp or rpm-qi package_name

3) return the file list of the software package: rpm-qlf scp

4) query whether the tree command is installed: rpm-Q tree

5) install a software package: rpm-ivh package_name

6) upgrade a software package: rpm-Uvh package_name

7) Uninstall a software package: rpm-e package_name

Linux orders that you can't just look at theoretical knowledge, you have to knock more and practice. You look good when you try to type orders.

Tags: Software commands packages suites information files output location parameters help cache update query standard directory location binary command name location instruction Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux Apple Xiaomi vpn