Network Communication Unix Command
Command | Description | Example |
---|---|---|
ping | Tests connectivity with another host using ICMP echo requests. | ping google.com |
traceroute | Traces the route that packets take to reach a destination. | traceroute google.com |
nslookup | Queries DNS servers for domain name resolution and IP address information. | nslookup google.com |
dig | Performs DNS queries, providing detailed information about DNS records. | dig google.com |
host | Performs DNS lookups, displaying domain name to IP address resolution. | host google.com |
whois | Retrieves information about domain registration and ownership. | whois google.com |
ssh | Provides secure remote access to a system. | ssh username@hostname |
scp | Securely copies files between hosts over a network. | scp file.txt username@hostname:/path/ |
ftp | Transfers files between hosts using the File Transfer Protocol (FTP). | ftp hostname |
telnet | Establishes interactive text-based communication with a remote host. | telnet hostname |
netstat | Displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. | netstat -tuln |
ifconfig | Displays or configures network interfaces and their settings. | ifconfig |
iwconfig | Configures wireless network interfaces. | iwconfig wlan0 |
route | Displays or modifies the IP routing table. | route -n |
arp | Displays or modifies the Address Resolution Protocol (ARP) cache. | arp -a |
ss | Displays socket statistics. | ss -tuln |
hostname | Displays or sets the system’s hostname. | hostname |
mtr | Combines the functionality of ping and traceroute, providing detailed network diagnostic information. | mtr google.com |
Essential Unix Commands
Unix commands are a set of commands that are used to interact with the Unix operating system. Unix is a powerful, multi-user, multi-tasking operating system that was developed in the 1960s by Bell Labs. Unix commands are entered at the command prompt in a terminal window, and they allow users to perform a wide variety of tasks, such as managing files and directories, running processes, managing user accounts, and configuring network settings. Unix is now one of the most commonly used Operating systems used for various purposes such as Personal use, Servers, Smartphones, and many more. It was developed in the 1970’s at AT& T Labs by two famous personalities Dennis M. Ritchie and Ken Thompson.
- You’ll be surprised to know that the most popular programming language C came into existence to write the Unix Operating System.
- Linux is Unix-Like operating system.
- The most important part of the Linux is Linux Kernel which was first released in the early 90s by Linus Torvalds. There are several Linux distros available (most are open-source and free to download and use) such as Ubuntu, Debian, Fedora, Kali, Mint, Gentoo, Arch and much more.
- Now coming to the Basic and most usable commands of Linux/Unix part. (Please note that all the linux/unix commands are run in the terminal of a linux system.Terminal is like command prompt as that of in Windows OS)
- Linux/Unix commands are case-sensitive i.e Hello is different from hello.