Skip to content

Latest commit

 

History

History
712 lines (446 loc) · 19.8 KB

cal_statistics.md

File metadata and controls

712 lines (446 loc) · 19.8 KB
layout title tags
manual
cal - Statistics of command combinations using semicolon
statistic

Before

The commands before cal: Execute the given command before cal.

Command percentage
w 14%
cal 11%
echo 6%
ss 5%
grep 5%
ip 4%
sleep 3%
nc 3%
tar 3%
ssh 3%
host 3%
awk 2%
ps 2%
ls 1%
name 1%
bc 1%
id 1%
date 1%
comm 1%
rm 1%
cat 1%
su 1%
tail 1%
sort 1%

After

The commands after cal: Execute the given command after cal.

Command Percentage
bc 12%
cal 11%
w 10%
echo 7%
grep 5%
sleep 4%
name 4%
host 4%
ss 3%
nc 2%
ip 2%
sed 2%
ls 2%
date 2%
curl 2%
vi 2%
tar 2%
ssh 2%
awk 2%
mkdir 1%
su 1%
hostname 1%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Execute w before cal

  • Mysql uptime
  • Which PATH variable should I use for this scirpt?
  • Make all the cows tell a fortune
  • ssh tunnel with auto reconnect ability
  • Fastest segmented parallel sync of a remote directory over ssh
  • Create an animated gif from a Youtube video
  • Keep SSH tunnel open (PostgreSQL example)
  • find packages installed from e.g. sid which are newer than those available from e.g. testing when sid is no longer present as a source repo
  • deaggregate ip ranges
  • Print Memory Utilization Percentage For a specific process and it's children
  • Periodically run a command without hangups, and send the output to your e-mail
  • Syntax Highlight your Perl code
  • Use Growl to monitor your local apache error logs for new messages
  • histogram of file size
  • List all broadcast addresses for the routes on your host.
  • Print time and year of file in Solaris (or other Unix ls command that does not have a simple "--full-list")
  • Single use vnc-over-ssh connection
  • IP:PORT to IP:PORT:COUNTRY using geoiplookup
  • Log the current memory statistics frequently to syslog
  • list all opened ports on host
  • sched && syscall app state awareness basics
  • display memory usage of a process

Execute cal before cal

  • Mysql uptime
  • Which PATH variable should I use for this scirpt?
  • Make all the cows tell a fortune
  • print text in colors green, cyan, blue or red (see sample output for usage)
  • Cryptographically secure 32-bit RNG in strict ZSH
  • urlencoding with one pure BASH builtin
  • Listen to BBC Radio from the command line.
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • small CPU benchmark with PI, bc and time.
  • Single use vnc-over-ssh connection
  • Block an IP address
  • Hostname tab-completion for ssh
  • Google text-to-speech in local language or language of choice
  • Google text-to-speech in local language or language of choice
  • Google text-to-speech in local language or language of choice

Execute echo before cal

  • Make all the cows tell a fortune
  • Reset the last modified time for each file in a git repo to its last commit time
  • Reset the last modified time for each file in a git repo to its last commit time
  • Create incremental snapshots of individual folders using find and tar-gzip
  • SSH RPC (transparently run command on remote host)
  • histogram of file size
  • Repeat a command until stopped
  • Create incremental backups of individual folders using find and tar-gzip
  • Create full backups of individual folders using find and tar-gzip
  • Block an IP address

Execute ss before cal

  • Fastest segmented parallel sync of a remote directory over ssh
  • Print Memory Utilization Percentage For a specific process and it's children
  • HourGlass
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • Single use vnc-over-ssh connection
  • Sync MySQL Servers via secure SSH-tunnel
  • display memory usage of a process
  • Stream (almost) any music track in mplayer

Execute grep before cal

  • deaggregate ip ranges
  • Print Memory Utilization Percentage For a specific process and it's children
  • duration of the DNS-query
  • histogram of file size
  • List all broadcast addresses for the routes on your host.
  • sched && syscall app state awareness basics
  • Show Network IP and Subnet
  • display memory usage of a process

Execute ip before cal

  • deaggregate ip ranges
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Superfast portscanner
  • List all broadcast addresses for the routes on your host.
  • IP:PORT to IP:PORT:COUNTRY using geoiplookup
  • Block an IP address
  • Show Network IP and Subnet

Execute sleep before cal

  • View a sopcast stream
  • Periodically run a command without hangups, and send the output to your e-mail
  • Sync MySQL Servers via secure SSH-tunnel
  • Block an IP address
  • View a sopcast stream

Execute nc before cal

  • urlencoding with one pure BASH builtin
  • Netcat & Tar
  • Run netcat to server files of current folder
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Single use vnc-over-ssh connection
  • Hostname tab-completion for ssh

Execute tar before cal

  • Netcat & Tar
  • Run netcat to server files of current folder
  • Create incremental snapshots of individual folders using find and tar-gzip
  • Create incremental backups of individual folders using find and tar-gzip
  • Create full backups of individual folders using find and tar-gzip

Execute ssh before cal

  • Fastest segmented parallel sync of a remote directory over ssh
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • Single use vnc-over-ssh connection
  • Sync MySQL Servers via secure SSH-tunnel

Execute host before cal

  • duration of the DNS-query
  • SSH RPC (transparently run command on remote host)
  • Single use vnc-over-ssh connection
  • Sync MySQL Servers via secure SSH-tunnel
  • Hostname tab-completion for ssh

Execute awk before cal

  • Mysql uptime
  • Print Memory Utilization Percentage For a specific process and it's children
  • IP:PORT to IP:PORT:COUNTRY using geoiplookup
  • display memory usage of a process

Execute ps before cal

  • Print Memory Utilization Percentage For a specific process and it's children
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Show Network IP and Subnet
  • display memory usage of a process

Execute ls before cal

  • Calculate the size in MB of all files of a certain extension
  • Google text-to-speech in local language or language of choice

Execute name before cal

  • Calculate the size in MB of all files of a certain extension
  • Hostname tab-completion for ssh
  • One liner to parse all epubs in a directory and use the calibre ebook-convert utility to convert them to mobi format

Execute bc before cal

  • Listen to BBC Radio from the command line.
  • easy C shell math calculators

Execute id before cal

  • find packages installed from e.g. sid which are newer than those available from e.g. testing when sid is no longer present as a source repo
  • Dump bash command history of an active shell user.

Execute date before cal

  • find packages installed from e.g. sid which are newer than those available from e.g. testing when sid is no longer present as a source repo
  • python one-liner to get the current week number
  • Repeat a command until stopped

Execute comm before cal

  • Print Memory Utilization Percentage For a specific process and it's children
  • display memory usage of a process

Execute rm before cal

  • HourGlass
  • histogram of file size

Execute cat before cal

  • Superfast portscanner
  • convert unixtime to human-readable
  • IP:PORT to IP:PORT:COUNTRY using geoiplookup

Execute su before cal

  • Draw a Sierpinski triangle
  • Block an IP address
  • Stream (almost) any music track in mplayer

Execute tail before cal

  • Use Growl to monitor your local apache error logs for new messages
  • histogram of file size

Execute sort before cal

  • histogram of file size
  • Find and display most recent files using find and perl

Execute uptime before cal

  • Mysql uptime

Execute mysql before cal

  • Mysql uptime

Execute find before cal

  • Calculate the size in MB of all files of a certain extension

Execute exec before cal

  • Calculate the size in MB of all files of a certain extension

Execute which before cal

  • Which PATH variable should I use for this scirpt?

Execute top before cal

  • ssh tunnel with auto reconnect ability

Execute pwd before cal

  • Fastest segmented parallel sync of a remote directory over ssh

Execute ftp before cal

  • Fastest segmented parallel sync of a remote directory over ssh

Execute ln before cal

  • yesterday

Execute nohup before cal

  • Periodically run a command without hangups, and send the output to your e-mail

Execute dig before cal

  • duration of the DNS-query

