Java EE knowledge of Linux systems that programmers should master

Source: Internet
Author: User
Tags regular expression tar unzip web services cpu usage file permissions mysql database linux

Large-scale Java applications are built in the Linux environment. In the development environment, we can use Samba to map the cost of the network drive, directly in the Windows environment for programming debugging. But the final release is going to the Linux environment, and we have the Web server and database server application management (such as automated script publishing, etc.), application monitoring (Web services are normal, the use of MySQL database), System monitoring (Monitoring disk space usage, etc.) requires programmers to familiarize themselves with the necessary Linux knowledge.

Of course, programmers don't have to be proficient in the entire Linux system. The following is a list of the basic Linux knowledge that programmers need to master.

First, Linux basic commands

1, User management

Userdel Delete user account

Useradd Add user account

SU changes the ID of the current user

2. File Directory Management

LS Browse the directory, view the current directory of files and file names

chmod Modify File Permissions

Chown Change file Owner

CP Copy Files

CD Change current directory

MV Rename a file or move a file

RM Delete files or directories

PWD current Directory

SCP Remote Copy

Alias aliases

3. Other Orders

ln creates a link between the files

Tail output file content after the section, generally we will be through the tail-f real-time view of the current program print logs.

Type to see the path where a command is located

WC View number of rows

grep finds in file contents

Find finding files

Date View Dates

Crontab make planning tasks, usually for system monitoring.

DF to view the disk space, you'd better write a script to monitor the disk space in crontab. More than 90% to send email to the relevant personnel.

PS View process Status

Top View CPU Usage

Kill Terminate Process

Killall Java programmers most like to use killall-9 Java Bar

W View the logged in user and what they are doing, or look at the system's load. Load is too high, you should look for the reason.

Who view the current user's bento situation

Tar unzip or compress files

Echo Console output

wget HTTP Access

RPM RPM Package Management

4, redirect, pipeline

5, standard output, standard error

6, the use of shielding a special character meaning

7, Regular expression

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.