ZIP UNZIP
[oracle@localhost ~]$ zip trace.zip trace.log
adding: trace.log (deflated 89%)
[oracle@localhost ~]$ ls -ltr trace*
-rw-r--r--. 1 oracle oinstall 729131 May 6 18:45 trace.log
-rw-r--r--. 1 oracle oinstall 79004 May 22 19:33 trace.zip
[oracle@localhost ~]$ unzip trace.zip
Archive: trace.zip
replace trace.log? [y]es, [n]o, [A]ll, [N]one, [r]ename: trace1.log
error: invalid response [trace1.lo]
replace trace.log? [y]es, [n]o, [A]ll, [N]one, [r]ename: error: invalid response [g]
replace trace.log? [y]es, [n]o, [A]ll, [N]one, [r]ename: r
new name: trace1.log
inflating: trace1.log
[oracle@localhost ~]$ ls -ltr trace*
-rw-r--r--. 1 oracle oinstall 729131 May 6 18:45 trace1.log
-rw-r--r--. 1 oracle oinstall 729131 May 6 18:45 trace.log
-rw-r--r--. 1 oracle oinstall 79004 May 22 19:33 trace.zip
[oracle@localhost ~]$
COMANDO TAR
[oracle@localhost ~]$ tar -cvf COPIA export_2020_04_01.dmp
export_2020_04_01.dmp
[oracle@localhost ~]$ ls -ltr COPIA
-rw-r--r--. 1 oracle oinstall 20480 May 22 19:35 COPIA
[oracle@localhost ~]$ rm export_2020_04_01.dmp
[oracle@localhost ~]$ tar -xvf COPIA
export_2020_04_01.dmp
[oracle@localhost ~]$ ls -ltr export_2020_04_01.dmp
-rw-r--r--. 1 oracle oinstall 16384 Apr 1 20:53 export_2020_04_01.dmp
[oracle@localhost ~]$
No hay comentarios:
Publicar un comentario