Over a million developers have joined DZone.

Canvas.java

·
// description of your code here


open http://en.wikipedia.org/wiki/Inode


man find ls stat

help command help pwd type


type -t pwd
type -a pwd


find "$(pwd -P)" -ls
find "$(pwd -P)" -exec stat -f "%i  --  %N" '{}' \;
find "$(pwd -P)" -exec stat -f "%i  --  %N" '{}' +
find "$(pwd -P)" -exec sh -c 'exec stat -f "%i  --  %N" "$@"' _ '{}' +



# cf. LSCOLORS Generator, http://geoff.greer.fm/lscolors/
# man ls
export CLICOLOR_FORCE=1
#export CLICOLOR=1
#export LSCOLORS=ExGxFxDxCxHxHxCbCeEbEb
#export LSCOLORS=GxFxCxDxBxegedabagacad      
#export LSCOLORS=gxfxcxdxbxegedabagacad     # cyan directories
export LSCOLORS="exfxcxdxbxegedabagacad"    # blue directories


cd /dev
#cd /dev/fd
ls -i
ls -1i
ls -1i "$(pwd -P)"/*
command ls -1i "$(pwd -P)"/*

stat -f "%i  --  %N" "$(pwd -P)"/*
stat -f "%i  --  %N  --  %Y" "$(pwd -P)"/*

stat -f "%i - %r - %v  --  %d  --  %N" /dev/*
stat -f "%i - %Sr - %v  --  %Sd  --  %N" /dev/*


# See also:
# - Why you shouldn't parse the output of ls(1), http://mywiki.wooledge.org/ParsingLs
# - Bash Pitfalls, http://mywiki.wooledge.org/BashPitfalls




Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}