Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
links:console [2017/11/18 21:35] – adlerweb | links:console [2019/02/02 22:27] (aktuell) – adlerweb |
---|
* [[http://wttr.in/|curl wttr.in]] aktueller Wetterbericht in der Console | * [[http://wttr.in/|curl wttr.in]] aktueller Wetterbericht in der Console |
* [[http://wttr.in/moon|curl wttr.in/moon]] Mondphase | * [[http://wttr.in/moon|curl wttr.in/moon]] Mondphase |
* [[netcat -C india.colorado.edu 13]] Uhrzeit | * [[:links:netcat_-c_india.colorado.edu_13|netcat -C india.colorado.edu 13]] Uhrzeit |
* [[netcat -C rainmaker.wunderground.com 23]] US-Wetter-"Service" | * [[:links:netcat_-c_rainmaker.wunderground.com_23|netcat -C rainmaker.wunderground.com 23]] US-Wetter-"Service" |
| |
* [[netcat -C telehack.com 23]] "W0PR?" | * [[:links:netcat_-c_telehack.com_23|netcat -C telehack.com 23]] "W0PR?" |
* [[netcat -C freechess.org 5000]] "Wouldn't you prefer a good game of chess?" | * [[:links:netcat_-c_freechess.org_5000|netcat -C freechess.org 5000]] "Wouldn't you prefer a good game of chess?" |
| |
* [[netcat -C towel.blinkenlights.nl 23 ]] Star Wars IV | * [[:links:netcat_-c_towel.blinkenlights.nl_23|netcat -C towel.blinkenlights.nl 23]] Star Wars IV |
* [[netcat -C towel.blinkenlights.nl 666 ]] Ausreden vom [[http://rrzs42.uni-regensburg.de/edmund/operator/|Bastard Operator from Hell]] | * [[:links:netcat_-c_towel.blinkenlights.nl_666|netcat -C towel.blinkenlights.nl 666]] Ausreden vom [[http://rrzs42.uni-regensburg.de/edmund/operator/|Bastard Operator from Hell]] |
* [[netcat -C mtrek.com 1701]] StarTrek | * [[:links:netcat_-c_mtrek.com_1701|netcat -C mtrek.com 1701]] StarTrek |
* [[telnet 1984.ws]] use ssh big brother is watching you | * [[:links:telnet_1984.ws|telnet 1984.ws]] use ssh big brother is watching you |
* [[nc -C bbs.armageddonbbs.com 23]] " Hermes II BBS " | * [[:links:nc_-c_bbs.armageddonbbs.com_23|nc -C bbs.armageddonbbs.com 23]] " Hermes II BBS " |
| * finger Koblenz@graph.no - Wetterbericht für Koblenz |
| * finger news@graph.no - latest headlines from NRK |
| * finger time@graph.no - server local time |
| * finger date@graph.no - server local date |
| * telnet mapscii.me |
| |
===== Bash-Logins ===== | ===== Bash-Logins ===== |
<code bash> | <code bash> |
#PS1="[033[0;31m]A [033[0;34m\][\W] [033[0;32m\] \$? :[033[0m\]" | #PS1="[033[0;31m]A [033[0;34m\][\W] [033[0;32m\] \$? :[033[0m\]" |
#PS1="[033[0;31m]A [033[0;35m\][[033[0;34m]W[033[0;35m\]][033[0;32m\] \$? [033[0;35m\]:[033[0m\]" | #PS1="[033[0;31m]A [033[0;35m\][[033[0;34m]W[033[0;35m\|]][033[0;32m\] \$? [033[0;35m\]:[033[0m\]" |
export PS1="[[033[38;5;1m]t\[$(tput sgr0)][\033[38;5;11m\]@\[$(tput sgr0)][\033[38;5;4m]W\[$(tput sgr0)][\033[38;5;11m\]:\[$(tput sgr0)][\033[38;5;2m]$?\[$(tput sgr0)][\033[38;5;15m][$(tput sgr0)\]] " | export PS1="[[033[38;5;1m]t\[$(tput sgr0)][\033[38;5;11m\]@\[$(tput sgr0)][\033[38;5;4m]W\[$(tput sgr0)][\033[38;5;11m\]:\[$(tput sgr0)][\033[38;5;2m]$?\[$(tput sgr0)][\033[38;5;15m][$(tput sgr0)\|]] " |
</code> | </code> |
| |
PS1="$ROT\t$LIL@$GRU[\$?]$LIL:$BLU\W$LIL\$ $WHI " | PS1="$ROT\t$LIL@$GRU[\$?]$LIL:$BLU\W$LIL\$ $WHI " |
| |
# user@[[retval]]:directory# | # user@[[retval|]]:directory# |
## tux@[[0]]:dir$ | ## tux@[[0|]]:dir$ |
PS1="$ROT\u$LIL@$GRU[[\$?]]$LIL:$BLU\W$LIL\4$WHI " | PS1="$ROT\u$LIL@$GRU[[\$|]]$LIL:$BLU\W$LIL\4$WHI " |
| |
# user@hostname:fullpath (retval) | # user@hostname:fullpath (retval) |
## ⡀⡁⡂ [13:37:42] 0: history -d | ## ⡀⡁⡂ [13:37:42] 0: history -d |
## tux@computer:dir | ## tux@computer:dir |
PS1=$'\n\u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t[033[0;35m\]] [033[0;33m\]$?[033[0;35m\]:[033[0;37m\] $(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1-55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[0m\] ' | PS1=$'\n\u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t[033[0;35m\|]] [033[0;33m\]$?[033[0;35m\]:[033[0;37m\] $(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1-55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[0m\] ' |
| |
## Rot für root und grün für user: | ## Rot für root und grün für user: |
if [[ $(id -u) -ne 0 ]] ; then | if [[ $(id -u) -ne 0 |]] ; then |
PS1=$'[033[1;32m]n \u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t\b\b\b[033[0;35m\]] [033[1;35m\]$?[033[0;35m\]=[033[0;37m\]$(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1- | PS1=$'[033[1;32m]n \u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t\b\b\b[033[0;35m\|]] [033[1;35m\]$?[033[0;35m\]=[033[0;37m\]$(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1- |
55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[1;33m]ue000[033[0m\]' | 55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[1;33m]ue000[033[0m\]' |
else | else |
PS1=$'[033[1;31m]n \u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t\b\b\b[033[0;35m\]] [033[1;33m\]$?[033[0;35m\]=[033[0;37m\]$(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1-55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[0m\] ' | PS1=$'[033[1;31m]n \u2840\u2841\u2842 [033[0;35m\][[033[0;33m]\t\b\b\b[033[0;35m\|]] [033[1;33m\]$?[033[0;35m\]=[033[0;37m\]$(history|tail -n1| sed -e "s/[0-9 ]*//"|cut -c1-55) \n[033[0;31m]u[033[0;35m\]@[033[0;32m]h[033[0;35m\]:[033[1;34m]W[033[0m\] ' |
fi | fi |
| |
==== Thinkpad Logo ==== | ==== Thinkpad Logo ==== |
| |
gewünschtes Script einfach in der .bashrc aufrufen oder gleich einfügen [[:code:bash:ibmlogoontuxpad.png?media=code:bash:ibmlogoontuxpad.png|{{ :code:bash:ibmlogoontuxpad.png?direct&200}}]] | gewünschtes Script einfach in der .bashrc aufrufen oder gleich einfügen [[:code:bash:ibmlogoontuxpad.png?media=code:bash:ibmlogoontuxpad.png|{{ :code:bash:ibmlogoontuxpad.png?nolink&200}}]] |
| |
<code bash> | <code bash> |