This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
medium-unix:capitole:capitol-04 [2016/05/16 20:06] razvan [Procesele unui terminal] |
medium-unix:capitole:capitol-04 [2016/05/17 23:11] (current) mtiganus |
||
---|---|---|---|
Line 28: | Line 28: | ||
* TODO | * TODO | ||
+ | ==== Slide-uri ==== | ||
+ | |||
+ | [[http://koala.cs.pub.ro/training/res/medium-unix/slides/cap-04.pdf|Slide-uri capitol 4]] | ||
+ | |||
+ | <html> | ||
+ | <center> | ||
+ | <iframe src="http://docs.google.com/viewer?url=http://koala.cs.pub.ro/training/res/medium-unix/slides/cap-04.pdf&embedded=true" width="600" height="470" style="border: none;"></iframe> | ||
+ | </center> | ||
+ | </html> | ||
===== Exerciții ===== | ===== Exerciții ===== | ||
Line 95: | Line 104: | ||
<code bash> | <code bash> | ||
lsof -c "ssh" | lsof -c "ssh" | ||
+ | </code> | ||
+ | |||
+ | Vizualizarea descriptorilor de fișier folosind comanda ''lsof'' pentru procesul ''sleep'' din fiecare din comenzile de mai jos<code> | ||
+ | sleep 30 > a.txt | ||
+ | sleep 30 < a.txt | ||
+ | sleep 30 < a.txt > b.txt 2> c.txt | ||
+ | cat | sleep 30 | cat | ||
</code> | </code> | ||