May 2020
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

WordPress Quotes

History is a relentless master. It has no present, only the past rushing into the future. To try to hold fast is to be swept aside.
John F. Kennedy
May 2020
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (40)
Ansibile (19)
Apache (135)
Asterisk (2)
cassandra (2)
Centos (211)
Centos RHEL 7 (270)
centos8 (3)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (30)
Eassy (11)
ELKS (1)
EXCHANGE (3)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
health (2)
horoscope (23)
Hyper-V (10)
IIS (15)
IPTABLES (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (7)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (35)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (35)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
SCALEIO (1)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (62)
Ubuntu (1)
Uncategorized (30)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)
ZIMBRA (17)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

0 visitors online now
0 guests, 0 bots, 0 members

Hit Counter provided by dental implants orange county

tar

tar [-cxtzjvfpPN] file and directory ….
parameters:

-c: create a compressed file parameters command (create mean);
-x: parameter instructions to unlock a compressed file!
-T: View file tarfile inside!
Special attention to the parameters issued, c / x / t only the existence of a! Not exist!
Because it is not possible at the same time compression and decompression.
-Z: whether gzip attributes? That is, the need to use gzip compression?
-J: whether bzip2 attributes? That is, the need to use the bzip2 compression?
-V: compressed file! This commonly used, but is not recommended for use in the background during the execution!
-F: use the file name, please pay attention to, and then to immediately after the f file name Oh! Do not plus Parameters!
???For example, the use of “tar-zcvfP tfile sfile” is the wrong wording to be written as
???”tar-zcvPf tfile sfile” fishes Oh!
-P: the original with the original file attributes (based on user attributes are not changed)
-P: You can use an absolute path compression!
-N: than followed by the date (yyyy / mm / dd) also will be packaged into a new file!
– Exclude FILE: In the process of compression, not to FILE packaging!
Example:
Example: all packaged into the file under the / etc directory / tmp / etc.tar
[root@rmohan.com to] # tar -cvf /tmp /etc.tar / etc <== only packaged not compressed!
[Root@rmohan.com ~] # tar-zcvf /tmp /etc.tar.gz / etc <== packed gzip compression
[root@rmohan.com ~] # tar-jcvf /tmp/bzip2 compression
# etc.tar.bz2 / etc <== packed special attention to, in the name of the file, after the parameter f taken their own, we are accustomed to using. tar as identification.
#
plus j parameters by. tar.bz2 as an attached file name ah plus z parameters by. tar.gz or. tgz to represent gzip compressed tar file ~~ # ~
# in the implementation of the above command when will display a warning message:
# tar: Removing leading `/” from member names “that a special set absolute path.

Example: inspection which files the above / tmp / etc.tar.gz file?
The [root@rmohan.com] # tar-ztvf / tmp / etc.tar.gz
# Since we use gzip compression, so you want to access the file within the tar file,
# you have to add z this parameter ! This is very important!

Example: / tmp / etc.tar.gz file decompression beneath / usr / local / src
[root@rmohan.com ~~] # cd / usr / local / src
[root@rmohan.com src ] # tar-zxvf / tmp / etc.tar.gz
# In the case of default, we can unlock the archive anywhere!
# My working directory first conversion to / usr / local / src underneath this example and untied / tmp / etc.tar.gz, and
# then unlock directory in / usr / local / src / etc too! Also, if you enter the / usr / local / src in / etc
# is found, the file attributes in the directory / etc / may be different Oh!

Example: / tmp under, I only want to / tmp / etc / passwd etc.tar.gz within untie.
[root@rmohan.com ~~] # cd the / tmp
[root@www.linuxidc. com tmp] # tar-zxvf / tmp / etc.tar.gz etc / passwd
# I can through tar-ztvf to access the file name in the tarfile if single for so long as a file
# can through issued Noticed! the root within etc.tar.gz catalog / is removed!

Example: backup all the files in the / etc / down, and save their permission!
[Root@rmohan.com to] # tar-zxvpf / tmp / etc.tar.gz / etc
#-p attribute is very important, especially when you want to keep the original file attributes!

EXAMPLE 6: in / home them than 2005/06/01 new file backup the
[root@rmohan.com] # tar-N “2005/06/01”-zcvf home.tar.gz / home

Example 7: I want to back up / home, / etc., but do not / home / dmtsai in
root@rmohan.com ~~] # tar – exclude / home / dmtsai-zcvf myfile.tar.gz / home / * / etc

Example 8: / etc / packaged under the / tmp, without producing documents direct unlock!
[Root@rmohan.com] # cd / tmp
[root@rmohan.com tmp] # tar-cvf – / etc | tar-xvf –
# This action is a bit like cp-r / etc / tmp! ~ still has its uses!
# To note is that the output file into the – input file has become – have a | ~
# represent the standard output, standard input and pipeline command exists friends!

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Blue Captcha Image
Refresh

*

Protected by WP Anti Spam