As testers must be very familiar with the Linux system commands, especially for advanced Test engineers, engaged in performance testing, it is necessary to understand the Linux command, only some of the common commands to explain, to learn more about the following articles
Ctrl Z terminates the current program/CTRL C
CD entry
Ls/ll View
mkdir Create
RM-RF folder name
RmDir Deleting a folder name
Ifconfig IP View
Netconfig setting up the NIC
Service Network Restart/stop/start restart NIC
Source/etc/profile the contents of the changed profile to take effect (environment variables)
Clear Clear Screen
PWD View Path
Exit exits
Shutdown-h now immediately shuts down the machine
Shutdown-r 10 10 minutes after restart
Reboot restart
CP file location/file name/destination/.
TAR-ZXVF file name. gz-c/Destination Extract GZ format files to a place compressed TAR-ZCVF s01.sh.gz s01.sh
Unzip file name. zip Extract zip file
Decompression: Tar jxvf FileName.tar.bz
Unzip bz2 file Bunzip2 filename.bz2
Unzip. Z Files Uncompress filename.z
./Execution Procedure
Touch/File location/file name
Cat Tac More less head tail-f (monitor change file) 500 file name
MV/filename Destination
MV Old name New name
Find directory-name file name
Ping IP View IP address connectivity
VI General mode conversion edit Mode AIO edit mode convert command-line mode ESC:
Edit Mode command dd Delete yy copy p paste cursor move G return to last row GG return to first row
Command line mode command W save Q exit q! Force exit Set NU display line number set Nonu Cancel line number 1, $s/word/sky/g replace word for Sky from first line to last row
Learn from the above commands, you can basically decorate some lamp environment, below will teach you how to decorate the JDK:
If you are a virtual machine, please find the shared folder cd/mnt/hgfs/share file name first
installation program under LS shared file
CP jdk-6u10-linux-i586.bin/usr/jdk Copy to the JDK under the default installation path (build a JDK filename) under File
CD/USR/JDK Enter folder LS to see if the copy was successful
./jdk-6u10-linux-i586.bin Run Program click y Enter to show done indicates successful installation
Configuring Environment variables
Vi/etc/profile Find done location Add environment variable I enter edit state input
#set Java Environment
Java_home=/usr/java/jdk1.6.0_10
Classpath=.: $JAVA _home/lib/tools.jar
Path= $JAVA _home/bin: $PATH
Export Java_home CLASSPATH PATH
Wq saving an edited document
Source/etc/profile to make the configured environment variable effective
View Java version number java-version
Basics of Linux Command Daquan