Some of the common Linux commands

Source: Internet
Author: User

Recently exposed to some of the Linux environment Deployment things, below to share some of the most recently used some of the more frequent Linux commands ~

1. Move multiple files into one folder at once

MV is moved file name-T destination folder

such as: MV A.txt b.txt-t CentOS (a.txt b.txt These files to the CentOS directory)

2. Create multiple directories

Mkdir-p b/b/b

3, delete the folder and all the following files

RM-RF file name

4. Find the installation directory for a software

Find/-name file name

5. View a log of a file

Tail-f. /logs/catalina.out

6. Kill a Process

Kill-9 Process Number

7. Detecting the presence of background processes

PS-EF |grep Process Name

such as: Ps-ef |grep Redis (see if the Redis process exists)

8. Detect if a port is listening

NETSTAT-LNTP | grep Port number

Example: NETSTAT-LNTP | grep 6379 (detects if Port 6379 is listening)

9. Turn off the firewall

Systemctl Stop Firewalld.service

Some of the common Linux commands

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.