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

Sample Analysis of Common commands and Project deployment in linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Linux system common commands and project deployment example analysis, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Common instruction

Ls display file or directory cp copy mv move or rename

Mkdir creates a directory grep looks for a string in a text file

Echo creates files with contents rmdir deletes empty directories

Cat view file content more, less paging to display text file content

Rm delete files rm-rf forcefully deletes directories and files

System management command

Ps displays instantaneous process status ps-aux

Kill kills the process. You can first use the ps or top command to view the process's id, and then use the kill command to kill the process.

Netstat displays network status information

Packaging Compression related commands

Tar: package compression

-c Archive document

-x compressed file

-z gzip compressed file

-j bzip2 compressed file

-v shows the compression or decompression process v (view)

-f use file name

Tar-cvf / home/abc.tar / home/abc is packaged only, not compressed

Tar-zcvf / home/abc.tar.gz / home/abc is packaged and compressed with gzip

Tar-jcvf / home/abc.tar.bz2 / home/abc is packaged and compressed with bzip2

Of course, if you want to extract it, just replace the "c" in the above command tar-cvf / tar-zcvf / tar-jcvf with "x".

Shut down / restart the machine

Shutdown

-r shutdown and restart

-h shutdown does not restart

Now shuts down immediately

Halt shutdown

Reboot restart

Vim usage

There are three modes of vim: command mode, insert mode and edit mode. Use ESC or I or: to switch modes.

In command mode:

Q exit

: q! Forced exit

Wq saves and exits

: set number displays the line number

: set nonumber hides line numbers

CentOS7 Firewall is off

1. Turn off the firewall: sudo systemctl stop firewalld.service

2. Turn it off and start up: sudo systemctl disable firewalld.service

3. Install iptables firewall

Execute the following command to install iptables Firewall: sudo yum install iptables-services

4. Set iptables Firewall to boot: sudo systemctl enable iptables

The answers to the sample analysis questions about the common commands of the linux system and the deployment of the project are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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

Internet Technology

Wechat

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

12
Report