Operating System - Linux
1827514 Members
2809 Online
109965 Solutions
New Discussion

Linux tar and inittab questions

 
Ryan Goh
Frequent Advisor

Linux tar and inittab questions

Hi ALL,

I'm a Linux newbie, anyone please help me on the question below:

Question 1 : Which switches should I used with the tar command to find out
the different between two tar files?

Question 2 : Do changes to the inittab file require a reboot in order to
take effect?

Thank you.
GOH

6 REPLIES 6
HGN
Honored Contributor

Re: Linux tar and inittab questions

Hi

Below is the link which has a lot of details about tar
http://www.delorie.com/gnu/docs/tar/tar_toc.html
Regarding inittab file if you make a change on it you can do a init q ,this will re-read the inittab file, no reboot is required.

Rgds

Gopi
Slawomir Gora
Honored Contributor

Re: Linux tar and inittab questions

Hi,

Question 1
I think there is no such option.
You can only find differences between archive and file system with option
tar -df your.tar directory

Question 2:
you have to re-examine /etc/inittab.
It is done by init q command.
Steven E. Protter
Exalted Contributor

Re: Linux tar and inittab questions

1. Use the diff command to compare contents of two files. They can based on what you find be fed into the tar command.

2. Boot order is affected by the simple ascii sort of the soft links in /etc/rc.#

first rc.0 then rc.1 etc. Change the order of those thinks alphabettically and you change the boot order on your machine.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ross Minkov
Esteemed Contributor

Re: Linux tar and inittab questions

1. -t in tar is for table of contents

# tar -tvf file1.tar > file1_tar_content
# tar -tvf file2.tar > file2_tar_content
# diff file1_tar_content file2_tar_content

2. There lots of different ways to tell init to re-examine the /etc/inittab file. For example:

telinit q
telinit Q
init q
init Q
kill -HUP 1
kill -1 1
...

HTH,
Ross
Ryan Goh
Frequent Advisor

Re: Linux tar and inittab questions

Thanks all.
Ryan Goh
Frequent Advisor

Re: Linux tar and inittab questions

Thank all for help