ich übe gerade für eine Linux-Zertifizierung mit praktischen Aufgabenstellungen (LFCS).
Dies ist die erste Frage:
Code: Alles auswählen
Create a bash shell script named "certscript.sh" under
/home/student/apps/ .
● Make sure the script can be invoked as
./certscript.sh
● The first line of output from the script should consist of the
name of the user who invoked it.
● The second line of output should contain the IP address
of the default gateway.
theoretisch müsste eine einfache Ausgabe wie "echo '192.168.0.1' korrekt sein, oder ?
Bzgl. der 2. Frage habe ich grad gar keinen Plan.
Ich habe im Internet gefunden, dass per systemd die "rc.local" wohl bei einem entsprechenden Dienst automatisch ausgeführt wird... Aber ich denke, ich bin auf der falschen Spur.
Könnt Ihr Euch denken, worauf die bei der Fragestellung hin aus wollen ?
Code: Alles auswählen
Alter the init boot sequence so that the rc.local or
boot.local script (depending on the distribution that you have
selected) is executed at boot time.
Raphael