DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Canvas.java

03.17.2010
| 3222 views |
  • submit to reddit
        // 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