01-20-2016
we can't use cpio command, because it limited to 2GB as man page said:
Because of industry standards and interoperability goals, cpio does
not support the archival of files larger than 2 GB or files that have
user/group IDs greater than 60 K. Files with user/group IDs greater
than 60 K are archived and restored under the user/group ID of the
current process.
This User Gave Thanks to Naheed Kamal For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi Buddies ,
How can i Compress and move a folder through UNIX completely to windows 2000 through FTP. (1 Reply)
Discussion started by: scorpiyanz
1 Replies
2. UNIX Desktop Questions & Answers
i want know how to compress and uncompress file using unix,
compress uncompress,zip,unzip,rar,unrar,how its work and more about this.:confused: (1 Reply)
Discussion started by: ismael xavier
1 Replies
3. Windows & DOS: Issues & Discussions
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command:
zip foo -r
I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
Discussion started by: elioncho
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies
6. UNIX for Advanced & Expert Users
I am trying to grab a folder and all the folders and files underneath it and send it from one computer to another. I basically want to compress the whole folder into a tar, tgz, or zip file so that it can be sent as one file. is there a command to compress a folder and all its contents into a tar... (7 Replies)
Discussion started by: kane4355
7 Replies
7. Shell Programming and Scripting
hi guys,
i've read that i need to use tar first before gzip. just wanted to be sure if there's no way of compressing a folder with all its files like winzip in windows?
using tar then gzip in unix, i will need to open 2 zip files in order to get the files unlike winzip.
i'd appreciate any... (2 Replies)
Discussion started by: adshocker
2 Replies
8. Shell Programming and Scripting
Hi all,
Hello everyone, my first post here :). I tried to search the forum but I didn't find exactly what I was looking for...
I need to zip/tar files across entire filesystem which are more 3+ years old but leave folder structure intact. If the script locates tar/zip files they are more... (1 Reply)
Discussion started by: sashruby
1 Replies
9. Shell Programming and Scripting
Hi,
Just want to know if anyone can suggest if there is a "better" way of coding the if-then-else block below:
ZIP=""
if ] ; then
ZIP=`which compress`
echo "ZIP program to use = ${ZIP}"
elif ] ; then
ZIP=`which gzip`
echo "ZIP program to use = ${ZIP}"
else
echo... (2 Replies)
Discussion started by: newbie_01
2 Replies
10. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
LEARN ABOUT REDHAT
getgroups
GETGROUPS(2) Linux Programmer's Manual GETGROUPS(2)
NAME
getgroups, setgroups - get/set list of supplementary group IDs
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int getgroups(int size, gid_t list[]);
#include <grp.h>
int setgroups(size_t size, const gid_t *list);
DESCRIPTION
getgroups
Up to size supplementary group IDs are returned in list. It is unspecified whether the effective group ID of the calling process is
included in the returned list. (Thus, an application should also call getegid(2) and add or remove the resulting value.) If size is
zero, list is not modified, but the total number of supplementary group IDs for the process is returned.
setgroups
Sets the supplementary group IDs for the process. Only the super-user may use this function.
RETURN VALUE
getgroups
On success, the number of supplementary group IDs is returned. On error, -1 is returned, and errno is set appropriately.
setgroups
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EFAULT list has an invalid address.
EPERM For setgroups, the user is not the super-user.
EINVAL For setgroups, size is greater than NGROUPS (32 for Linux 2.0.32). For getgroups, size is less than the number of supplementary
group IDs, but is not zero.
NOTES
A process can have up to at least NGROUPS_MAX supplementary group IDs in addition to the effective group ID. The set of supplementary group
IDs is inherited from the parent process and may be changed using setgroups. The maximum number of supplementary group IDs can be found
using sysconf(3):
long ngroups_max;
ngroups_max = sysconf(_SC_NGROUPS_MAX);
The maximal return value of getgroups cannot be larger than one more than the value obtained this way.
The prototype for setgroups is only available if _BSD_SOURCE is defined (either explicitly, or implicitly, by not defining _POSIX_SOURCE or
compiling with the -ansi flag).
CONFORMING TO
SVr4, SVID (issue 4 only; these calls were not present in SVr3), X/OPEN, 4.3BSD. The getgroups function is in POSIX.1. Since setgroups
requires privilege, it is not covered by POSIX.1.
SEE ALSO
initgroups(3), getgid(2), setgid(2)
Linux 2.0.32 1997-12-10 GETGROUPS(2)