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

8,978

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.

Share:
8,978

Related videos on Youtube

The Student
Author by

The Student

Updated on September 17, 2022

Comments

  • The Student
    The Student over 1 year

    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?

  • user1686
    user1686 almost 14 years
    %u is the GNOME's file URI (such as file:///etc/motd or sftp://foohost/home/tom/file.txt). %s would get you the "normal" file path.
  • The Student
    The Student almost 14 years
    Its not just in java programs that the %u appears