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 commands commonly used in Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces what the commonly used commands in Linux have related knowledge, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value, I believe you will gain something after reading this Linux command which articles, let's take a look at it.

I. Preface

Linux is a free and open source UNIX-like operating system. The kernel of the operating system was released by Linus and Torvalds on October 5, 1991. after adding user-space applications, it became the Linux operating system. Linux is also an example of the development of free and open source software. As long as you follow the GNU General Public license (GPL), any person or organization is free to use all the underlying source code of Linux, or to modify and redistribute it. Most Linux systems also include programs such as X Window, which provides GUI. With the exception of some experts, most people use the Linux distribution directly, rather than choosing each component or setting it up.

II. Classification

There are disputes in martial arts and factions.

Generally speaking, well-known linux systems are basically divided into two categories, depending on the use of installation commands:

1.RedHat series: Redhat, Centos, Fedora and other common installation package format rpm package, the command to install rpm package is "rpm-parameter"

Package Management tool yum

Support for tar packages

* * centos for general servers * *

2.Debian series: Debian, Ubuntu and other common installation package format deb package, the command to install deb package is "dpkg-parameter"

Package Management tool apt-get

Support for tar packages

3. Linux default directory

Linux's file system uses a hierarchical tree directory structure, in which the top level is the root directory "/", and then create other directories under this directory.

The name of the directory can be customized under Linux, but some special directory names contain very important functions, so it is not recommended to change the name of the directory so as not to cause errors and cause the system to crash. When you install Linux, the system creates a number of default directories with special functions:

View the original

4. Common commands # #

Open a file

Cd command

Return to the home directory

Cd. /

Return to the previous directory

Cd..

Enter the target directory

Cd / usr

Ps: using absolute path

Create a new file

Mkdir file name

Show Fil

Ll or ls

Combined with mkdir ll command

Found that file a has been created

Delete a file

Rm

No interrogative deletion required

M-rf file name

Use ugly notepad #

Vi

Use a handsome notepad

Vim

View the contents of the file

No real-time performance

Cat

Real-time performance

Tail-f

If there is an output, it will be loaded in real time.

Task Manager for Linux

Top

Pid represents the id of the process

End the task

Kill-9 corresponds to pid

View the target's pid

Ps-ef | grep java

Matching tool

Grep

Looking for a file

Find. /-name file name

This is the end of the article on "what are the commands commonly used in Linux?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "what commands are commonly used in Linux". If you want to learn more, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report