Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Determining a File's Contents

Debian comes with a utility that can guess at the contents of a file for you. Although it is not 100% accurate, you can use the following command to explore your system:

file /bin/cp
You should see something like this:

/bin/cp: ELF 32-bit LSB executable, Intel 386, version 1

Skipping the technical parts, this is an executable file for Intel machines.

file /etc/init.d/boot
The preceding command gives this response:

/etc/init.d/boot: Bourne shell script text
meaning that this is a text file containing a Bourne shell script.



John Goerzen / Ossama Othman

 
 
  Published under the terms of the GNU General Public License Design by Interspire