You want to create a compressed backup of the users' home
directories. What utility should you use?
Answers were Sorted based on User's Feedback
Answer / ravi
The TAR utility is not used for compressing as told by Mr
Sudeep.It's primary purpose is to bring together all the
required files into one location and it has the extension
".tar".In order to compress this archieve we use tools like
gzip,bzip . Any archieve compressed with gzip has the
extension ".tar.qz".
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / kamal kakkar
I will tell u the command
Tar -czf kk.tar.gz /home/username
If we want to extract
the the command is tar -xzf kk.tar.gz
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sudeep
Utility used for compression on Linux is "tar". Along with
it "bzip" can also be used to compress it further.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / donald mthombeni
You can use bzip2, it saves a lot of space in your hard disk
even saves time for download
eg Type "bzip2 -cjf dir1.tar.bz2 /home"
If you want to save the compressed directory to a home
dirctory or you may specify the destination you want to save
the bzip2 directory, it will be identified by .bz2 extention
after saving
You will then need to extract it using bunzip2 to extract it
before using it.
| Is This Answer Correct ? | 1 Yes | 1 No |
User unable to login in server then how can u troubleshooting it? Example: server at Bangalore. in that server two users try to login in server. 1st user able to login. but second user unable to login so how can troubleshoot it ?
What is Hard mount and soft Mount?
rpm package installation error in centos 6.4 [root@localhost packages6.4]# rpm -ivh nfs-utils-1.2.3-36.el6.i686.rpm warning: nfs-utils-1.2.3-36.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: keyutils >= 1.4-4 is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent-1.4.so.2 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1(libgssapi_CITI_2) is needed by nfs-utils-1:1.2.3-36.el6.i686 libnfsidmap.so.0 is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 nfs-utils-lib >= 1.1.0-3 is needed by nfs-utils-1:1.2.3-36.el6.i686 rpcbind is needed by nfs-utils-1:1.2.3-36.el6.i686
How to recover a deleted file in linux ?
what are the default permissions for files and folders..?
How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples
1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?
I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????
i want some basic level enterview questions can any one can help me in this
what is difference between inetd and xinetd
How do i check which nfs version I am using ????????
What is the minimum number of partitions you need to install Linux?