10-03-2005
i am not sure what the u means, but the n stands for NOrewind, so rewind your tape (mt -f /dev/rmt/2 rewind) and test it again. have a look at the mt man page
gP
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've searched the man page for an option for the ls command to print the number of files in a directory. I'm moving files and folders around and thought a count of files would be a quick way to determine if I was missed one somewhere. Some "unix's" shells do this I think... maybe linux...
... (4 Replies)
Discussion started by: jimmyc
4 Replies
2. UNIX for Dummies Questions & Answers
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was... (2 Replies)
Discussion started by: Straitsfan
2 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I am trying to find some files on a remote machine using the find command.
>ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt
/home/atukuri/abc.txt
The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Discussion started by: atukuri
2 Replies
4. Red Hat
Hi all,
I need some help...
- I have two servers - serverA and serverB.
- ServerB has a tape drive
- I took a backup of some files on serverB on to tape drive on serverA.
- I used the following command:
serverB> tar cvfb - 20 ./<file> | ssh <serverA> 'dd of=/dev/nst0 bs=20b'
- I... (2 Replies)
Discussion started by: ahmerin
2 Replies
5. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
6. Solaris
Ok I am just going to explain what I am running step by step
sftp user@hostname
sftp > ls < when I run the command "ls" I get a long listing the old version,
on the new version I get a short listing
how can I change my new version to give me long listing by default (1 Reply)
Discussion started by: slufoot80
1 Replies
7. Solaris
Hi,
I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios.
1)How to delete the existing files in the tar file.
suppose i have a main tarfile named application.tar and it contains a file called ingres.tar.
what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to list all files present in directory those contains one specific word but exclude other.
If possible suggest unix commands instead of script to do so.
e.g.
List all files name from directory which are having "PROMOTION" word but not "LEN_PROMOTION".
Thanks (4 Replies)
Discussion started by: gauravgautam135
4 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I would like to know couple of ways to list the content available in tar and gzipped file without extracting.
i.e., I would like to display the contents of test.tar.gz without extracting.
Note :: please suggest a command other that tar -ztvf (9 Replies)
Discussion started by: Girish19
9 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours.
I am using the following find command under home/bin directory:
find . -mtime -1 -print
... (3 Replies)
Discussion started by: DJose
3 Replies
LEARN ABOUT DEBIAN
dds2index
dds2index(1) General Commands Manual dds2index(1)
NAME
dds2index - tool to create an indexfile for the use of
SYNOPSIS
dds2index [options]
DESCRIPTION
dds2index creates an index file that is required by the file extraction utility dds2tar(1). It works on tar archives stored on dds tape
devices (DAT). Since the file structure of the tape archives is used to extract the files, the archive must be an uncompressed tar ar-
chive. But compression by the transparent signal processor of the tape device is allowed.
The index created by dds2index is written to stdout by default and should normally be stored on hard disk as indexfile for later use by
dds2tar(1).
The default tape device to read from is /dev/nst0, which may be overridden with the environment variable TAPE, which in turn may be over-
ridden with the -f device option. The device must be a SCSI tape device.
OPTIONS
-f devicefile
device of the tape archive. Must be a character special file.
-t indexfile
write the index to indexfile, not to stdout.
-z,--compress
write the index in (gzip) compressed mode.
--help print some screens of online help with examples through a pager and exit immediatley.
OPTIONS you didn't really need
-b, --block-size
Set the maximal blocksize, dds2index can handle.
--z, --no-compress
Don't filter the archive file through gzip.
-v,--verbose
verbose mode. Print to stderr what is going on.
-h,--hash-mode
Print a hash sign '#' to stderr for each MB read from tape.
-V,--version
Print the version number of dds2index to stderr and exit immediately.
EXAMPLES
Example of getting the index from the default tape /dev/nst0 and storing it in file archive.idx:
dds2index -v -t archive.idx
WARNING
This program can only read records (tar is calling them tape blocks) up to 32 kbytes. A bigger buffer will cause problems with the Linux
device driver.
ENVIRONMENT
The environment variable TAPE overrides the default tape device /dev/nst0.
FILES
/dev/nst0 default tape device file. Must be a character special file.
SEE ALSO
dds2tar(1), mt(1), mt-dds(1), tar(1), gzip(1)
HISTORY
This program was created as a tool for dds2tar(1).
AUTHOR
J"org Weule (weule@cs.uni-duesseldorf.de), Phone +49 211 751409. This software is available at ftp.uni-duesseldorf.de:/pub/unix/apollo
2.4 dds2index(1)