Tidbits

Mehrere Befehle hintereinander:

Command Prompt

Ändern auf $

PS1="$ " ; export PS1

command substitution syntax

Backticks:

`command`
oder neuere Varienate
$(command)
echo "Hello, $(whoami)."

.bashrc .bash_profile

.bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells. When you login (type username and password) via console, either sitting at the machine, or remotely via ssh: .bash_profile is executed to configure your shell before the initial command prompt.

macOS zsh

Ändern des Command Prompts

Standard:

matejkafr@Franzs-iMac shell % 
# PROMPT=%m%#

Die letztend 2 Subdirs + % als prompt (bzw. # wenn super user)

$ PROMPT='%2~ %# '

Prompt in hellem Grau darstellen:

$ PROMPT='%F{243}%2~ %#%f '

Package Manager (Debian, Ubuntu, Kali)

Debian package management

apt (früher apt-get, Advanced Package Tool)

GNU, BSD, POSIX

GNU und BSD sind 2 unterschiedliche Implementierungen der UNIX Tools unterscheiden sich in so manchen Feinheiten. Der kleinste gemeinsame Nenner dieser beiden ist der POSIX Standard.

What is the difference between Unix, Linux, BSD and GNU?

Windows Subsystem for Linux (WSL)

See which version of Windows 10 you have

Ideen / ToDo