Knowledgebase / FAQ - ip-connect GmbH
Knowledgeroot - Version:
Menü verstecken Menü ausklappen Menü neuladen Menü einklappen
Menü schliessen
  1..bash_profile    (Zuletzt geändert von rsch an 23.08.2012 01:03:42)
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc

# User specific environment and startup programs
export PATH=$PATH:/sbin:/usr/local/scripts

echo -e "\nWillkommen \"$USER\".\nEs ist: "`date`
echo -e "\n\tHostname:\t$HOSTNAME\n\tBNS-Version:\t`/usr/local/scripts/getVersion`\n\tHomedir:\t$HOME\n"
echo "Type: `cat /etc/issue | grep -v "Kernel"`"
echo -en "\n"

df -hT | grep -v tmpfs | grep -v "/boot"

echo -en "\n"

alias ..="cd .."
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias l="ls -la --color=auto"
alias ssh="ssh -X"

export DISPLAY=localhost:1.0
export PS1=$'\\033[1;33m\\u\\033[0m@\\033[1;34m\\h\\033[0m:\w> '

verschieben [Oben]

  2.1-line-WebServer    (Zuletzt geändert von rsch an 19.08.2013 13:11:02)
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | nc -l 8080; done
verschieben [Oben]

  3.getPublicIP    (Zuletzt geändert von rsch an 04.05.2020 11:23:52)

Gives out the public IP-Address for the local machine, that is recognized by the related master.

dig +short
#dig TXT +short
#dig TXT +short | awk -F'"' '{ print $2}'

verschieben [Oben]