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,


how can i make an user to nologin without locking the account for the user

7 Answers   CSS, CSS Corp,


Give a Linux shell command to find all files in a directory which contain ip addresses.

1 Answers   Amazon,


How to check all open ports on linux machine and block unsed ports????????

7 Answers   Tech Mahindra,


What utility can you use to automate rotation of logs?

2 Answers  






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,


i want some basic level enterview questions can any one can help me in this

1 Answers   TCL,


How do i check which nfs version I am using ????????

9 Answers   CybAge, IBM,


what is the difference betweenh the NFS and FTP?

4 Answers   IBM,


What is the difference between semaphore and spinlock?

1 Answers  


Without Using $date -dyesterday. How I get the yesterday's date ?

3 Answers   DELL,


what is the difference between semaphore, mutex & spinlock?????

1 Answers   Patni,


Categories