Skip to content

Latest commit

 

History

History
420 lines (247 loc) · 9.57 KB

ln_statistics.md

File metadata and controls

420 lines (247 loc) · 9.57 KB
layout title tags
manual
ln - Statistics of command combinations using pipe
statistic

Before

The commands before ln: Pipe the result of the given command to ln.

Command percentage
find 9%
w 9%
echo 8%
cat 6%
ls 6%
tail 4%
du 4%
sleep 3%
id 3%
name 3%
ln 3%
ip 3%
ps 3%
ssh 1%
ss 1%
grep 1%
cd 1%
iptables 1%
curl 1%
su 1%
host 1%
ftp 1%
wget 1%
service 1%
vi 1%
rm 1%
free 1%
date 1%
sed 1%
ifconfig 1%
xargs 1%

After

The commands after ln: Pipe the result of ln to the given command.

Command Percentage
w 18%
grep 15%
sed 12%
head 9%
awk 7%
echo 6%
tail 4%
ss 3%
xargs 3%
ln 3%
sort 3%
ls 1%
man 1%
comm 1%
vi 1%
name 1%
sudo 1%
kill 1%
su 1%
host 1%
cp 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.

Pipe find to ln

  • Link a deep tree of files all into on directory
  • Find all e-mails older than 7 days in the queue and delete them
  • search for a pattern (regex) in all text files (ignoring binary files) in a directory tree
  • Find dead symbolic links
  • find the biggest files recursively, no matter how many
  • Recursively scan directories for mp3s and pass them to mplayer

Pipe w to ln

  • NSA codename generator
  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Search and play youtube videos directly to terminal (no X needed)
  • Generate random password, human readable with no special characters.
  • Google Translate
  • generate random password

Pipe echo to ln

  • Send Reminders from your Linux Server to Growl on a Mac
  • Testing ftp server status
  • Get number of users on a minecraft server
  • create random string from /dev/urandom (or another length)
  • Scans for open ports using telnet

Pipe cat to ln

  • Generrate Cryptographically Secure RANDOM PASSWORD
  • computes the most frequent used words of a text file
  • Testing ftp server status
  • create random string from /dev/urandom (or another length)

Pipe ls to ln

  • computes the most frequent used words of a text file
  • make soft links from a downloaded bin folder
  • Generate random password, human readable with no special characters.
  • list all file extensions in a directory

Pipe tail to ln

  • tail -f a log file over ssh into growl
  • edit, view or execute last modified file with a single key-press
  • Use Growl to monitor your local apache error logs for new messages

Pipe du to ln

  • Replace duplicate files by hardlinks
  • Replace duplicate files by hardlinks
  • Replace duplicate files by hardlinks

Pipe sleep to ln

  • Test remote SSH server status using telnet (no login required)
  • Get number of users on a minecraft server

Pipe id to ln

  • See your current RAM frequency
  • Search and play youtube videos directly to terminal (no X needed)

Pipe name to ln

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Recursively scan directories for mp3s and pass them to mplayer

Pipe ln to ln

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Google Translate

Pipe ip to ln

  • List only executables installed by a debian package
  • Update all outdated Python packages through pip.

Pipe ps to ln

  • Search and play youtube videos directly to terminal (no X needed)
  • Testing ftp server status

Pipe ssh to ln

  • tail -f a log file over ssh into growl

Pipe ss to ln

  • tail -f a log file over ssh into growl

Pipe grep to ln

  • Disaster Snapshot (procmail)

Pipe cd to ln

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name

Pipe iptables to ln

  • List only executables installed by a debian package

Pipe curl to ln

  • Search and play youtube videos directly to terminal (no X needed)

Pipe su to ln

  • Search and play youtube videos directly to terminal (no X needed)

Pipe host to ln

  • Testing ftp server status

Pipe ftp to ln

  • Testing ftp server status

Pipe wget to ln

  • Google Translate

Pipe service to ln

  • Google Translate

Pipe vi to ln

  • Google Translate

Pipe rm to ln

  • Update all outdated Python packages through pip.

Pipe free to ln

  • Update all outdated Python packages through pip.

Pipe date to ln

  • Update all outdated Python packages through pip.

Pipe sed to ln

  • full text(CJK) search mails and link the result to $MAILDIR/bingo/cur/

Pipe ifconfig to ln

  • Read just the IP address of a device

Pipe xargs to ln

  • Replace duplicate files by hardlinks

Pipe ln to w

  • Find the uid and gid of your apache process
  • Test remote SSH server status using telnet (no login required)
  • Generate a random password 30 characters long
  • NSA codename generator
  • computes the most frequent used words of a text file
  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Search and play youtube videos directly to terminal (no X needed)
  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)
  • livehttpheaders (firefox addon) replacement
  • Get number of users on a minecraft server
  • Generate a random password 30 characters long
  • Get listening ports on a localhost

Pipe ln to grep

  • Test remote SSH server status using telnet (no login required)
  • The program listening on port 8080 through IPv6
  • Check if TCP port 25 is open
  • Capture all plaintext passwords
  • search for a pattern (regex) in all text files (ignoring binary files) in a directory tree
  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)
  • Testing ftp server status
  • Scans for open ports using telnet
  • Show what PID is listening on port 80 on Linux
  • To Find CVE fix from the rpm log

Pipe ln to sed

  • Print a row of characters across the terminal
  • Get a BOFH excuse
  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Extract all urls from last firefox sessionstore used in a portable way.
  • livehttpheaders (firefox addon) replacement
  • Google Translate
  • Update all outdated Python packages through pip.

Pipe ln to head

  • Generrate Cryptographically Secure RANDOM PASSWORD
  • create random string from /dev/urandom (or another length)
  • create random string from /dev/urandom (or another length)
  • Generate a random password 30 characters long
  • Symlink most recent file to 'latest' using full paths.
  • Generate a random alphanumeric string (works on Mac)

Pipe ln to awk

  • Find the uid and gid of your apache process
  • Search and play youtube videos directly to terminal (no X needed)
  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)
  • Get number of users on a minecraft server
  • Get listening ports on a localhost

Pipe ln to echo

  • Generrate Cryptographically Secure RANDOM PASSWORD
  • NSA codename generator
  • Testing ftp server status
  • Scans for open ports using telnet

Pipe ln to tail

  • sort lines by length
  • Epoch from time protocol port 37
  • Get a BOFH excuse

Pipe ln to ss

  • Capture all plaintext passwords
  • Recursively scan directories for mp3s and pass them to mplayer

Pipe ln to xargs

  • search for a pattern (regex) in all text files (ignoring binary files) in a directory tree
  • Extract binary from .text section (shellcode)

Pipe ln to ln

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name
  • Google Translate

Pipe ln to sort

  • make pretty the netstat output for listening services
  • most used commands in history (comprehensive)

Pipe ln to ls

  • Test remote SSH server status using telnet (no login required)

Pipe ln to man

  • Test remote SSH server status using telnet (no login required)

Pipe ln to comm

  • Test remote SSH server status using telnet (no login required)

Pipe ln to vi

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name

Pipe ln to name

  • Rips CDs (Playstation, etc.) and names the files the same as the volume name

Pipe ln to sudo

  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)

Pipe ln to kill

  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)

Pipe ln to su

  • Kill all processes that listen to ports begin with 50 (50, 50x, 50xxx,...)

Pipe ln to host

  • Testing ftp server status

Pipe ln to cp

  • Scans for open ports using telnet