
Terminal - Commands tagged Network - 103 results
This is sample output - yours may be different.
With a lolcat favicon if you access it from your browser
for i in 192.168.1.{1..254} ; do if ping -c1 -w1 $i &>/dev/null; then echo $i alive; fi; done
This is sample output - yours may be different.
This is sample output - yours may be different.
Nmap scan report for thunderbolt.example.com (192.168.1.1)
Host is up (0.0020s latency).
Nmap scan report for vyatta.example.com (192.168.1.2)
Host is up (0.0019s latency).
Nmap scan report for sdadh01.example.com (192.168.1.51)
Host is up (0.0075s latency).
Nmap scan report for cua01.example.com (192.168.1.61)
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (4 hosts up) scanned in 0.02 seconds
Works on any machine with nmap installed. Previous version does not work on machines without "seq".
Also works on subnets of any size.
for ip in `seq 1 255`; do ping -c 1 192.168.1.$ip ; done | grep ttl
This is sample output - yours may be different.
/sbin/ifconfig|grep -B 1 inet |head -1 | awk '{print $5}'
This is sample output - yours may be different.
curl ifconfig.me/all/json
This is sample output - yours may be different.
Request all information about my IP address in json format
This is sample output - yours may be different.
Request all information about my IP address in xml format
This is sample output - yours may be different.
curl ifconfig.me/ip -> IP Adress
curl ifconfig.me/host -> Remote Host
curl ifconfig.me/ua ->User Agent
curl ifconfig.me/port -> Port
thonks to http://ifconfig.me/
trickle -d 60 wget http://very.big/file
This is sample output - yours may be different.
Trickle is a voluntary, cooperative bandwidth shaper. it works entirely in userland and is very easy to use.
The most simple application is to limit the bandwidth usage of programs.
nm-tool 2>/dev/null|sed -n '/Type:[ ]*802.11 WiFi/,/IPv4 Settings/{ /State:[ ]*connected/,/IPv4 Settings/{ s/^[ ]*//;/^\*.*Infra/ { s/^*//;s/:.*//;p }}}'
This is sample output - yours may be different.
Gets only when the state is connected.
ip addr add 192.168.10.1/24 dev eth0
This is sample output - yours may be different.
Allows to add more than one ip address to one network device.
sudo nmap -F -O 192.168.1.1-255 | grep "Running: " > /tmp/os; echo "$(cat /tmp/os | grep Linux | wc -l) Linux device(s)"; echo "$(cat /tmp/os | grep Windows | wc -l) Window(s) devices"
This is sample output - yours may be different.
3 Linux device(s)
2 Window(s) devices
Shows how many Windows and Linux devices are on your network.
May add support for others, but that's all that are on my network right now.
ipcalc $(ifconfig eth0 | grep "inet addr:" | cut -d':' -f2,4 | sed 's/.+Bcast:/\//g') | awk '/Network/ { print $2 } '
This is sample output - yours may be different.
IP=`ifconfig eth0 | grep "inet addr:" | ips |cut -d ":" -f 2 | cut -d " " -f 1`;SUBNET=`ifconfig eth0 | grep "inet addr:" | ips |cut -d ":" -f 3 | cut -d " " -f 1`;RANGE=`ipcalc $IP/$SUBNET | grep "Network:" | cut -d ' ' -f 4`;echo $RANGE
This is sample output - yours may be different.
wget -qO - http://www.sputnick-area.net/ip;echo
This is sample output - yours may be different.
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
This is sample output - yours may be different.
lynx --dump http://ip.boa.nu|sed -e 's/^[[:space:]]*//' -e 's/*[[:space:]]$//'|grep -v ^$
This is sample output - yours may be different.
For those of us that still uses lynx :)
This is sample output - yours may be different.
This is sample output - yours may be different.
eval $(curl -s http://www.commandlinefu.com/commands/matching/external/ZXh0ZXJuYWw=/sort-by-votes/plaintext|sed -n '/^# Get your external IP address$/{n;p;q}')
This is sample output - yours may be different.
This command uses the top voted "Get your external IP" command from commandlinefu.com to get your external IP address.
Use this and you will always be using the communities favourite command.
This is a tongue-in-cheek entry and not recommended for actual usage.
IFS=$'\n';cl=($(curl -s http://www.commandlinefu.com/commands/matching/external/ZXh0ZXJuYWw=/sort-by-votes/plaintext|sed -n '/^# Get your external IP address$/{n;p}'));c=${cl[$(( $RANDOM % ${#cl[@]} ))]};eval $c;echo "Command used: $c"
This is sample output - yours may be different.
$ IFS=$'\n';cl=($(curl -s http://www.commandlinefu.com/commands/matching/external/ZXh0ZXJuYWw=/sort-by-votes/plaintext|sed -n '/^# Get your external IP address$/{n;p}'));c=${cl[$(( $RANDOM % ${#cl[@]} ))]};eval $c;echo "Command used: $c"
86.134.45.64
Command used: curl ip.appspot.com
There's been so many ways submitted to get your external IP address that I decided we all need a command that will just go pick a random one from the list and run it. This gets a list of "Get your external IP" commands from commanlinefu.com and selects a random one to run. It will run the command and print out which command it used.
This is not a serious entry, but it was a learning exercise for me writing it. My personal favourite is "curl icanhazip.com". I really don't think we need any other ways to do this, but if more come you can make use of them with this command ;o).
Here's a more useful command that always gets the top voted "External IP" command, but it's not so much fun:
eval $(curl -s http://www.commandlinefu.com/commands/matching/external/ZXh0ZXJuYWw=/sort-by-votes/plaintext|sed -n '/^# Get your external IP address$/{n;p;q}')
exec 3<>/dev/tcp/whatismyip.com/80; echo -e "GET /automation/n09230945.asp HTTP/1.0\r\nHost: whatismyip.com\r\n" >&3; a=( $(cat <&3) ); echo ${a[${#a[*]}-1]};
This is sample output - yours may be different.
echo -e "GET /automation/n09230945.asp HTTP/1.0\r\nHost: whatismyip.com\r\n" | nc whatismyip.com 80 | tail -n1
This is sample output - yours may be different.
This is sample output - yours may be different.
Yeah I know it's been up here a million times, but this service is a really clean and nice one. Nothing but your IP address on it. Actually I was to write something like this, and noticed this on appspot... ;)
This is sample output - yours may be different.
/etc/network/interfaces (5) [interfaces] - network interface configuration fo...
aecho (1) - send AppleTalk Echo Protocol packets to network hosts
amanda (8) - Advanced Maryland Automatic Network Disk Archiver
amanda-client.conf (5) - Client configuration file for Amanda, the Advanced M...
amanda.conf (5) - Main configuration file for Amanda, the Advanced Maryl...
aseqnet (1) - ALSA sequencer connectors over network
avahi-autoipd (8) - IPv4LL network address configuration daemon
ctstat (8) - unified linux network statistics
dhclient-script (8) - DHCP client network configuration script
dund (1) - BlueZ Bluetooth dial-up networking daemon
fping (8) - send ICMP ECHO_REQUEST packets to network hosts
fping6 (8) - send ICMP ECHO_REQUEST packets to network hosts
ifconfig (8) - configure a network interface
ifdown (8) - take a network interface down
ifup (8) - bring a network interface up
interfaces (5) - network interface configuration for ifup and ifdown
iwconfig (8) - configure a wireless network interface
iwgetid (8) - Report ESSID, NWID or AP/Cell Address of wireless network
iwpriv (8) - configure optionals (private) parameters of a wireless...
jng (5) - JPEG Network Graphics (JNG) sub-format
knetattach (1) - KDE Network Wizard
lft (8) - print the route packets trace to network host
lft.db (8) - print the route packets trace to network host
libmng (3) - Multiple-image Network Graphics (MNG) Reference Librar...
libpng (3) - Portable Network Graphics (PNG) Reference Library 1.2....
lnstat (8) - unified linux network statistics
mii-diag (8) - Network adapter control and monitoring
mng (5) - Multiple-image Network Graphics (MNG) format
mtr (8) - a network diagnostic tool
nameif (8) - name network interfaces based on MAC addresses
nbtscan (1) - program for scanning networks for NetBIOS name informa...
netdevice (7) - Low level access to Linux network devices
netstat (8) - Print network connections, routing tables, interface s...
network-admin (1) - Network Administration Tool
NetworkManager (8) - network management daemon
NetworkManagerDispatcher (8) - daemon that runs commands in response to off/o...
networks (5) - network name information
nm-tool (1) - utility to report NetworkManager state
nm-vpn-properties (1) - Network management framework
nmap (1) - Network exploration tool and security / port scanner
nstat (8) - network statistics tools.
ntpd (8) - Network Time Protocol (NTP) daemon
pabrowse (1) - List PulseAudio sound servers on the network
ping (8) - send ICMP ECHO_REQUEST to network hosts
ping6 (8) - send ICMP ECHO_REQUEST to network hosts
png (5) - Portable Network Graphics (PNG) format
rtacct (8) - network statistics tools.
rtstat (8) - unified linux network statistics
sane-net (5) - SANE network backend
services (5) - Internet network services list
slattach (8) - attach a network interface to a serial line
smbtree (1) - A text based smb network browser
tcpdump (8) - dump traffic on a network
tcptraceroute (8) - print the route packets trace to network host
tcptraceroute.db (8) - print the route packets trace to network host
tracepath (8) - traces path to a network host discovering MTU along th...
tracepath6 (8) - traces path to a network host discovering MTU along th...
traceproto (8) - print the route packets trace to network host
traceproto.db (8) - print the route packets trace to network host
traceroute (8) - print the route packets trace to network host
traceroute-nanog (8) - print the route packets trace to network host
traceroute-nanog.db (8) - print the route packets trace to network host
traceroute.db (8) - print the route packets trace to network host
traceroute6 (8) - traces path to a network host
traceroute6.db (8) - print the route packets trace to network host
traceroute6.iputils (8) - traces path to a network host
tracert (8) - print the route packets trace to network host
tracert.db (8) - print the route packets trace to network host
wget (1) - The non-interactive network downloader.
wireshark (1) - Interactively dump and analyze network traffic
Get all the networking related commands for your distro