UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Linux Dedicated Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-12-2006, 06:05
Senior System Administrator
 
Join Date: Oct 2006
Posts: 145
Thumbs up get more information about files and executables

Issue:

How can I get more information about files and executables?

Resolution:

The stat command allows users to quickly view standard metadata about files on their system. This is useful in debugging or obtaining file-aging information. The command is also useful for finding out when a file was last modified or accessed.

stat outputs all of the information it can display about a single file, even if the user does not have permissions to read the file. The user must, however, have at least list permission on the directory in which the file lives (denoted by "x" in the output of ls -l).

To use stat, use the file name as an argument. For example, run stat picture.jpg, the output would look like this:


Quote:
$ stat picture.jpg
File: "picture.jpg"
Size: 148176 Blocks: 304 IO Block: 4096 Regular File
Device: 821h/2081d Inode: 231 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ qc) Gid: ( 1000/ qc)
Access: Mon Feb 12 22:55:21 2004
Modify: Mon Feb 12 22:19:57 2004
Change: Mon Feb 12 22:19:57 2004

Another useful tool is file. The file command identifies the type of file whose name is provided as an argument. It can identify well-known types of files and provide information about the data stored in them.

For example, running the command file picture.jpg might return output like:


Quote:
$ file picture.jpg
picture.jpg: JPEG image data,
JFIF standard 1.02, resolution (DPI),
72 x 72

The file command can also return information about an executable:

Quote:
$ file netwatch
netwatch: ELF 32-bit LSB executable,
Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs),
not stripped

You can also run file * to get information for all of the files in your local directory. That output might look like this:


Quote:
$ file *
Mail: directory
column: English text
export: directory
foo.pl: perl script text
inv2: ASCII text
legend1.gif: GIF image data, version 87a, 573 x 391
mail: symbolic link to Mail/
master.zip: Zip archive data, at least v2.0 to extract
postponed: empty
------------------------
Best Regards,
eUKShane :P
http://www.eukhost.com
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:00.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles