What is the difference between an argument and an
option/switch?

Answers were Sorted based on User's Feedback



What is the difference between an argument and an option/switch? ..

Answer / viswanath

A linux/unix syntax format is as follows

command option arguement

example: ls -a /boot
here ls command, -a is option,/boot is arguement

option specifies the command how to run
arguement specifies the command on what to run

Is This Answer Correct ?    32 Yes 3 No

What is the difference between an argument and an option/switch? ..

Answer / suitable

commands have the following syntax:
command options arguments
arguments are filenames or other data needed by the command
and

options used with the commands modify the command's behavior.

Is This Answer Correct ?    17 Yes 5 No

What is the difference between an argument and an option/switch? ..

Answer / brijmohan

Whenever we try to excute something in linux and we are
using shell(terminal). there are three fields in that.

command option Argument

Command: it specify what you want to do. It is mendatory
filed.
Option: It is used to change the behaviour of command.
Argument: It may be file name or path.

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More Linux AllOther Interview Questions

How is the difference between ftp and sftp ? and explain how to create ftp server and sftp server with example ?

2 Answers   Bank Of America, IBM,


in linux gui desktop icon was lost how con u back this icons

2 Answers  


How to recover a deleted file in linux ?

5 Answers  


what is the gate of ftp server in redhat linux?

0 Answers  


What is the difference between home directory and working directory?

10 Answers   Accenture, Flexi,






What is the difference between RedHat linux and Fedora and Ubuntu?

3 Answers   CSC,


I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????

6 Answers   IBM,


what is the difference between NIS and DNS...?

5 Answers   IBM,


Tell me the 5 differences between Linux and Unix?

4 Answers  


When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?

4 Answers   IBM,


How to sort a file of size 2N bytes, if I have N bytes of memory?

2 Answers   Yahoo,


someone already asked 'what is diff between unix & Linux' can I ask the same but more nuanced...I have 7 years app support of unix, have never seen Linux BUT need to bluff my way through in an interview i e say that I have use Linux. What are the most important things I need to know?

1 Answers  


Categories