ODOC, $, # and —

In the ODOC, the commands starting with $ prompt does not need any special permission to run it. But the commands starting with # prompt needs the super user permission to run it.

In all the examples, I used the “–” symbol to separate the command and it’s short note. The “–” denote the end of the option list. So even if user of the ODOC by mistake include this “–” symbol, the command will run properly. You can also use “–” at the end of command option list, if you don’t want some your inputs are wrongly interpreted as command option. I will show the use of “–” with an example:

$ ls file $ ls file -l $ ls -- file -l $ ls -l -- file

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: