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"
If your alias expects parameter(s), consider creating a Bash function instead :
gzcat() { gunzip < "$@" | less; }
=
sign.
# COLORIZED LS export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' # GREP / EGREP alias grep='grep --color=auto' alias egrep='egrep --color=auto' # LESS alias less='less -Ri' # LS alias ll='ls -lh' alias lsd='ls -ld */' alias lt="ls -l --time-style='+%d-%m-%Y %H:%M:%S'" alias lt="ls --time-style='full-iso' -l" # SSH alias ssh='ssh -i ~/.ssh/id_rsa' alias scp='scp -i ~/.ssh/id_rsa'
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)