I'm trying to use the
od command in a directory in OSX but it doesn't proceed and it results in the error message:
od: .: Is a directory
Could you please help me with it or any equivalent command?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
As @G-Man commented, you [ can't read directories as file When did directories stop being readable as files?;
Instead, to find i-node numbers, you could use
➜ stat -x . File: "." Size: 1632 FileType: Directory Mode: (0755/drwxr-xr-x) Uid: ( 501/ barisa) Gid: ( 20/ staff) Device: 1,2 Inode: 5431597 Links: 48 Access: Sun Dec 14 15:17:23 2014 Modify: Sun Dec 14 14:16:25 2014 Change: Sun Dec 14 14:16:25 2014