Execute chmod before cal

  • SSH RPC (transparently run command on remote host)

Execute clear before cal

  • Monitor ElasticSearch cluster health - Useful for keeping an eye on ES when rebalancing takes place

Execute cd before cal

  • Go up multiple levels of directories quickly and easily.

Execute sudo before cal

  • Block an IP address

Execute iptables before cal

  • Block an IP address

Execute dd before cal

  • Show Network IP and Subnet

Execute ifconfig before cal

  • Show Network IP and Subnet

Execute bc after cal

  • Calculate the size in MB of all files of a certain extension
  • floating point bash calculator w/o precision
  • Chronometer in hour format
  • Chronometer
  • small CPU benchmark with PI, bc and time.
  • floating point operations in shell scripts
  • Shows how many percents of all avaliable packages are installed in your gentoo system
  • Print Memory Utilization Percentage For a specific process and it's children
  • duration of the DNS-query
  • Calculate pi with specific scale
  • Run CPU benchmark from command line
  • Command line calculator
  • Bitcoin Brainwallet Base58 Encoder
  • Calculate pi to an arbitrary number of decimal places
  • small CPU benchmark with PI, bc and time.
  • easy C shell math calculators
  • get value after comma from an arithmetic operation
  • display memory usage of a process

Execute cal after cal

  • Mysql uptime
  • Which PATH variable should I use for this scirpt?
  • Make all the cows tell a fortune
  • print text in colors green, cyan, blue or red (see sample output for usage)
  • Cryptographically secure 32-bit RNG in strict ZSH
  • urlencoding with one pure BASH builtin
  • Listen to BBC Radio from the command line.
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • small CPU benchmark with PI, bc and time.
  • Single use vnc-over-ssh connection
  • Block an IP address
  • Hostname tab-completion for ssh
  • Google text-to-speech in local language or language of choice
  • Google text-to-speech in local language or language of choice
  • Google text-to-speech in local language or language of choice

Execute w after cal

  • Query wikipedia over DNS
  • Make all the cows tell a fortune
  • Listen to BBC Radio from the command line.
  • Shows how many percents of all avaliable packages are installed in your gentoo system
  • Generate Random Text based on Length
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Define words and phrases with google.
  • Pull up remote desktop for other than gnome/kde eg fluxbox
  • Define words and phrases with google.
  • Reports file systems with disk usage exceeding 90% on the specified host
  • Sort output by length of line
  • Block an IP address
  • Hostname tab-completion for ssh
  • Run a command if file/directory changes
  • View the latest astronomy picture of the day from NASA.
  • Find the cover image for an album

Execute echo after cal

  • a function to find the fastest free DNS server
  • find packages installed from e.g. sid which are newer than those available from e.g. testing when sid is no longer present as a source repo
  • Get the number of days in a given month and year
  • Run a command if today is the last day of the month
  • Speed up builds and scripts, remove duplicate entries in $PATH. Users scripts are oftern bad: PATH=/apath:$PATH type of thing cause diplicate.
  • Search commandlinefu.com and display with VIMs syntax highlighting!
  • Search commandlinefu and view syntax-highlighted results in vim
  • Reports file systems with disk usage exceeding 90% on the specified host
  • Repeat a command until stopped
  • Block an IP address
  • Show Network IP and Subnet

Execute grep after cal

  • Content search.
  • deaggregate ip ranges
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Define words and phrases with google.
  • small CPU benchmark with PI, bc and time.
  • Define words and phrases with google.
  • Dump top 10 ports tcp/udp from nmap
  • View the latest astronomy picture of the day from NASA.

Execute sleep after cal

  • ssh tunnel with auto reconnect ability
  • Keep SSH tunnel open (PostgreSQL example)
  • Periodically run a command without hangups, and send the output to your e-mail
  • Pull up remote desktop for other than gnome/kde eg fluxbox
  • Monitor ElasticSearch cluster health - Useful for keeping an eye on ES when rebalancing takes place
  • Log the current memory statistics frequently to syslog

Execute name after cal

  • Sort your files
  • Shows how many percents of all avaliable packages are installed in your gentoo system
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • search for a file (with regex), choose one then open it
  • 'readlink' equivalent using shell commands, and following all links

Execute host after cal

  • Fastest segmented parallel sync of a remote directory over ssh
  • hostgrep: set ip and hostname from /etc/hosts (non-DNS)
  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • Single use vnc-over-ssh connection
  • Hostname tab-completion for ssh

Execute ss after cal

  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • Pull up remote desktop for other than gnome/kde eg fluxbox
  • Create higher quality gif from videos
  • Hostname tab-completion for ssh

Execute nc after cal

  • get ^DJI
  • Get your local/private IP
  • Pull up remote desktop for other than gnome/kde eg fluxbox

Execute ip after cal

  • For pictures : copy the last hierarchical keyword (tag) in the caption (title, description) if empty.
  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Block an IP address

Execute sed after cal

  • hostgrep: set ip and hostname from /etc/hosts (non-DNS)
  • WSL: Change the current directory converting a Windows path to a Linux Path
  • Define words and phrases with google.
  • Dump top 10 ports tcp/udp from nmap

Execute ls after cal

  • Display a list of local shell scripts soft-linked to /usr/local/bin
  • find the longest command in your history
  • Google text-to-speech in local language or language of choice

Execute date after cal

  • Run a command if today is the last day of the month
  • Create incremental snapshots of individual folders using find and tar-gzip
  • Create incremental backups of individual folders using find and tar-gzip

Execute curl after cal

  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Define words and phrases with google.
  • Define words and phrases with google.
  • View the latest astronomy picture of the day from NASA.

Execute vi after cal

  • HourGlass
  • Single use vnc-over-ssh connection
  • Dump top 10 ports tcp/udp from nmap

Execute tar after cal

  • Create incremental snapshots of individual folders using find and tar-gzip
  • Create incremental backups of individual folders using find and tar-gzip
  • Create full backups of individual folders using find and tar-gzip

Execute ssh after cal

  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)
  • Hostname tab-completion for ssh

Execute awk after cal

  • Reports file systems with disk usage exceeding 90% on the specified host
  • Hostname tab-completion for ssh
  • Find the cover image for an album

Execute mkdir after cal

  • shell function which allows you to tag files by creating symbolic links directories in a 'tags' folder.
  • shell function which allows you to tag files by creating symbolic links directories in a 'tags' folder.

Execute su after cal

  • Get ipv4 remote address bad score using wafsec.com free reputation service api
  • Find the cover image for an album

Execute hostname after cal

  • SSH RPC (transparently run command on remote host)
  • SSH RPC (transparently run command on remote host)

Execute dig after cal

  • Query wikipedia over DNS

Execute fortune after cal

  • Make all the cows tell a fortune

Execute wc after cal

  • Shows how many percents of all avaliable packages are installed in your gentoo system

Execute ftp after cal

  • Fastest segmented parallel sync of a remote directory over ssh

Execute jp after cal

  • Create an animated gif from a Youtube video

Execute chmod after cal

  • SSH RPC (transparently run command on remote host)

Execute ln after cal

  • SSH RPC (transparently run command on remote host)

Execute passwd after cal

  • Pull up remote desktop for other than gnome/kde eg fluxbox

Execute find after cal

  • search for a file (with regex), choose one then open it

Execute yes after cal

  • Get Yesterday's Date

Execute tail after cal

  • Find and display most recent files using find and perl

Execute df after cal

  • Reports file systems with disk usage exceeding 90% on the specified host

Execute exit after cal

  • Reports file systems with disk usage exceeding 90% on the specified host

Execute iptables after cal

  • Block an IP address

Execute service after cal

  • Dump top 10 ports tcp/udp from nmap

Execute wait after cal

  • Run a command if file/directory changes

Execute kill after cal

  • View a sopcast stream

Execute killall after cal

  • View a sopcast stream

Execute cd after cal

  • 'readlink' equivalent using shell commands, and following all links