White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]

Statement before class:
1. This sharing is only for learning exchanges, please consciously abide by laws and regulations!
2. Search: Kali and programming, learn more online*** dry goods!
3. Kali and programming are updated on time every day, please learn and pay attention!
Body part
1. Background introduction
The computer operating system that most of us usually use the most is the Windows operating system, such as Windows XP, Windows 7, Windows 8, Windows 10, but if we want to be an excellent IT practitioner, we must Familiar with the operating system (OS) that network security practitioners and IT leaders often use and like to use. This operating system is the Linux operating system we are familiar with. You may feel that you have just heard of this system. , But I haven't used the system before, but what I want to say is that the mobile phone system (Android) we use every day is an operating system based on the Linux kernel. Does it feel amazing? Before we start to learn network security related knowledge systematically, let us first understand the difference between the use of Windows system and Linux system, so that we can learn related knowledge better, master Linux knowledge better, and become an early An excellent cyber security practitioner, so what are you waiting for? Let us study together next!
2. Resource equipment
1. A virtual machine with WIn10 installed
2. A Xiaobai ready to go.
3. One installed Kali Linux virtual machine.

3. Strategic Arrangement
3.1 Use commands in the Linux system to retrieve the corresponding software that needs to be installed, as shown in the figure below.
Step 1: Retrieve the package name
command: apt-cache search Software keyword
example: apt-cache search jdk
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
retrieves the jdk related software package as shown in the figure below.
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Step 2: Split the screen to display the search results, as shown in the figure below.
Command: apt-cache search jdk | less
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Step 3: Select the corresponding software package to install, as shown in the figure below.
Command: apt install Software name
example: apt install openjdk-9-jdk
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Step 4: View the help information of the apt command, as shown in the figure below.
Command: apt --help
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Step 5: Use the apt command to uninstall the installed software, as shown in the figure below.
Command: apt remove software name
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Step 6: Windows system installation software will have a corresponding software manager (software source), so does Linux system have a corresponding software source? The answer is yes, let us configure the software source of Linux.
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Configure the software source:
Command: vi /etc/apt/sources.list
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
Add software source:
Common Kali Linux update source:
#中科大
deb http://mirrors.ustc .edu.cn/kali kali-rolling main non-free contrib
deb-srchttp://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http:/ /mirrors.aliyun.com/kali kali-rolling main non-free contrib #Tsinghua
University
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https:// mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
Step 7:
Basic introduction to the use of vim editor : vim is an extension of vi, known as the god of terminal editors.
Software installation: yum (centos ) Install vim/apt-get install vim
working mode
1>. Normal mode (view mode):
use format description: vim filename
If the file already exists, it will be opened directly
If the file does not exist, the file will be created directly. If the file is not operated, the file will not be saved. It is
mainly used to browse or modify the text content.
Use vim to open the file in the default
mode. Press the esc button in any mode to enter the mode
shift+ zz exits file editing directly
2>. The editing mode is
mainly used to add new content to the text, also called insert mode. In
normal mode, you can enter the mode by entering the following characters
i: start typing text before the character where the cursor is
I: in line First refers to the first non-blank character to start inputting text
a: Start inputting text after the character where the cursor is
A: Start inputting text at the end
of the line o: Open a new line below the line where the cursor is located to input text
O: At the cursor Open a new line above the line to enter the text
s: delete the character where the cursor is and enter the insert mode
S: delete the line where the cursor is and enter the insert mode
3>. Command mode:
mainly used to manage files or set vim, such as save , Exit, give up, etc., instead of modifying the content of the file.
In normal mode, enter':' to enter the command mode. Because the operations are completed in one line, it is also called single-line mode.
Save the file: wExit the
file: qSave and
exit : X/wq, equivalent to the
forced operation of shift+zz in normal mode:!
Force save: w!
Force exit: q!
Force save and exit: wq!
Give up the modification: e!
4>. Visual mode:
shift + left and right angle brackets to move the selected content left and right
Familiar with vim
1>. Open the file
vim filename Open the file and position the cursor at the beginning of the file
1. If the file already exists, open it directly
2. If the file does not exist, create a new file (the file without modification will not be created)
vim filename +n Open the file and position the cursor on the nth line of the file
vim filename + Open the file and position the cursor to the end of the file
2>. The cursor is positioned in the
normal mode according to the following characters:
gg: first line
GG: last line
ngg: Line n
0: start of line
^: first non-blank character
$: end of line
k: up
j: down
h: left
l: right
3>. Copy and paste
Enter the following characters in normal mode:
yy: copy cursor row
dd: clip cursor line
p: paste the contents of the buffer
nyy: copy n rows and after the cursor
ndd: n clip after the cursor line
. 4> rollback operation
u: undo operation just
ctrl + r: anti revoked Just find that the undo earlier is wrong, undo the "undo" operation
5>. The operation in the search and replace
command mode
: Or? Find the content, and then press Enter to find the relevant content, n is turned forward, N is turned back
: %s/find content/replace content/[g], replace the searched content, g means global replacement, [] means Optional
: Start line, end line s/find content/replace content/[g], replace the content found from the start line to the end line, the function of g is the same as above
6>. Basic configuration
: set nu set line number
: set nonu cancel Line number
: set tabstop=4 Set the tab key to 4 spaces
: set fileeccodings=utf-8,gkb Set the character set
**** Note: The line number of the file configured according to the above method will disappear after exiting the editing.
7>. configuration file will be saved :
the configuration in the command mode in the sixth step above is a single time, the configuration will be invalid after exiting vim,
I want to configure in order, automatically effective, you can create a special configuration file
in the user root directory , Create a .vimrc file, this file is the configuration file of vim
, it will take effect when the user logs in, you can write the configuration related to vim, you
can restart the system if you want the configuration file to take effect, or use the command: source ~ /.vimrc #Note
: When
you close vim without saving the file, a temporary file will be generated. The next time you open it, you will be prompted to restore/delete and other related operations. I
White hat*** and network security engineers teach you: the similarities and differences between Kali Linux and Windows software management [2]
typed the creation one by one. It's hard work. Can you please pay attention to me? ? You can also search for: Kali and programming to learn more *** skills! Refused to piracy, please declare the source: Kali and programming
point I learn more Kali Linux*** testing and network*** practical skills!

Guess you like

Origin blog.51cto.com/14308022/2545239