[Project Combat] Common commands and basic introduction of Linux system

1. Linux common commands

Process/File Commands
Network/Security Commands

2. Linux daily development commands

cat command
pwd command
rm command
mv command
source command
attrib: statement
modify: modify
chmod: modify file permissions
change: change
tar zxvf decompression command

3. Using Vim

Link: https://www.vim.org/download.php
In addition to enjoying a great editor, you can also help Ugandan children.
The threshold for Vim is a bit high. If you only need a simple editor to replace notepad, you can move to the next software: Notepad++.
If you are interested in and have the perseverance to learn an editor (it is also possible to build an IDE) to improve the efficiency of text editing, you might as well get in touch. My text editor, IDEA, and Chrome are all Vimized through plug-ins, and I can't do without them (stand up).

3.1 Basic commands of vim

3.2 The difference between vim and vi

Four, Linux tips

4.1 Create a root user and set the account password

Enter sudo passwd rootto create a root user and set the account password

insert image description here

4.2 Configuration file of Linux environment variables: /etc/profile file

Configuration file of Linux environment variables: /etc/profile file

  • This file involves the environment of the system, that is, related to environment variables. This modification will take effect for all users.
  • /etc/profile will first execute all *.sh files in the /etc/profile.d/ directory.
  • Linux is a multi-user operating system. There is a dedicated runtime environment when a user logs in or switches (that is, the Login shell starts), but first executes /etc/profile.
  • And Non-login shell will not invoke this script. The default environment (definition of a set of environment variables) is generally the same for each user. Users can also configure the operating environment by themselves, that is, modify the corresponding system environment variables.
  • Variables set in the /etc/profile file are global variables. The .bashrc file (in the user's home directory) is only useful to the current user.
  • ~/.bashrc、~/.bash_fileIt is the configuration information under the current user directory.
  • Use the source command to update after modification.

Guess you like

Origin blog.csdn.net/wstever/article/details/129647666