Other Help Topics :: listing every file with it's directory



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.

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.

....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

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.

Lots of good stuff to know around here. I am going to have to start printing things and placing them in a binder!
Next Page...
original here.