
- Wie installiere ich das Bash-Modul, das in der ZIP-Datei enthalten ist, die auf dieser Seite angezeigt wird?
http://ss64.com/pass/command-line.html
- Wie installiere ich ein Modul (nicht notwendigerweise im Startprofil)?
- Wie installiere ich Module von Github?
Vielen Dank
Antwort1
Extrahieren Sie in diesem Fall zunächst das Modul aus der Zip-Datei in Ihr Home-Verzeichnis:
# pipe from-zipfile a-contained-file to a-new-file
unzip -p strongpw.zip strongpw_bash_module/strongpw.bash > ~/strongpw.bash
Fügen Sie dann Ihrer ~/.bashrc
Datei die folgende Zeile hinzu:
. ~/strongpw.bash
Der Inhalt von ~/.bashrc
wird beim Start jeder neuen interaktiven Bash-Shell ausgeführt. Dies . FILENAME
bewirkt ~/.bashrc
, dass diese Datei auch in die neue Shell aufgenommen wird, sodass dort Funktionen definiert werden können, in diesem Fall strongpw
.