AOA,
what is the difference b/w the following commands:
tar -cvp -f /dev/rmt0 /home
OR
tar -cvpf /dev/rmt0 /home
Difference B/w Tar Command
the first one takes longer to type.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Hi,
I do not think that there is any difference.
Like you can take below example.
df -h -T -k
df -hTk
both gives the same result.
So issuing commands with options written separately should not make much of difference.
Yes i can say that the position of arguments/options can make difference like in below example.
iptables -nL (shows result)
iptables -Ln (does not show results)
I hope this can clear things a bit.
I do not think that there is any difference.
Like you can take below example.
df -h -T -k
df -hTk
both gives the same result.
So issuing commands with options written separately should not make much of difference.
Yes i can say that the position of arguments/options can make difference like in below example.
iptables -nL (shows result)
iptables -Ln (does not show results)
I hope this can clear things a bit.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Agree 100%mudasir wrote:Hi,
I do not think that there is any difference.
Like you can take below example.
df -h -T -k
df -hTk
both gives the same result.
So issuing commands with options written separately should not make much of difference.
Yes i can say that the position of arguments/options can make difference like in below example.
iptables -nL (shows result)
iptables -Ln (does not show results)
I hope this can clear things a bit.
we normally use
Code: Select all
tar -cvpf filename.tar source
Now what some admins (like me) do is (just to make it simple) that: they use options like 'f' that require an input separately like
Code: Select all
tar -cvp -f filename source
-Khizer Naeem Mughal
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.