This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COLOR tty | |
OPTIONS -F -T 0 | |
# Below, there should be one TERM entry for each termtype that is colorizable | |
TERM linux | |
TERM console | |
TERM con132x25 | |
TERM con132x30 | |
TERM con132x43 | |
TERM con132x60 | |
TERM con80x25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# turn off the annoying startup message | |
startup_message off | |
# change meta key to ctrl+w (ctrl+a goes to start of line by default) | |
escape "^Ww" | |
# scrollback for default windows | |
defscrollback 50000 | |
# warn of activity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% telnet 127.0.0.1 25 | |
HELO mydomain.com | |
MAIL FROM:<foo@mydomain.com> | |
RCPT TO:<bar@example.com> | |
DATA | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jar tf filename.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comment in the above and uncomment this below for a color prompt | |
PS1='${debian_chroot:+($debian_chroot)}[$?/\t][\e[36m\w\e[m] ' | |
# Alias definitions. | |
# You may want to put all your additions into a separate file like | |
# ~/.bash_aliases, instead of adding them here directly. | |
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include .bash_login if it exists | |
if [ -f ~/.bash_login ]; then | |
. ~/.bash_login | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uptime | awk {'print $3" "$4" "$5'} | sed 's/:/ hours, /' | sed -r 's/,$/ minutes/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# display login messages | |
echo -e "\nuptime: $(uptime | cut -b 14-27)" | |
echo -e "\nlast:" | |
last -3 | head -n $(expr $(last -3 | wc -l) - 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Attribute codes: | |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | |
# Text color codes: | |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | |
# Background color codes: | |
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white | |
# Shell text formatted bold red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -Armo pid=#,ucomm=,%cpu=%,rsz=* | head -10 |
OlderNewer