allows command to use switches
Usage:
watch ls -l
Basic but usable replacement for the "watch" command for those systems which don't have it (e.g. the Solaris I'm trapped on).
Type Ctrl+V to escape the following Ctrl+L which clears the screen. It will be displayed as "^L".
Convenient to leave running in a yakuake or plasmacon terminal.
For older kernels
watch -n 5 cat /proc/acpi/battery/BAT0/state
Show Sample Output
You can upload via ftp the script.sh in unix text format, and then upload a file called run.txt to execute once the script. Such script can be multiline. If the script fails a failed.txt will be generated that you can see via ftp.
Shows files and processes of the command php
Shows which applications are making connections, and the addresses they're connecting to. Refreshes every 2 seconds (watch's default). Test on OSX, should work anywhere watch and lsof work. Show Sample Output
Shows a constantly updating display of disk IO activity. Two sections are in the output. The first is the IO activity since the machine was booted, the second section is the IO activity in the last second Show Sample Output
becuase im lazy and cant be bothered looking at the tv guide to choose a channel , any improvments or comments appreciated
Doesn't list connections to other ports than port 80. Not f.e. 8080 or 8091. Excludes programs listening for connections, like your favorite webserver.
Must have rabbitmqctl: https://www.rabbitmq.com/man/rabbitmqctl.1.man.html See connections as the change, by user, sorted. Show Sample Output
This bash one-liner will let you watch the tail end of a log file in real time.
When bootstrapping or repairing a node this is a simple way to keep tabs on what a node is actively doing. Show Sample Output
This will highlight (with a box over it) any changes since the last refresh.
forgot to use a pv or rsync and want to know how much has been copied. Show Sample Output
Uses the suggestions by jld on #12421 as well as the new iproute2 tools instead of old net-tools.
display dd status on OSX (coreutils) every 10 seconds Show Sample Output
Replace grep | sed with single awk script.
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: