[Linux Commands] LOGS, comprimir-descomp #linux #bash #cli
LOGS
la mayoria de los logs estan en /var/log/
para poder ver usamos
less <arcchivo>
y si queremos ver las ultimas lineas y que se vaya actualizando
tail -f <archivo>
TAR
tar -xvf foo.tar
verbosely extract foo.tar
tar -xzf foo.tar.gz
extract gzipped foo.tar.gz
tar -cjf foo.tar.bz2 bar/
create bzipped tar archive of the directory bar called
foo.tar.bz2
tar -xjf foo.tar.bz2 -C bar/
extract bzipped foo.tar.bz2 after changing directory to bar
tar -xzf foo.tar.gz blah.txt
extract the file blah.txt from foo.tar.gz