Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

What is the %u command in all my programs command?

Writer Mia Lopez

I saw in my programs properties they have a "%u" in the end of the command, what does this do? Using Ubuntu 10.04.

e.g. My Chrome have the command: /opt/google/chrome/google-chrome %U for what this %u is used here?

2 Answers

When you associate a file with a command, you can call this command with several arguments. %u simply means that the file name should go there. It is useful so you can put arguments after the filename. There are several other flags you can use.

1

%u is used in Java's FileHandler to generate a unique field value.

From

A pattern consists of a string that includes the following special components that will be replaced at runtime:

* "/" the local pathname separator
* "%t" the system temporary directory
* "%h" the value of the "user.home" system property
* "%g" the generation number to distinguish rotated logs
* "%u" a unique number to resolve conflicts
* "%%" translates to a single percent sign "%"

Does that make sense in your particular context?

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy