shell command to view file properties?

Asked by johnnynyquist

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:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Do a ls -l and see :)

regards

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

ls -l (small L)

Revision history for this message
johnnynyquist (johnnynyquist) said :
#3

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.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

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 :)

Revision history for this message
Stanley Jobbson (jan-ruhlaender) said :
#5

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.