Gets your IP address and has a shorter URL. Show Sample Output
Check trough unix sockets if tcp port is open or close Show Sample Output
netstat will list all open ports on the system, unix sockets, tcp sockets and udp sockets. the t flag limits to tcp ports the l flag limits to listening ports and the n flag disables the translation of port to service ( ie :25 displayed instead of :smtp ). then grep for the port you are interested in preceeded by a colon. Show Sample Output
Using netcat (nc) 25 can be replaced with the friendly value (smtp). Check error code for result or use -v option to echo output nc -z localhost smtp && echo open || echo closed nc -zv host protocol Show Sample Output
The sed script ensures that the "random" MAC address is unicast (bit 0 of first byte == 0) and local (bit 1 of first byte == 1)
The files are automatically uncompressed when they reach the destination machine. This is a fast way to backup your server to your local computer while it's running (shutting down services is recommended). A file named "exclude.txt" is needed at /tmp/ containing the following : /dev/* /media/* /mnt/* /proc/* /sys/* /tmp/* /home/*/.local/share/Trash /home/*/.gvfs /home/*/.cache /home/*/.thumbnails /etc/fstab /lib/modules/*/volatile/.mounted /var/run/* /var/lock/* /var/tmp/* /var/cache/apt/archives/* /lost+found/* Show Sample Output
Gives the DNS listed IP for the host you're on... or replace `hostname` with any other host Show Sample Output
It will list your machine's ethernet ports speed Show Sample Output
Fast and simple. Details: http://api.ident.me Show Sample Output
start wifi connection
sudo service network-manager start
stop wifi connection
sudo service network-manager stop
This server can be access by a browser or other remote terminal with ncat. I have to use de test && break to allow ctrl-c to close. Show Sample Output
Same thing as above, just uses fetch and ipchicken.com Show Sample Output
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.
same thing as the other
Request all information about my IP address in xml format
Find your default gateway and print it directly output. http://www.bayner.com/ kerim@bayner.com Show Sample Output
Additionally it may give your geolocation if it's known by hostip.info Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: