This shows you the differences between two versions of the page.
uso:laboratoare:new:02-process:need-to-know [2019/10/05 20:55] cristiana.stan |
uso:laboratoare:new:02-process:need-to-know [2019/10/07 11:10] (current) liza_elena.babu [Comunicare interprocese, folosind |] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Need to Know ===== | ===== Need to Know ===== | ||
- | |||
- | ===== Nice to Know ===== | ||
Pentru această secțiune trebuie să vă asigurați că sunteți în directorul potrivit. Rulați comanda | Pentru această secțiune trebuie să vă asigurați că sunteți în directorul potrivit. Rulați comanda | ||
Line 116: | Line 114: | ||
Care este logica din spatele comenzii? În loc să ne afișeze nouă pe ecran rezultatul comenzii **ps aux**, acesta a fost transmis către următoarea comandă **grep**. Comanda din urmă a căutat cuvântul ''sleep'' în rezultatul comenzi ''ps aux''. | Care este logica din spatele comenzii? În loc să ne afișeze nouă pe ecran rezultatul comenzii **ps aux**, acesta a fost transmis către următoarea comandă **grep**. Comanda din urmă a căutat cuvântul ''sleep'' în rezultatul comenzi ''ps aux''. | ||
- | Un alt exemplu: | ||
- | |||
- | <code bash> | ||
- | student@uso:~/uso$ ls -lR | grep "hello" | ||
- | -rw-r--r-- 1 student student 72 sep 10 12:25 hello.c | ||
- | -rw-r--r-- 1 student student 72 sep 10 12:25 hello.c | ||
- | -rw-r--r-- 1 student student 154 sep 10 12:25 hello.c | ||
- | -rw-r--r-- 1 student student 95 sep 10 12:25 simple_hello.c | ||
- | -rw-r--r-- 1 student student 580 sep 10 12:25 hello.s | ||
- | -rw-r--r-- 1 student student 1192 sep 10 12:25 hello.o | ||
- | -rw-r--r-- 1 student student 15 sep 10 12:25 hello.h | ||
- | -rw-r--r-- 1 student student 64 sep 10 12:25 hello_0.c | ||
- | -rw-r--r-- 1 student student 82 sep 10 12:25 hello_1.c | ||
- | -rw-r--r-- 1 student student 111 sep 10 12:25 hello_2.c | ||
- | -rw-r--r-- 1 student student 83 sep 10 12:25 hello_3.c | ||
- | -rw-r--r-- 1 student student 142 sep 10 12:25 hello_4.c | ||
- | -rw-r--r-- 1 student student 145 sep 10 12:25 hello_5.c | ||
- | -rw-r--r-- 1 student student 150 sep 10 12:25 hello_6.c | ||
- | -rw-r--r-- 1 student student 162 sep 10 12:25 hello_7.c | ||
- | -rw-r--r-- 1 student student 16 sep 10 12:25 hello.h | ||
- | lrwxrwxrwx 1 student student 7 sep 10 12:25 hello_from_the_other_side.h -> hello.h | ||
- | </code> | ||
- | |||
- | Am afișat recursiv (-R) directorul **uso** și am transmis rezultatul către utilitarul **grep** pentru a căuta fișierele ce conțin cuvântul ''hello''. | ||
**Exerciții** | **Exerciții** |