Slrs
Slrs

Reputation: 105

how to get the ino from the current folder?

How to get the ino of the current folder you actually are in, with a unix command?
or whether a man, that could be of any use could be provided..

Upvotes: 0

Views: 341

Answers (2)

Cliff
Cliff

Reputation: 1701

you could also use unix stat:

stat -c %i .

This will just give you the inode number.

Upvotes: 1

camh
camh

Reputation: 42478

ls -id .

-i tells ls to print the inode number, -d says to show the directory, not the contents. . is the current directory.

Upvotes: 3

Related Questions