table of Contents
- reboot
- shutdown -h 0 now
- unname -r
- netstat -an
- cp
- cat
- tail
- > And >>
- echo
1, reboot command
Restart the server command
2, shutdown -h now command
Shutdown command
3, uname -r command
View linux kernel version
4, netstat -an command
Find all ports linux or Windows below
5, cp command
Command to copy files, to copy the contents of a file to another folder
Meanwhile cp can also copy the folder
6, cat command
After viewing the command is displayed, you can directly view the file information inside, where I entered written a string
7, tail command
After displaying N command line, the default file name format for the tail -N
8,> and >> commands
> Was introduced (replication), cat A> B of the content A into B (overwrite the original content, it is a special case where no data bbb.txt)
>> additional introduction of cat A >> B not overwrite added here
Here I once additional introduction of bbb.txt, so the data has doubled
9, echo command
A text output command, the text can be directly displayed on the terminal, the file can be used to directly increase the string. Here I simply echo to a null character replaces the text bbb
Direct use this command cat / dev / null command to clear the file