Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-11-2004, 04:29 PM   #1
LQ Newbie
Registered: Sep 2004
Location: NM
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Preserving directory tree structure /etc/fstab

How could I create MSDOS filesystem on a flopy disk and copy all files I created or modified on it while preserving the diredtory tree strcuture (/etc/fstab will be etc/fstab on a floppy): sudoers, fstab,..

Old 09-11-2004, 05:07 PM   #2
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi again!

The command
> cp -R
copies files recursively, if that's what you mean. If you only want to move files between two computers you could make a tarball of it:
> tar -zcvf /my/directory directory.tar.gz
and to extract it:
> tar -zxvf directory.tar.gz

The 'z' is for gzip compression, the 'c' and 'x' are create and extract respectively, 'v' is for verbose (may be skipped) and 'f' is for sending output to a file. If you miss the last thing it will just scroll everything quickly over the screen



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl/Linux: Syncronize tree structure on network kenneho Programming 1 11-04-2005 05:42 AM
copying a directory and preserving links? sinc Linux - Newbie 1 07-01-2005 07:01 AM
Configuring the tree structure of a web server with apache2?? AQG Linux - Software 7 06-30-2005 04:47 PM
strange group and user set to "573" in linux-2.4.27 tree structure xround Linux - General 2 10-12-2004 12:09 PM
Recommendation for webpage tree structure Alan Powell Linux - Newbie 1 04-06-2004 03:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration