-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathComandos_de_la_terminal%2Fgunzip.mw
102 lines (76 loc) · 3.41 KB
/
Comandos_de_la_terminal%2Fgunzip.mw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
__NOTOC__
* [[:#gunzip| gunzip]]
== gunzip ==
<syntaxhighlight lang="bash">
[rrc@Llawyr ~]$ gunzip --help
Usage: /usr/bin/gunzip [OPTION]... [FILE]...
Uncompress FILEs (by default, in-place).
Mandatory arguments to long options are mandatory for short options too.
-c, --stdout write on standard output, keep original files unchanged
-f, --force force overwrite of output file and compress links
-k, --keep keep (don't delete) input files
-l, --list list compressed file contents
-n, --no-name do not save or restore the original name and time stamp
-N, --name save or restore the original name and time stamp
-q, --quiet suppress all warnings
-r, --recursive operate recursively on directories
-S, --suffix=SUF use suffix SUF on compressed files
-t, --test test compressed file integrity
-v, --verbose verbose mode
--help display this help and exit
--version display version information and exit
With no FILE, or when FILE is -, read standard input.
Report bugs to <bug-gzip@gnu.org>.
[rrc@Llawyr ~]$ gunzip --version
gunzip (gzip) 1.6
Copyright (C) 2007, 2011-2013 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Eggert.
[rrc@Llawyr ~]$ su -c "rpm -qf $( which gunzip )"
Password:
gzip-1.6-3.1.mga4
[rrc@Llawyr ~]$ gunzip -l ComandosDeLaTerminal.tar.gz
compressed uncompressed ratio uncompressed_name
133002 1126400 88.2% ComandosDeLaTerminal.tar
[rrc@Llawyr ~]$ gunzip -vl ComandosDeLaTerminal.tar.gz
method crc date time compressed uncompressed ratio uncompressed_name
defla 6d42a01c Sep 26 17:34 133002 1126400 88.2% ComandosDeLaTerminal.tar
[rrc@Llawyr ~]$ gunzip -t ComandosDeLaTerminal.tar.gz
[rrc@Llawyr ~]$ echo $?
0
[rrc@Llawyr ~]$ gunzip -vt ComandosDeLaTerminal.tar.gz
ComandosDeLaTerminal.tar.gz: OK
[rrc@Llawyr ~]$ gunzip ComandosDeLaTerminal.tgz
gzip: ComandosDeLaTerminal.tar already exists; do you wish to overwrite (y or n)? n
not overwritten
[rrc@Llawyr ~]$ gunzip -f ComandosDeLaTerminal.tgz
[rrc@Llawyr ~]$ ls -aldh ComandosDeLaTerminal*
drwx------ 9 rrc rrc 4.0K Sep 26 17:40 ComandosDeLaTerminal/
-rw------- 1 rrc rrc 1.1M Sep 26 17:29 ComandosDeLaTerminal.tar
-rw------- 1 rrc rrc 130K Sep 26 17:34 ComandosDeLaTerminal.tar.gz
[rrc@Llawyr ~]$ gunzip -fk ComandosDeLaTerminal.tar.gz
[rrc@Llawyr ~]$ ls -aldh ComandosDeLaTerminal*
drwx------ 9 rrc rrc 4.0K Sep 26 17:40 ComandosDeLaTerminal/
-rw------- 1 rrc rrc 1.1M Sep 26 17:34 ComandosDeLaTerminal.tar
-rw------- 1 rrc rrc 130K Sep 26 17:34 ComandosDeLaTerminal.tar.gz
[rrc@Llawyr ~]$
[rrc@Llawyr ~]$ gunzip -rf BashClase/
[rrc@Llawyr ~]$ ls -al BashClase/
total 128
drwxr-x--- 2 rrc rrc 4096 Sep 26 18:53 ./
drwxr-x--x 49 rrc rrc 4096 Sep 26 18:52 ../
-rw-r----- 1 rrc rrc 0 May 10 11:22 1.bak
-rw-r----- 1 rrc rrc 0 May 10 11:32 1.Ztv
-rw-r----- 1 rrc rrc 0 May 10 11:22 2.bak
-rw-r----- 1 rrc rrc 0 May 10 11:32 2.Ztv
.
.
.
-rw-r----- 1 rrc rrc 307 May 3 10:57 S7.sh
-rw-r----- 1 rrc rrc 393 May 3 11:17 S8.sh
-rw-r----- 1 rrc rrc 467 Jan 26 2013 S9.sh
-rw-r----- 1 rrc rrc 34 Nov 17 2011 Saludo
</syntaxhighlight>
[[Category:Comandos de la terminal]]