| Flag | Usage |
|---|---|
| -c nbRequests | stop after sending nbRequests ARP requests |
| -D | enable Duplicate address detection mode |
| -I interfaceName | send requests via the interfaceName network interface |
| -w timeoutSeconds | stop after timeoutSeconds seconds regardless of the number of packets sent/received |
TIL that "aptitude " pops a ncurses interface (.. in which you can play Minesweeper ).
It's your attitude, not your aptitude, that determines your altitude.
| Flag | Usage |
|---|---|
|
why package why-not package |
Explains the reason that package should or cannot be installed on the system :
|
1st character : state of package. 2nd character : action (if any, otherwise "space").
alias ll='ls -lh'no space allowed around the = sign
gzcat() {
gunzip < "$@" | less;
}
#!/usr/bin/env bash alias hello='echo hello word' hello shopt -s expand_aliases alias hello='echo hello word' hello
/path/to/test.sh: line 4: hello: command not found
hello word
hello hello: command not found
hello world
bash: lo: command not found
| Flag | Usage |
|---|---|
| -c jobId | View the contents of the job jobId |
| -f file | specify file containing commands to execute |
| -l | list queued jobs. Similar to atq |
| -r jobId | remove job with ID jobId from the queue. Or atrm jobId |
| -t dateTime | specify execution time with format : [[CC]YY]MMDDhhmm[.ss] |
at dateTime prompt# command1 prompt# command2 prompt# CTRL-d
at dateTime prompt# /bin/bash -c "myCommand" prompt# CTRL-d
[ -f "someFile" ] && rm "someFile"the whole command must be passed to Bash, meaning quotes are required :
/bin/bash -c "[ -f 'someFile' ] && rm 'someFile'"and if you're doing this in a script, even more quotes are required (because the
" enclosing the whole Bash command must be sent to at) :
echo /bin/bash -c ""\[ -f '$someFile' ] && rm '$someFile'\"" | at $(date --date "now +$delayMinutes minutes" +%H%M)