shell command to view file properties?

Asked by johnnynyquist on 2010-11-09

When I right-click on a file in nautilus, I can select 'properties' and bring up a dialog box with info about the file. Is there a shell command which can be used to do the same thing from the command line? I still want the interactive dialog to show up, but I want to invoke it with a shell command instead of a right-click (i.e. I'm not looking for a terminal-mode file properties command). any help?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Last query:
2010-11-09
Last reply:
2011-08-09
Bhavani Shankar (bhavi) said : #1

Do a ls -l and see :)

regards

Bhavani Shankar (bhavi) said : #2

ls -l (small L)

Thanks for the suggestion, I'm familiar with shell commands. I'm looking for the command that brings up the file-properties dialog box in nautilus.

You can also use:

file filename

and it will tell you what sort of file it is. If the file is an audio file:

mencoder -identify filename

Will show more info

There are lots of things like this. Imagemagick can show image properties too:
http://www.imagemagick.org/script/escape.php

All good fun :)

I'm also looking for a solution to open the nautilus properties dialog for a given file via CLI.

It's almost unbelievable that there is no buildin solution to do that.

Can you help with this problem?

Provide an answer of your own, or ask johnnynyquist for more information if necessary.

To post a message you must log in.