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