Linux: Usporedite sadržaj direktorija
Pod Linuxom možete brzo i lako usporediti sadržaj različitih mapa pomoću jednostavne naredbe konzole. Ovdje možete saznati kako to funkcionira.
Usporedite sadržaj direktorija na Linuxu
Da biste pregledali sadržaj dviju mapa na razlike u sadržaju, naredba konzole "diff" je pravi alat.
- Otvorite tekstualnu konzolu unesite, primjerice, naredbu "Terminal" na Debianovoj pretraživačkoj funkciji. Alternativno, možete prijeći s grafičkog korisničkog sučelja na tekstualno usmjerenu konzolu pritiskom tipki [CTRL] - [ALT] i [F2 - F6].
- Unesite naredbu prema sljedećem obrascu: "diff [parametar] [imenik_1] [direktorij_2]". Na primjer: "diff -rq imenik_1 direktorij_2". Parametar "r" znači da se također pretražuju postojeći poddirektoriji. Parametar "q" određuje da se prikazuju samo datoteke koje nisu sadržane u drugoj mapi.
- Tako da ishod rezultata ostaje jasan čak i kod velikih direktorija, možete ga zapisati izravno u datoteku. Da biste to učinili, u gornju naredbu jednostavno dodajte "> [ime datoteke s rezultatima]". Zatim možete ovu datoteku prikazati u bilo kojem trenutku pomoću naredbi "više" "manje" ili "mačka".
Ovaj praktični savjet pokazuje vam kako očitavati temperaturu procesora pod Linuxom.