LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2001, 12:08 AM   #1
rootlinux
Member
 
Registered: Dec 2001
Location: California
Distribution: Red Hat 7.2, Slackware 8.0
Posts: 53

Rep: Reputation: 15
Arrow Question on Basic Commands


Just a real quick question here.

I was playing around tonight with tar files and I came across something that I wasnt too sure about.

Basically, if I wanted to tar or untar a file, you use the tar cvf <filename>.

My question is, i see some reading where it tells you to just put the command tar cvf <filename> and other places have it tar -cvf <filename>.

My question is, whats the difference between using a - and not using one?

Thanks everyone!
 
Old 12-15-2001, 12:23 AM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
hmmm... good question. actually, i think it depends on the program. most programs will require a "-" in order to work correctly... others, like tar, might try to intelligently parse thier arguments. remember, every command is really a program of one type or another, written by someone who may or may not have taken the - into account.

just to be safe, always use a "-".
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic shell commands pppaaarrrkkk Linux - Newbie 7 02-05-2007 07:31 AM
Linux Basic Commands rahimzai Red Hat 5 09-30-2005 05:22 AM
Basic linux commands OtisLinux Linux - Software 6 03-03-2004 06:30 PM
Basic commands in Mandrake/Linux Rave_T Linux - Newbie 3 08-03-2003 03:40 AM
Basic commands? MrPolite Linux - General 5 11-08-2002 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration