Java EE programmer should master the knowledge __linux Linux

Source: Internet
Author: User
Tags tar unzip cpu usage file permissions perl script

The general application of large Java EE is constructed 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. Below according to my development experience, lists the Linux knowledge which the programmer needs to master basically.

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, using/shielding the meaning of a special character
7, Regular expression

Second, master Vim editor.

Third, the LIUNX environment under the shell script, the Perl script writes
In order to manage Web server applications, it is often necessary to write some scripts.
The script is written to focus on the following points:
1. Understand the meaning of double quotes, single quotes, and inverted quotes.
2, the use of backslashes.
3, the Shell script assignment statement to the left of the variable name does not add $, often write Perl scripts often make this error.
4, long string, with space, as a parameter of the script error, enclose the string in double quotes.
5. Have a good command of the use of awk and sed.

Iv. installation of basic software packages
Apache, resin, MySQL
The general steps are:
Configure
Make
Make install

V. Related Websites
The following site is a relatively good Linux site, you can go to see.
http://www.linuxforum.net/

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.