-
Notifications
You must be signed in to change notification settings - Fork 3
Parts 5 stateinfo
xeor edited this page Sep 1, 2011
·
2 revisions
Tries to give you as much info as possible on a folder/file or general state.
Example, if you do:
-
stateinfo aFile
it will give you- Full path
- Guessed filetype
- Full
stat
output - Open references to this file
- Files inside compressed archive if it is an archive
-
stateinfo aFolder
it will give you- Full path
- Permissions
- Directory count (level 1)
- . Directory count (level 1)
- File count (level 1)
- . File count (level 1)
- Full
stat
output - git or svn status if a repository
-
stateinfo
will give you- Current user
- System process count, and how many you own
- OS version
- Uptime
- Current runlevel
- Current logged in users
- List of IPv4 addresses bound to the machine
- network LISTEN connection count
- ... ESTABLISHED ...
- ... TIME_WAIT ...
- ... CLOSE_WAIT ...
- And info about the current directory (see above)
If you want an alias for this command, you can set load_part_stateinfo_alias
in the config. Example load_part_stateinfo_alias='?'
.