WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   ein paar fragen... hilfe! (http://www.wcm.at/forum/showthread.php?t=201665)

faxe291284 20.10.2006 10:24

ein paar fragen... hilfe!
 
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.

jorge 20.10.2006 11:18

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

Gywer 20.10.2006 17:11

Zitat:

Original geschrieben von jorge

3) rm -f~/*pdf

So nicht, die Arbeit soll ja bestehen bleiben ;-))

jorge 20.10.2006 18:48

daher der hiweis:

Zitat:

-->hiermit werden aber alle dateien gelöscht die dem ausdruck entsprechen - ohne rückmeldung, ist halt schnell, ansonsten ausdrücke anpassen!
die studenten sollen ja selber auch noch ein bisschen nachdenken ;-)

jorge


Alle Zeitangaben in WEZ +2. Es ist jetzt 15:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag