09-17-2010
Quote:
Originally Posted by
Corona688
cd /testing123 ; tar -cf /path/to/test.tar *.gz
Although that does work, Is there a way of doing this without changing the directory beforehand? (apologies for not asking that part of it in the original question) Thanks!
cg
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: Erythro73
6 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: yankee428
3 Replies
3. Shell Programming and Scripting
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)
Discussion started by: Corrail
6 Replies
4. UNIX for Dummies Questions & Answers
Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
5. Shell Programming and Scripting
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)
Discussion started by: pbsrinivas
6 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: evoula_vou
1 Replies
7. Solaris
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)
Discussion started by: Bradj47
3 Replies
8. Red Hat
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 DEBIAN
git-tar-tree
GIT-TAR-TREE(1) Git Manual GIT-TAR-TREE(1)
NAME
git-tar-tree - Create a tar archive of the files in the named tree object
SYNOPSIS
git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]
DESCRIPTION
THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base> argument to --prefix=base/).
Creates a tar archive containing the tree structure for the named tree. When <base> is specified it is added as a leading path to the files
in the generated tar archive.
git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used
as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used
instead. Additionally the commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.
OPTIONS
<tree-ish>
The tree or commit to produce tar archive for. If it is the object name of a commit object.
<base>
Leading path to the files in the resulting tar archive.
--remote=<repo>
Instead of making a tar archive from local repository, retrieve a tar archive from a remote repository.
CONFIGURATION
tar.umask
This variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write
bit. The special value "user" indicates that the archiving user's umask will be used instead. See umask(2) for details.
EXAMPLES
git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
Create a tar archive that contains the contents of the latest commit on the current branch, and extracts it in /var/tmp/junk directory.
git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release.
git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release, but without a global extended pax header.
git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar
Get a tarball v1.4.0 from example.com.
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
Put everything in the current head's Documentation/ directory into git-1.4.0-docs.tar, with the prefix git-docs/.
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-TAR-TREE(1)