![]() So it looks like 'identify' is a good choice here (since it supports all popular formats and reads just the header). The question did not indicate how the information might be used, but since the output is text, in a predictable format, it is readily scripted. It does depend on the file type and file size slightly, but I was getting 20-60 KB read by 'identify' for 5-335 MB images (I also tested against 'convert' which showed all bytes being read). ![]() Talking of resizing the window, the resize program shows the number of lines and columns. The last line, with -geometry gives the size in characters (as well as the position of the upper-left corner - in pixels). When you transfer a directory via SCP, Rsync. Also see: man ls -S sort by file size If you want to sort in reverse order, just add -r switch. The apparent size of a file is how much data is actually in the file. Simply use something like: ls -lS /path/to/folder/ Capital S. To find the apparent size of a directory, use the -apparent-size option. We will then show you how to use the -exec option to act on the files or directories based on their size, permissions, etc. In this example, the lines with Width and Height are the size in pixels. By default, the du command shows the disk space used by the directory or file. Also, if you are running on the desktop (and not, for instance, remotely connected), the terminal emulator provides a variable $WINDOWID which you can use as a parameter to xwininfo, e.g., xwininfo -id $WINDOWIDĪnd get a listing list this: xwininfo: Window id: 0xc00025 "uxterm"Ĭorners: +65+167 -589+167 -589-256 +65-256 There are other options in the type to find the file. ![]() In a desktop environment, you are using X, and the xwininfo utility can show the size of the window in pixels. Use the following command to find the -type parameter is as follows: find -type typedescriptor query. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |