layout | title | tags |
---|---|---|
manual |
nc - Statistics of command combinations using double pipe |
statistic |
The commands before nc
: If the given command failed, execute nc
.
Command | percentage |
---|
The commands after nc
: If nc
failed, execute the given command.
Command | Percentage |
---|---|
echo | 11% |
w | 11% |
cd | 11% |
sed | 7% |
pwd | 7% |
service | 3% |
vi | 3% |
ssh | 3% |
ss | 3% |
sleep | 3% |
name | 3% |
ln | 3% |
exit | 3% |
rm | 3% |
export | 3% |
grep | 3% |
alias | 3% |
tail | 3% |
history | 3% |
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.
- Get internal and external IP addresses
- Check a server is up. If it isn't mail me.
- Add an "alert" alias for long running commands
- Check a server is up. If it isn't mail me.
- bash/ksh function: given a file, cd to the directory it lives
- bash/ksh function: given a file, cd to the directory it lives
- bash/ksh function: given a file, cd to the directory it lives
- bash/ksh function: given a file, cd to the directory it lives
- Quickly create an alias for changing into the current directory
- Print every Nth line
- Add an "alert" alias for long running commands
- bash/ksh function: given a file, cd to the directory it lives
- bash/ksh function: given a file, cd to the directory it lives
- Check a server is up. If it isn't mail me.
- Check a server is up. If it isn't mail me.
- Keep SSH tunnel open (PostgreSQL example)
- Keep SSH tunnel open (PostgreSQL example)
- Keep SSH tunnel open (PostgreSQL example)
- postgresql : drop all sequences from the public schema
- postgresql : drop all sequences from the public schema
- WSL: Change the current directory converting a Windows path to a Linux Path
- Google's Text-To-Speech in command line
- Turn shell tracing and verbosity (set -xv) on/off with 1 command!
- Quickly create an alias for changing into the current directory
- Quickly create an alias for changing into the current directory
- Add an "alert" alias for long running commands
- Add an "alert" alias for long running commands