Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the linux command technologies?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "what linux command technology". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The system service management systemctlsystemctl command is a combination of service and chkconfig commands that can be used to manage the system.

Output the status of each service in the system:

Systemctl list-units-type=service

View the running status of the service:

Systemctl status firewalld

Shut down the service:

Systemctl stop firewalld

Restart the service (regardless of whether the current service is started or shut down):

Systemctl restart firewalld

Reload the configuration information without interrupting the service:

Systemctl reload firewalld

Prohibit service from booting and self-starting:

Systemctl disable firewalld

File Management ls

List all files in the specified directory, list the files in the / directory:

Ls-l / pwd

Get the absolute path of the current working directory:

Passwd

Used to set the user password:

Passwd rootsu

Change the user's identity (switch to superuser):

Su-clear

Used to clear screen information

Man

Displays help for the specified command:

Man lswho

Query what running level the system is at:

Who-r

Displays the users currently logged in to the system:

Who-buT

Ps

Displays the running dynamics of the system process:

Ps-ef

View the running dynamics of the sshd process:

Ps-ef | grep sshd

If you see this, why don't you join me in the group 973961276 to study?

Top

Check out real-time active processes, Windows-like task managers.

Mkdir

Create a directory:

Touch

Used to create files, such as text.txt files:

Touch text.txt

Dh

View the size of files and folders in the current directory:

Du-h-max-depth=1. / * ifconfig

Displays the current network interface status:

Netstat

View current routing information:

Netstat-rn

View all valid TCP connections:

Netstat-an

View the monitoring services started in the system:

Netstat-tulnp

View system resource information in the connected state:

Netstat-atunpwget

Download files from the network

File upload and download

Install the upload and download tool lrzsz

Yum install-y lrzsz

To upload a file, enter the following command XShell will pop up the file upload box

Rz

To download the file, enter the following command XShell will pop up the file save box

Installation and management of sz fileName software rpmRPM is an acronym for Red-Hat Package Manager, a general package management method under Linux, which can be used to install and manage software packages ending with .rpm.

Install the package:

Rpm-ivh nginx-1.12.2-2.el7.x86_64.rpm

Fuzzy search package:

Rpm-qa | grep nginx

Find the software package precisely:

Rpm-qa nginx

Query the installation path of the package:

Rpm-ql nginx-1.12.2-2.el7.x86_64

View the summary information of the package:

Rpm-qi nginx-1.12.2-2.el7.x86_64

Verify that the contents of the package are consistent with the installation files:

Rpm-V nginx-1.12.2-2.el7.x86_64

Update the package:

Rpm-Uvh nginx-1.12.2-2.el7.x86_64

Remove the package:

Rpm-e nginx-1.12.2-2.el7.x86_64yumYum is the abbreviation of Yellow dog Updater, Modified, can automatically download and install RPM packages online, can automatically deal with dependencies, and install all dependent packages at once, very convenient!

Install the package:

Yum install nginx

Check for software packages that can be updated:

Yum check-update

Update the specified package:

Yum update nginx

Look for package information in the repository:

Yum info nginx*

List all packages that have been installed:

Yum info installed

List the package name:

Yum list nginx*

Fuzzy search package:

This is the end of yum search nginx's "what are the linux command technologies"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report