I have a (probably) very simple tar question on a Solaris box that I'm a little embarrassed to ask. After repeatedly checking man tar and searching for solutions online (I'm not sure of the correct "keywords" to look for)
The question is:
If I were to use the command:
It would include /testing123/ within the tar file.
How would I either change the above command to 'not' include, or strip the directory information within this tar file?
I'm with FreeBSD 4.6.2, and i would like to know how to install this ports :
ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/net/kmerlin
There's no .tgz so i can't do the pkg_add command. Can you please help me???
Thank You. :)
Erythro73 (6 Replies)
Unix is great at giving you power were you need it, but what a pain in the rump when you just want to do such a simple thing like file management. I'm going back to Windows, crashing is frustrating, needing to spend 30 min just to zip a file up is crazy. (3 Replies)
How do i save a script in unix. do i just type something like
#!/bin/sh
# This is a comment!
echo Hello World #This is also a comment
Then just go to save as and save it or what? just kinda confused me as i was reading different things and playing around (6 Replies)
i have installed vmware on a text base linux node
now i have to vmware-configure.pl to do the initial configuration
now 1st step it askes for agreeing for a " License Agreement"
for that i have to say "q" and "yes" to Accept it
i want to run a script with does these 3 steps... (6 Replies)
Hello!!
I need some help about a question... It was asked in exams 3 years ago in Greece and nobody is certain abou the answer.
Others say that the right answer is b and others say c.
I found this forum and i saw that you know a lot of things about UNIX so i hope that some of you will help me.... (1 Reply)
I'm reading through this guide, BigAdmin Feature Article: Using Solaris JumpStart With the Solaris 10 OS for x86/x64 Platforms, and I was wondering if there was more to the bash scripts than just the example given (see above link) like for begin1 and begin2 and finish1 and finish2. I don't know... (3 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
LEARN ABOUT HPUX
tar
tar(4) Kernel Interfaces Manual tar(4)NAME
tar - format of tar tape archive
DESCRIPTION
The header structure produced by (see tar(1)) is as follows (the array size defined by the constants is shown on the right):
All characters are represented in ASCII. There is no padding used in the header block; all fields are contiguous.
The fields magic, uname, and gname are null-terminated character strings. The fields name, linkname, and prefix are null-terminated char-
acter strings except when all characters in the array contain non-null characters, including the last character. The version field is two
bytes containing the characters (zero-zero). The typeflag contains a single character. All other fields are leading-zero-filled octal
numbers in ASCII. Each numeric field is terminated by one or more space or null characters.
The name and the prefix fields produce the pathname of the file. The hierarchical relationship of the file is retained by specifying the
pathname as a path prefix, with a slash character and filename as the suffix. If the prefix contains non-null characters, prefix, a slash
character, and name are concatenated without modification or addition of new characters to produce a new pathname. In this manner, path-
names of at most 256 characters can be supported. If a pathname does not fit in the space provided, the format-creating utility notifies
the user of the error, and no attempt is made to store any part of the file, header, or data on the medium.
SEE ALSO tar(1)STANDARDS CONFORMANCE tar(4)