![]() |
![]() |
|
|
|||||||
| Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
#1 |
|
Senior Member
![]() |
hi
habe eine frage zu linux bekommen. wir haben in der fh "system und netzwerktechnik" und ich blick da nicht durch... wäre nett wenn mir da wer helfen könnte. das problem ist nämlich auch, dass ich (noch) kein linux zum selber testen habe. danke im vorraus!!!! lg faxe SCENARIO 1: Every command you type is stored as part of your user "history", which you can access by typing the command "history". Do some detective work and find out where the shell keeps this information. List the full pathname of that file. --------------------------- SCENARIO 2: There is a directory called "Desktop" within your own "home" directory. Starting from your "home" directory, name three ways you could enter the "Desktop" directory (hint: absolute and relative paths). --------------------------- SCENARIO 3: Oh no! Police officers are knocking at your door – someone must have told them about your pirated music and film collection! You need to delete the evidence – and fast. You only have time for one command that deletes all the illegal items (listed in bold type) in your home directory, but not your precious work files: slipknot.mp3 matrix_revolutions.avi bakk-arbeit.pdf the_incredibles.mpeg hoerspiel.wav kruder_dorfmeister.mp3 video_projekt.mpeg hackers.mpeg What command would you type? --------------------------- SCENARIO 4: Taking attendance is one of the most boring tasks any lecturer has to do. Assuming that all users are logged on to the same system, how could we create a file with a list of students that showed up today? Since being on time is important, the list should also be sorted so that the students who logged in are first are listed at the top. |
|
|
|
|
|
#2 |
|
Veteran
![]() Registriert seit: 20.05.2003
Alter: 51
Beiträge: 398
|
1) /home/[username]/.bash_history oder ~/.bash_history
2) cd Desktop, cd /home/[username]/Desktop, über evt. GUI 3) rm -f ~/*mp* ~/*wav ~/*avi ~/*pdf --> hiermit werden aber alle dateien gelöscht die dem ausdruck entsprechen - ohne rückmeldung, ist halt schnell, ansonsten ausdrücke anpassen! 4)#lastlog -t 1 |
|
|
|
|
|
#3 | |
|
Senior Member
![]() |
Zitat:
____________________________________
Nicht alles, was man im Internet findet, ist wahr, wahr ist, man findet alles im Internet ! |
|
|
|
|
|
|
#4 | |
|
Veteran
![]() Registriert seit: 20.05.2003
Alter: 51
Beiträge: 398
|
daher der hiweis:
Zitat:
jorge |
|
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|