- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with command df -h
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 09:57 AM
тАО04-30-2008 09:57 AM
problem with command df -h
[12:54:59] monitor1:~$ df -h
df: illegal option -- h
usage : df [-F FStype] [-V] [-egiklnvfb] [-t|-P] [-o specific_options]
[special | directory ...]
HPUX 11.11 with this version there is no problem:
[12:56:28] monitor2:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vg00/lvol3 2.0G 218M 1.7G 11% /
/dev/vg00/lvol1 500M 109M 341M 25% /stand
/dev/vgaxis02/wrk 6.0G 5.3G 740M 88% /wrk
/dev/vg00/lvol5 8.0G 6.6G 1.4G 82% /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 10:03 AM
тАО04-30-2008 10:03 AM
Re: problem with command df -h
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 10:12 AM
тАО04-30-2008 10:12 AM
Re: problem with command df -h
The '-h' switch isn't valid on 11.11 either. It appears that someone has created a command (script) that accepts the '-h' switch as an "alias" for 'bdf'. In GNU/Linux, 'df -h' is valid.
What does this show?
# whereis df
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 10:18 AM
тАО04-30-2008 10:18 AM
Re: problem with command df -h
[13:18:37] monitor-pgcaxis:/$ whereis df
df: /usr/bin/df /usr/local/bin/df /usr/old/bin/df /usr/local/man/man1/df.1 /usr/share/man/man1m.Z/df.1m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 11:10 AM
тАО04-30-2008 11:10 AM
Re: problem with command df -h
whereis df
whereis ls
etc... this way u have to use
not whereis ls -a whereis df -k etc...
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 11:13 AM
тАО04-30-2008 11:13 AM
Re: problem with command df -h
dear hector
if u are using
whereis xntpd
then will display
/usr/sbin/xntpd that means i can understand
xntpd is under /usr/sbin directory ok
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 11:15 AM
тАО04-30-2008 11:15 AM
Re: problem with command df -h
/usr/bin/df
/usr/local/bin/df
u command is present in /usr/bin/df and /usr/local/bin/df
thanks
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 11:28 AM
тАО04-30-2008 11:28 AM
Re: problem with command df -h
Examine your PATH to see which is first: '/usr/bin' or '/usr/local/bin'. If it is the 'local' path, then when you do 'df' you are targeting the version therein, which must be a non-standard 'df'.
Otherwise, you may have an alias set in your '.profile' like:
# alias df='/usr/local/bin/df -h'
TO see if this is the case, do:
# whence -v df
If you have an alias this will return something like:
df is an alias for /usr/local/bin/df -h
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 07:20 PM
тАО04-30-2008 07:20 PM
Re: problem with command df -h
what /usr/bin/df /usr/local/bin/df
NOTE: Make sure that /usr/local directories are 755 permission. The default value has been 777 (a very bad thing) for many years) as anyone can create anything in a 777 directory. If someone decided to install GNU utilities, there is a very important step to rename duplicate programs (ie, df should be called gdf). Using other versions of OS commands can cause a lot of problems with scripts and other tools.
The whereis command is not very useful as it does not tell you which version you are running. Always use the "type" command (or whence -v which is aliased to type):
type df
This will change whenever your $PATH variable is modified.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 11:39 PM
тАО04-30-2008 11:39 PM
Re: problem with command df -h
dear
please assign points
sajjad