LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2003, 04:44 AM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
file type from command line??


Is it possible to get the file type of a file from the command line? I understand that there is a 'ls -p' that i saw in the man pages, but i cant get it to work right. -thanks

Last edited by wr3ck3d; 03-12-2003 at 09:35 AM.
 
Old 03-12-2003, 05:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
just use "file filenamehere"
 
Old 03-12-2003, 05:12 AM   #3
erjing
LQ Newbie
 
Registered: Dec 2002
Location: Urumqi in China
Distribution: debian redhat
Posts: 15

Rep: Reputation: 0
./binfile
 
Old 03-12-2003, 09:33 AM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
that file command was just what i was looking for...i knew there was something like that. I am trying to break myself of using konqueror and not being able to see what the file type was sucked. There are probably so many little programs on here that i have no clue that i even have. -thanks kewpie

Last edited by wr3ck3d; 03-12-2003 at 09:36 AM.
 
Old 03-12-2003, 01:48 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'ls -F --color' will do wonders, too.

Is 'binfile' a command for a separate executable to process a file list? I don't seem to have that on what passes for my Linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs a file shares ok via file mngr but not command line. Suse 9.1 acummings Linux - Networking 2 10-09-2004 02:23 PM
gnome: launch application associated to a document type from command line cweiske Linux - Software 1 09-28-2004 06:47 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
command line for determining memory type jdier Linux - Newbie 1 06-10-2004 09:00 AM
command line file manager sethgeekx86 Linux - Software 2 03-22-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration