Kali linux basic instructions

Kali linux basic instructions

​ pwd show current path

​ cd switch directory

/ Root directory

~ User home directory (different for each user)

/root/ root's home directory

/root/desktop root's desktop

When the user is root, ~ is equal to /root

.. Up-level directory (two decimal points)

. Current directory

​ The touch file creates a new file, there is no specific format for the file in linux.

​ ls View all folders and files in the current directory

​ ls -l View file attributes, file specific detailed attributes

​ mkdir file name to create a new directory

​ mv file directory cut operation, move the file to the directory

​ cp file directory copy operation

​ rm file-fr force deletion

​ ifconfig View the ip address information of all network cards

​ ifconfig eth0 192.168.6.77 netwask 255.255.255.0 temporarily configure the ip address of the network card to restart invalid

​ vi/vim file: vim editor, vim is an upgraded version of vi

vim command:

vim file

dd delete a line

u Cancel

3yy copy three lines

i enter edit mode

p paste

esc return to command mode

:wq! Save and exit

Please Baidu for other instructions, very simple

Other linux ------------- kali linux

​ ifdown eth0 -------- ifconfig eth0 down disable eth0 network card

​ ifup eth0 ------------ ifconfig eth0 up Turn on the eth0 network card

​ init 0 shutdown

​ reboot reboot

Guess you like

Origin blog.csdn.net/qq_43266876/article/details/108829391