Unix Technical Forum

I would like to compare all the names.....

This is a discussion on I would like to compare all the names..... within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi All, I know, perhaps, that the next question is not really slack pertinent and it should be easy ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 11:33 AM
dryphone
 
Posts: n/a
Default I would like to compare all the names.....

Hi All,
I know, perhaps, that the next question is not really slack
pertinent and it should be easy for you (but not for me.....).
Since I would like to compare all the names of the files
beginning from my / and the files listed in MANIFEST.bz2,
whot is the bash command to create a file with all the
dir/files ?
I would like, at least, just only the dir&file (like
/usr/X11R6/lib/X11/doc/README).
Thank's for reply.

Andrea
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 11:33 AM
Mark Hill
 
Posts: n/a
Default Re: I would like to compare all the names.....

On Sat, 15 May 2004 22:20:16 GMT,
dryphone <andsal@nospam.inwind.it> wrote:

> Since I would like to compare all the names of the files
> beginning from my / and the files listed in MANIFEST.bz2,


Do you want to compare ownerships/permissions with those listed on your
system with those in MANIFEST.bz2? If so, I've written a perl script
that can do this:
<http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt>
(You'll have bunzip2 the MANIFEST.bz2 file before use.)

If you want to find 'orphan' files that aren't listed in MANIFEST.bz2,
then perhaps this recent posting will help:
<http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net>

> who is the bash command to create a file with all the
> dir/files ?


As root:
find / > /tmp/all-files.txt
(This will take some time.)

However, you may want to skip some directories like /home. man find has
details on how you can make find do this.

--
Mark Hill <usenet@mark.ukfsn.org>
GPG KeyID: 4A3B58AC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 11:33 AM
Wong Kum Weng
 
Posts: n/a
Default Re: I would like to compare all the names.....

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Hill said the following on 05/16/04 07:05:
| On Sat, 15 May 2004 22:20:16 GMT,
| dryphone <andsal@nospam.inwind.it> wrote:
|
|
|>Since I would like to compare all the names of the files
|>beginning from my / and the files listed in MANIFEST.bz2,
|
|
| Do you want to compare ownerships/permissions with those listed on your
| system with those in MANIFEST.bz2? If so, I've written a perl script
| that can do this:
| <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt>
| (You'll have bunzip2 the MANIFEST.bz2 file before use.)
|
| If you want to find 'orphan' files that aren't listed in MANIFEST.bz2,
| then perhaps this recent posting will help:
|
<http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net>
|
|>who is the bash command to create a file with all the
|>dir/files ?
|
|
| As root:
| find / > /tmp/all-files.txt
| (This will take some time.)
|
| However, you may want to skip some directories like /home. man find has
| details on how you can make find do this.
|

To skip the directories, use with the -type f parameter which will only
search for files, e.g.

find / -type f > /tmp/all-files.txt

- --

Best regards,

Wong Kum Weng, Andrew

+----------------------------------------------------------------------+

~ Keep away from people who try to belittle your ambitions. Small people
~ always do that, but the really great ones make you feel that you too,
~ can become great.
-- Mark Twain
+----------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW
YwzGJTe9BMs6Dmcs57hK0P4=
=g11L
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 11:33 AM
An Metet
 
Posts: n/a
Default Re: I would like to compare all the names.....

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Wong Kum Weng <jinrong@bigfoot.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1


> Mark Hill said the following on 05/16/04 07:05:
> | On Sat, 15 May 2004 22:20:16 GMT,
> | dryphone <andsal@nospam.inwind.it> wrote:
> |
> |
> |>Since I would like to compare all the names of the files
> |>beginning from my / and the files listed in MANIFEST.bz2,
> |
> |
> | Do you want to compare ownerships/permissions with those listed on your
> | system with those in MANIFEST.bz2? If so, I've written a perl script
> | that can do this:
> | <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt>
> | (You'll have bunzip2 the MANIFEST.bz2 file before use.)
> |
> | If you want to find 'orphan' files that aren't listed in MANIFEST.bz2,
> | then perhaps this recent posting will help:
> |
> <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net>
> |
> |>who is the bash command to create a file with all the
> |>dir/files ?
> |
> |
> | As root:
> | find / > /tmp/all-files.txt
> | (This will take some time.)
> |
> | However, you may want to skip some directories like /home. man find has
> | details on how you can make find do this.
> |


> To skip the directories, use with the -type f parameter which will only
> search for files, e.g.


> find / -type f > /tmp/all-files.txt


> - --


> Best regards,


> Wong Kum Weng, Andrew


> +----------------------------------------------------------------------+


> ~ Keep away from people who try to belittle your ambitions. Small people
> ~ always do that, but the really great ones make you feel that you too,
> ~ can become great.
> -- Mark Twain
> +----------------------------------------------------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)


> iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW
> YwzGJTe9BMs6Dmcs57hK0P4=
> =g11L
> -----END PGP SIGNATURE-----




































Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 11:33 AM
dryphone
 
Posts: n/a
Default Re: I would like to compare all the names.....

Wong Kum Weng wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mark Hill said the following on 05/16/04 07:05:
> | On Sat, 15 May 2004 22:20:16 GMT,
> | dryphone <andsal@nospam.inwind.it> wrote:
> |
> |
> |>Since I would like to compare all the names of the files
> |>beginning from my / and the files listed in MANIFEST.bz2,
> |
> |
> | Do you want to compare ownerships/permissions with those listed on your
> | system with those in MANIFEST.bz2? If so, I've written a perl script
> | that can do this:
> | <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt>
> | (You'll have bunzip2 the MANIFEST.bz2 file before use.)
> |
> | If you want to find 'orphan' files that aren't listed in MANIFEST.bz2,
> | then perhaps this recent posting will help:
> |
> <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net>
>
> |
> |>who is the bash command to create a file with all the
> |>dir/files ?
> |
> |
> | As root:
> | find / > /tmp/all-files.txt
> | (This will take some time.)
> |
> | However, you may want to skip some directories like /home. man find has
> | details on how you can make find do this.
> |
>
> To skip the directories, use with the -type f parameter which will only
> search for files, e.g.
>
> find / -type f > /tmp/all-files.txt
>
> - --
>
> Best regards,
>
> Wong Kum Weng, Andrew
>
> +----------------------------------------------------------------------+
>
> ~ Keep away from people who try to belittle your ambitions. Small people
> ~ always do that, but the really great ones make you feel that you too,
> ~ can become great.
> -- Mark Twain
> +----------------------------------------------------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW
> YwzGJTe9BMs6Dmcs57hK0P4=
> =g11L
> -----END PGP SIGNATURE-----

Mark, Wong,
I thank You very much for your help.

Mark,
I don't know if this can help you

in MANIFEST:
drwxr-xr-x root/root 0 2003-12-15 13:23:43 etc/cups/

and in the output:
File Permissions: /etc/cups/ is 0775 but 0755 in MANIFEST
<--------------------
Group Ownership: /etc/cups/ is gid 3 (sys) on system but gid
0 (root) in MANIFEST

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 11:33 AM
Mark Hill
 
Posts: n/a
Default Re: I would like to compare all the names.....

On Sun, 16 May 2004 18:11:38 GMT,
dryphone <andsal@nospam.inwind.it> wrote:

> Mark, Wong,
> I thank You very much for your help.


No problem.

> Mark,
> I don't know if this can help you
>
> in MANIFEST:
> drwxr-xr-x root/root 0 2003-12-15 13:23:43 etc/cups/
>
> and in the output:
> File Permissions: /etc/cups/ is 0775 but 0755 in MANIFEST


Ok, this is saying the permissions of /etc/cups/ are 0775 on the system,
but 0755 in the MANIFEST file. The same difference is found on my
system. I'm not sure what causes it. (cups configuration?)

> Group Ownership: /etc/cups/ is gid 3 (sys) on system but gid
> 0 (root) in MANIFEST


It's interesting that your /etc/cups is owned by the sys group. I found
my /etc/cups to be with sys group ownerships also, but thought it was an
error on my part.

Hope you found the script useful.


--
Mark Hill <usenet@mark.ukfsn.org>
GPG KeyID: 4A3B58AC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com