Objective: To summarize the basic usage of common commands in Linux.
Document actions:
- Toggle file Directory command: CD
Switch to the specified directory file: CD/(Switch to the root directory, similar to Windows with the mouse to select the target file)
Go back to the top level directory: CD.
Network section:
- Display Configuration Network Devices command: ifconfig (similar to ipconfig under Windows)
View Network device information: ifconfig
Modify IP Address: sudo ifconfig eth0 192.168.1.29 netmask 255.255.255.0
Network card shutdown and opening: sudo ifconfig eth0 down/up
(Note: When the above command is used to set up the network card, it will be invalidated after the machine restarts, and the configuration file of the NIC must be modified for long-term maintenance.)
Classification of high-frequency commands under Linux (Basic use article)