This is the first day of my participation in Gwen Challenge

alias

Alias ll=’ls -l’ Alias the longer command ls -l Alias -p Displays the aliases of the commands that have been set

apt-get

Apt-get install upgrade Apt-get install upgrade Apt-get install upgrade

bc

The calculator

cal

According to the calendar

cat

Cat/sys/class/net/enp3s0 / speed to check the rate card

chattr

Modify the extended attribute of the file chattr + I a.txt to make A.txt unchangeable or deleted, even if the superuser chattr -i a.txt makes A.txt mutable

curl

Curl www.lyjiot.cn shows that under the path of HTML content curl – o v2. HTML www.lyjiot.cn/data/v2.html download file curl cip. Cc to view the current network public IP address

date

date -s "2018-01-05 10:10:10"

dd

Data can be read from standard input or a file, converted according to a specified format, and then output to a file, device, or standard output. Dd if=/dev/zero of=./aaa bs=4M count=10 Read data from /dev/zero and write to a./aaa file with a size of 40 MB

df

Report the disk space usage of the file system

diff

Diff v2. TXT test. TXT – y – w50 function: file comparison – y side by side output format – W bar “|” said wide 2 file contents have different before and after the “<” means less than the previous file 1 row behind the content of “>” said behind much more than the previous file 1 line

Diff up havebug.c nobug.c > patch Generates a patch file code for a single file — diff and patch

dpkg

DPKG is a Debian command-line tool that can be used to install, delete, build, and manage Debian packages. Sudo DPKG -i code_1.31.1-1549938243_amd64.deb

du

Report disk space usage du -h –max-depth=1./ View the current directory size

export

Sets or displays environment variables

fuser

Fuser -k /dev/pts/ user ID Disables a user that logs in to the system

getconf LONG_BIT

See how many bits the operating system is

jobs

View how many commands are currently running in the background

hexdump

Used to view the hexadecimal codes of “binary” files, but it can actually view any file, not just the binary file hexdump -c test.txt output specification hexadecimal and ACSII codes

ip

IP a View all IP addresses

ldconfig

Sudo ldconfig To share the dynamic link library with the system, run the ldconfig command to manage the dynamic link library

ldd

View dynamic libraries on which the executable depends

ln

Ln [Parameter][Source file or directory][Target file or directory] ln tt. TXT tt Creates the hard link file tt ln -s test. TXT test Creates the soft link file test

lsattr

Displays the extended properties of the file

ipcs

Ipcs-a is the default output information. It displays information about all the communication modes between processes in the current system. Ipcs-m Displays information about the communication between processes using the shared memory Ipcs -u Displays the resource usage. Ipcs -l Displays the resource restriction

lsof

Lsof -i:4000 Displays the processes in use on the specified port

mount

sudo mount -t vboxsf RT-Thread/ RT-Thread/

mv

mv ! (child1) Child1 moves all files in the current directory to child1

mysql

Mysql -h 172.17.0.5 -u root -p123456 Connect to mysql

nethogs

Network bandwidth statistics by process nethogs eth0 eth1

nc

Nc-zv 211.159.189.50 22 Check whether the port on the remote host is accessible

nmap

Network detection and security audit nmap-sp 192.168.1.0/24 Scan for all IP addresses in the network segment cat /proc/net/arp Check the MAC address corresponding to the IP address nmap-vv 192.168.1.74 Which ports are opened by scanning IP addresses

nmcli

This command is used to complete the configuration of all network adapters and can be written into the configuration file, taking effect permanently. Nmcli c View all network connections

nohup

Nohup./go_web & background run./go_web

ntpdate

Ntpdate -u ntp.api.bz Updates the time from the ntp.api.bz server

patch

Patch-p0 haveBugtest. c patch Patch

route

Link 1 link 2

rpm

Installing or uninstalling software packages

RPM -qa lists installed packages

scons

Scons is an automated build tool written in Python

scp

SCP -p 7777 localfile user@host:/dir Specifies the port for copying files

screen

Screen-s Job name Create a job screen-ls List all current jobs screen-r job serial number Go back to a job screen-d job name End a job screen-d-r job name remotely End the current job and return to a job Ctrl + a k Kill the current window Ctrl + a d save the process and exit the job (program continues on Screen, screen-ls can be viewed) Ctrl + a n switch to the next window link

sed

The sed command uses scripts to process text files sed -n ‘3p; 11p; $p’ test $p’ sed -n ‘$p’ test $p’ sed -n’ $p’ $p’ $p’ $p’ $p’ 20190121151033. The log | grep “05032 c6a6f005e41d102” search log of a certain period of time

sort

Sort c. TXT Sorts file contents in ascending order

source

Source FileName Reads and executes commands in FileName in the current bash environment. * Note: This command is usually executed using the command “. To replace. .filename (with space in between)

stat

Stat -c “%A %A % N % S % T % I %f %d” smartDev2Cloud formats to display file status information

sysctl -a

Sysctl is an interface that allows you to change a running Linux system. It includes some advanced options for TCP/IP stacks and virtual memory systems, which can allow experienced administrators to improve dramatic system performance. More than 500 system variables can be read and set with SYSCTL. Based on this, sySCtl (8) provides two functions: reading and modifying system Settings.

tail

Tail – n, 80000000, 20190121151033. The log | grep “05032 c6a6f005e41d102” search n lines of the log at the end of tail – n 2 test. TXT show line 2 at the end of tail – n + 2 Test.txt is displayed starting at line 2

tee

Ping www.baidu.com | tee ping. Log assumptions for some reason, you are using the ping command, want to put these information written to the file again at the same time, at that time, the tee command will come in handy for the tee

time

Time dd if=/dev/zero of=./aaa bs=4M count=10 Indicates the time spent running the command dd if=/dev/zero of=./aaa bs=4M count=10 to calculate the write speed of the SD card

tree

Tree./ Displays the file structure of the specified directory

type

Used to determine whether another command is a built-in command

uname

Uname -a Displays all information about the computer and the operating system. Uname -m Displays the processor architecture of the machine. Uname -r Displays the release number of the operating system

update-alternatives

Update-alternatives –config python Toggle the Python version

update-rc.d

Update-rc. d clear_old_file defaults Specifies the script used to update the system boot option

uptime

Uptime Displays the current time, uptime, and number of login users

Uptime -p Displays only the system startup time

Uptime-s Displays the startup date and time of the system

vim

Unindent: set paste Automatic indent: set AI! :s/from/to/g Replace all from in the current line with to :%s/from/to/g Replace the contents of all lines delete all: press ESC, then dG

wall

Echo “hello” | sudo wall – n to all users to send a message to echo $PWD | sudo wall – n to all users to send the current path

wget

Wget -t 3 – timeout = 5 “http://www.lyjiot.cn:8080/download/Tequ” – O/TMP/agv. Bin download files – t retries, the default 20 times, -timeout=seconds Specifies the timeout period for each connection. The default value is 900 seconds