![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| option followed by : taking next option if argument missing with getopts | gurukottur | Shell Programming and Scripting | 2 | 03-17-2008 12:46 PM |
| For ls command,-r option is not working on OSF1 | asmita | UNIX for Advanced & Expert Users | 1 | 04-16-2007 10:41 PM |
| Why does the 'ps' command with -u option not working? | ElCaito | SUN Solaris | 4 | 02-26-2006 07:14 PM |
| tar command with compress option... | tomapam | UNIX for Dummies Questions & Answers | 3 | 10-11-2002 12:56 PM |
| -c option in ping command | Deepa | Shell Programming and Scripting | 3 | 05-31-2002 06:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
option for ls command
i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi
|
|
|||||
|
ls -l
will tell you what type of file you have. But unix does not make the kind of distinctions that you are referring to. To unix, a plain file is a plain file. One command that comes close to what you want would be: file * this will open every file, read some of it and try to make a guess as to what the contents are. You might give that a try. But see this thread for some discussion on why the "file" command is not really a great solution. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|