Anmelden

Archiv verlassen und diese Seite im Standarddesign anzeigen : tar.gz



(sic)maggot
26.11.01, 17:20
Hi
wenn man dateien im tar.gz format entpacken soll steht in den how-to´s immer tar xvfz archiv.tar.gz .

Jetzt wollt ich mal wissen wofür dieses xvfz ist.bei manchen how-to´s steht auch xpvfz oder xfvz und es geht trotzdem

also was bedeutet das???

und was bringt dieser chmod und wie wendet man ihn an?

anda_skoa
26.11.01, 17:34
Schon mal
#> tar --help
oder
#> man tar
ersucht?

x steht für extract
z für "benutze gzip"
f steht für file (default wäre stdin)
v steht für verbose, also "gesprächig"

Wie schon gesagt, commandline Optionen stehen immer in der Hilfe des jeweiligen Programms, bzw. in seiner man page.

Ciao,
_

micha
26.11.01, 17:40
Hallole,



micha:~# tar --help
.......
-x, --extract, --get extract files from an archive
.......
-v, --verbose verbosely list files processed
.......
-z, --gzip, --ungzip filter the archive through gzip
.......
-f, --file=ARCHIVE use archive file or device ARCHIVE
.......
-p, --same-permissions extract all protection information
......
micha:~#


Gruß micha

(sic)maggot
26.11.01, 18:03
cool danke
aber was ist mit dem chmod(oder chkmod?!?)???

Jorge
26.11.01, 18:14
Hallo,

mit chmod ändert man die Dateiberechtigungen.

Beispiel:

ths-web:/tmp # touch test.datei
ths-web:/tmp # ll test.datei
-rw-r--r-- 1 root root 0 Nov 26 19:10 test.datei
ths-web:/tmp # chmod 777 test.datei
ths-web:/tmp # ll test.datei
-rwxrwxrwx 1 root root 0 Nov 26 19:10 test.datei
ths-web:/tmp # chmod 400 test.datei
ths-web:/tmp # ll test.datei
-r-------- 1 root root 0 Nov 26 19:10 test.datei
ths-web:/tmp # chmod 644 test.datei
ths-web:/tmp # ll test.datei
-rw-r--r-- 1 root root 0 Nov 26 19:10 test.datei
ths-web:/tmp #