Last active
August 13, 2024 08:08
-
-
Save bbuyukkahraman/6276cab131c1c1ac9dbe3d6b075e9dc7 to your computer and use it in GitHub Desktop.
Linux Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux Networking Commands | |
# ifconfig : Display network interface information. | |
# ip address show : Show/manipulate routing, devices, policy routing,and tunnels. | |
# route -n : Display or manipulate the IP routing table. | |
# ping google.com : Send ICMP ECHO_REQUEST to network hosts. | |
# traceroute google.com : Print the route packets trace to network host. | |
# netstat -an : Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. | |
# ss -tulpn : Display socket statistics. | |
# hostname : Show or set the system's host name. | |
# dig google.com : DNS lookup utility. | |
# nslookup google.com : Query Internet name servers interactively. | |
# route add default gw 192.168.1.1 : Manipulate routing tables. | |
# iptables -L : Administration tool for IPv4 packet filtering and NAT. | |
# tcpdump -i eth0 : Dump traffic on a network. | |
# service sshd restart : OpenSSH daemon. | |
# telnet google.com 80 : User interface to the TELNET protocol. | |
# scp file.txt user@remote:/path/to/destination : Secure copy (remote file copy program). | |
# wget http://example.com/file.zip : Non-interactive network downloader. | |
# curl http://example.com/api : Command line tool for transferring data with URL syntax. | |
# Iptraf : Interactive color IP LAN monitor. | |
# iftop : Display bandwidth usage on an interface. | |
# nmap -sP 192.168.1.0/24 : Network exploration tool and security scanner. | |
# lsof -i :80 :List open files. | |
# ethtool eth0 : Display or change ethernet card settings. | |
# arp -a : Display or modify the ARP cache. | |
# route : Display or modify the IP routing table. | |
# ss -s : Display socket statistics. | |
# hostnamectl status : Control the system hostname and related settings. | |
# resolvconf -u : Manage DNS information. | |
# mtr google.com : - Network diagnostic tool. | |
# Iwconfig : Configure a wireless network interface. | |
# nc -l 8080 : Arbitrary TCP and UDP connections and listens. | |
# scp file.txt user@host:/path/to/destination : Copy files between hosts on a network. | |
# ssh-keygen -t rsa : Generate, manage, and convert authentication keys for ssh. | |
# ss -t -a : Show socket statistics. | |
# tcpdump -i eth0 tcp port 80 : Capture and display packets on a network. | |
# route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1 : Add a new route. | |
# nmcli connection show : Command-line client for NetworkManager. | |
# dig +short A google.com : Perform DNS lookups. | |
# nload : Visual representation of incoming and outgoing traffic. | |
# iperf -c server_ip : Tool for measuring TCP and UDP bandwidth performance. | |
# fping -a -g 192.168.1.1 192.168.1.254 : Quickly ping multiple hosts. | |
# iftop -n : Real-time console-based network bandwidth monitoring tool. | |
# route del -net 192.168.2.0 netmask 255.255.255.0 : Delete a route. | |
# tcpdump -A -i eth0 : Capture and display packets in ASCII. | |
# nc -zv 192.168.1.1 22 : Utility for reading from and writing to network connections. | |
# nmtui : Text User Interface for controlling NetworkManager. | |
# ethtool -s eth0 speed 100 duplex full : Change the speed/duplex settings of an Ethernet device. | |
# ss -l : Show listening sockets. | |
# host google.com : DNS lookup utility. | |
# nmcli device wifi list : List available Wi-Fi networks. | |
$ docker run -it --rm ubuntu | |
$ env | |
$ ps aux | |
$ ls -l / | |
$ uname -a | |
$ apt list | |
$ date | |
$ which date | |
$ ls -lrt / | |
$ ls /bin | |
$ tree | |
$ ls -l /proc/ | |
$ kill 1 | |
$ alias |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment