1. Check the time and date
Date
2. Set time and date
command to set the system date to June 10, 1996
Date-s 06/10/96
07/19/14
command to set the system time to 1:52 P.M. 0 seconds
Date-s 13:52:00
3. Write the current time and date to the BIOS to avoid failure after reboot
Hwclock-w
4.
rz-be//Upload
RM right.jsp//Delete
RM-RF payuser//Delete folder
Unzip A.zip//decompression
Zip Filename.zip DirName
VI right.jsp//Edit
PWD//Current directory
wget http://127.0.0.1/mobileBusiness//Whether the project has played a
MKDIR ABC//CREATE ABC folder
Tail-f catlinout.log//view Log commands
CTRL +//Stop printing
MV a.jsp b.jsp//Backup
SZ a.jpg//Download the original reservation of the picture
Su-epaysch//Switch User
Cat server.xml//viewing files
NETSTAT-LNTP//view which ports are open
Netstat-anto
Netstat-an|grep 12346//Check if the port is open
--Find
Grep-n ' xxx ' xxx.log//This is the number of rows that contain query entries
: N//n is the number of rows
VI Xxx.log Enter-"/xxx jump to the location of ' xxx '
To---Edit a configuration file step:
VI souce.properties
I//Edit file
Esc
: X//Save exit
: q! Do not save exit
Linux Common commands