Tag Archives: bash

Screen Tips

A few snippets to make your prompt look better when using screen for linux. Add the below to your .bashrc so each tab created when you generate a new screen shows user@hostname function rename_screen_tab () { echo -ne “\x1bk$@\x1b\\”; return 0; } if [[ “$TERM” = screen* ]]; then PROMPT_COMMAND=’rename_screen_tab ${USER}@${HOSTNAME%%.*}’ [ “$HOSTNAME” = “hostname-of-mainbox”

Read More

Bad Behavior has blocked 118 access attempts in the last 7 days.