Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: listing every file with it's directory, like tar-tvf mytar would< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 08 2004,11:45 QUOTE

Is there a way to get a listing of every file on the system, similar to the output from tar -t???  Besides the obvious:
tar -cvf mytar *
tar -tvf mytar


I am trying to make a dsl for a program that runs a lot of configuration programs after the *.deb files load with apt-get.  What I would like to do is get a listing of every file in /ramdisk and /etc, including full path names and file sizes, before and after I load the new program.  Then I want to take any line in the second file that isn't in the first (using grep) and add that entry to a file.  Then I will take that file and use tar with the -T command to make my dsl.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 08 2004,15:12 QUOTE

Sure, use the find command.

find /home -print > myfiles.lst

or

cd desired_dir
find . -print > myfiles.lst

There are lots of options to find. It is one of the most useful commands.
Back to top
Profile PM WEB 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Aug. 08 2004,15:36 QUOTE

....ke4nt sneaks in for a bite.... :cool:

roberts, I have wanted to do this very thing many times before
to see how an extension affects the file system...

So , would this work.....

"find / -print > b4.txt"
before installing an app.... then

"find / -print > aft.txt"
After installing the app.... then

"diff b4.txt aft.txt > newlist.txt" ?

Would this work?

73
ke4nt
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 08 2004,18:55 QUOTE

Yes, but I would filter out stuff not really needed in the list list /KNOPPIX and /proc maybe /dev also mnt if you have a bunch of other drives mounted.

Just create pipes to grep -v

find / -print | grep -v proc | grep -v KNOPPIX > mylist.txt




Using *nix one becomes a wordsmith.
Back to top
Profile PM WEB 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Aug. 08 2004,19:19 QUOTE

Lots of good stuff to know around here. I am going to have to start printing things and placing them in a binder!
Back to top
Profile PM MSN YIM 
12 replies since Aug. 08 2004,11:45 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: listing every file with it's directory

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code