Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

Basic commands

Frequent Contributor

Basic commands to change hostname. can give ftp permisson to users. to check the hdd space in human readable
Bill Hassell
Honored Contributor

Re: Basic commands

It would help if you gave the model of the computer and the version of HP-UX you are running.

> to change hostname.

Run the command: set_parms hostname
Is that all you need to change? Do you use a DNS server? Do you need to change the IP address too?

> can give ftp permisson to users.

If ftpd is not commented out in /etc/inetd.conf, then it will work immediately for users with logins on your system. But are you asking how to setup anonymous ftp? Or perhaps how to create users on the system that cannot login but just use ftp?

> to check the hdd space in human readable

Use the command: bdf
Now there is a bigger question: bdf shows the currently mounted filesystems. It does not show disk space that has not yet been allocated. For LVM disks, the command: vgdisplay will show unused space. The space is shown in Free PE where PE=physical extents and the PE size is given in Mbytes. (this assumes that you are not using VxVM as your volume manager.

Bill Hassell, sysadmin
Rita C Workman
Honored Contributor

Re: Basic commands

Take a class
Open a book

The best answer is the one you learn for yourself..