this.describe(`Füge die Zeile "The cat is on the mat." ans Ende der Datei "saetze" an.`)
this.describe(`Füge die Zeile "The cat is on the mat" ans Ende der Datei "saetze" an.`)
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze")
awaitthis.manualConfirmation()
this.verify("cat saetze").hasOutput(["Colorless green ideas sleep furiously.","The cat is on the mat."])
this.verify("cat saetze").hasOutput(["Colorless green ideas sleep furiously","The cat is on the mat"])
})
this.exercise("Inhalt anzeigen",asyncfunction (){
this.describe(`Zeige den Inhalt der Datei "saetze" auf der Konsole an.`)
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze")
awaitthis.manualConfirmation()
this.verify().hasOutput(["Colorless green ideas sleep furiously.","The cat is on the mat."])
this.verify().hasOutput(["Colorless green ideas sleep furiously","The cat is on the mat"])
this.describe(`Ändere die Dateirechte von "saetze" so, dass der Besitzer die Datei nur lesen kann, die besitzende Gruppe die Datei lesen und schreiben kann und alle anderen gar nichts dürfen.`)
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; chmod 644 saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; chmod 644 saetze")
this.describe(`Lass dir die aktuellen Berechtigungen für die Datei "saetze" anzeigen.`)
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; fi; chmod 460 saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")
awaitthis.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; fi; chmod 460 saetze")