Various J2EE applications are constructed in a Linux environment. In the development environment, we can map with local network drives through Samba, and program debugging directly in a Windows environment. But the last release is still going to the Linux environment, and we have the application management of the web server and database server (such as automatic script release, etc.), whether the web service is normal, the use of the mysql database, system monitoring (monitoring disk Space usage, etc.) require programmers to familiarize with the necessary Linux knowledge.
Of course, the programmer does not have to be proficient in the entire Linux system. Because of the experience developed, listing Linux knowledge that the programmer must have mastered.
First, Linux's basic order
1, user management
Userdel deletes user account
UserAdd increases user account
SU change the ID of the current user
2, file directory management
Ls Browse the directory, see the files and file names in the current directory
CHMOD modifies file permissions
Chown change file owner
CP copy file
CD change the current directory
MV rename file or mobile file
RM deletes files or directories
PWD current catalog
SCP remote copy
Alias alias
3, other orders
LN creates a link between files
Tail outputs the part behind the content, usually we will view the logs printed by TAIL -F.
TYPE View a path where a command is
WC view line number
GREP finds in the file content
Find Find files
Date View Date
CRONTAB develops a planned task, usually used for system monitoring.
DF View disk remaining space, you'd better write a script monitoring disk in crontab. More than 90% will send Email to the relevant personnel.
PS View Process Status
Top View CPU usage
Kill termination process
Killall Java programmers like to use Killall -9 Java
w View login users and what they are doing, or look at the system's LOAD. LOAD is too high, I should find a reason.
WHO look at the current user's convenience
TAR decompression or compressed file
ECHO console output
Wget HTTP Access
RPM RPM package management
4, redirection, pipe 5, standard output, standard error 6, use / block a special character's meaning 7, regular expression
Second, proficient in the VIM editor.
Third, the shell script under the liunx environment, the writing of Perl scripts In order to manage online server applications, some scripts are often required. The script is written in the following points: 1. Understand the meaning of double quotes, single quotes, and reverse quotation marks. 2, the use of anti-oblique lines. 3, the number of variables left on the left of the shell script not to add $, which is often written for the Perl script. 4, the string is relatively long, when the space is contained, the script is wrong when a parameter is wrong, and the characters are brought by double quotes. 5, master the usage of awk and sed.
Fourth, the basic package installation apache, resin, mysql general step is: Configuremakemake Install
5. The website below related websites is a relatively excellent Linux website, you can go see. http://www.linuxforum.net/