What is returned when using 'find . -ls'


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What is returned when using 'find . -ls'
# 1  
Old 04-04-2011
What is returned when using 'find . -ls'

Hi all,

I tried to find the reply using google, yet did not find a conclusive answer.

When I use 'find . -ls', I get something like:
Code:
3423297        8 -rw-r--r--    1 useradmin staff         135  4 apr 09:46 ./.~lock.dir-file-list.csv#

I know that
  • 3423297 is the inode
  • -rw-r--r-- are the permissions
  • useradmin is owner
  • 4 apr 09:46 modification date
  • ./.~lock.dir-file-list.csv# is file(path)

But what is:
  • 8 (I guess file type (in this case dir) but is this the same for all unix systems
  • 135?
I'm particulary interested in the 8 I guess, cause if a dir is consistently given a number 8, files a '1', I could use this to sort the files in my excel file.
# 2  
Old 04-04-2011
Code:
man find

o inode number
o size in kilobytes (1024 bytes)
o protection mode
o number of hard links
o user
o group
o size in bytes
o modification time.

---------- Post updated at 11:55 AM ---------- Previous update was at 11:53 AM ----------

may depends on your plateform, check your man pages
# 3  
Old 04-04-2011
Ok, thanks.

Did not find that in the man find though. Not sure where to look for to be honest.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed - using value returned by W+

Hi, In a file old.txt containing (for example) a series.. #limerick There was a young lady from Nantucket.. \images\Blank.jpg :end #joke A horse walked into a bar... \images\Blank.jpg end I would like to achieve new.txt containing #limerick There was a young lady from Nantucket..... (5 Replies)
Discussion started by: Nigel_R
5 Replies

2. UNIX for Dummies Questions & Answers

sort file returned by FIND command in ascending

Hi there I have to enhance my current file looping to ensure the oldest file being processed first. current command: for FILENAME in `find $MY_DIRECTORY -follow -type f` I manage to get command for order by date modified descending, just can't get the ascending order. Please help for... (3 Replies)
Discussion started by: elsie512
3 Replies

3. HP-UX

about the value returned from oracle

Hi all can i use unix variable holds the data returned by oracle in a shell script? x=sqlplus -s u/p@h <<! >>fg.log whenever sqlerr exit 1 select count(*) from schema.mat_view; exit ! echo $x Will the $x return the value of count(*)? thanks megh (1 Reply)
Discussion started by: megh
1 Replies

4. Shell Programming and Scripting

How to find out command has returned any value?

Hi Pals I am using this command in my script to find out warnings using fgrep where $log is the log file name, $date is the date to be searching and warnings.list contains list of matching words. grep "WARNING" $log|grep "$date"|fgrep -vf warnings.list I want to perform another action... (1 Reply)
Discussion started by: johnl
1 Replies

5. HP-UX

returned from remote command

Hi, there, I want to excute the remote command shell via "remsh", are there any simple or best way to get the result of remote shell from local ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies

6. HP-UX

ridst returned

The rdist command script is called in the program to synchronize the updated files, I wonder whether the rdist returned can be fetched or not from the program? (0 Replies)
Discussion started by: Frank2004
0 Replies

7. UNIX for Dummies Questions & Answers

Problem with files returned using Find command

When I enter the command below grep appears to be returning a file it shouldn't. find . -name "*.*" -exec grep "testing" {} /dev/null \; :tps3Mailfile ./SSI.ksh: # create TECHOUT dummy for test for testing purposes ./ftprimi1.ksh:# before running job in prod... change FTP to go to rimi... (3 Replies)
Discussion started by: dfb500
3 Replies

8. Shell Programming and Scripting

-1 returned from fetchall_arrayraf

Hi all, below is my PERL script $ids = $dbh->prepare ("select * from tableA"); $ids->execute(); $names = $ids->fetchall_arrayref(); print " Total valid ids is $#names \n"; Table only has 1 column, approx 400 rows the value of $#names is -1. Would anyone point out what could have caused the... (1 Reply)
Discussion started by: new2ss
1 Replies

9. Shell Programming and Scripting

command find returned bash: /usr/bin/find: Argument list too long

Hello, I create a file touch 1201093003 fichcomp and inside a repertory (which hava a lot of files) I want to list all files created before this file : find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies

10. UNIX for Advanced & Expert Users

w/who command returned zero users

Hi ppl, We are using Sun OS and recently, encountered this strange problem. When issuing the "w" or "who" command, the system produce no listing. See screen shot below. ----------------------- $ w 2:56pm up 2 day(s), 21:10, 0 users, load average: 1.03, 0.75, 0.69 User tty ... (6 Replies)
Discussion started by: sinyem
6 Replies
Login or Register to Ask a Question