Learning Linux Commands146Table 2-1 (continued) Command (Web hosting ecommerce) NameActionduDisplays disk
Learning Linux Commands146Table 2-1 (continued) Command NameActionduDisplays disk usage information. fdformatFormats a diskette. fdiskPartitions a hard disk. fsckChecks and repairs a file system. mkfsCreates a new file system. mknodCreates a device file. mkswapCreates a swap space for Linux in a file or a disk partition. mountMounts a device (for example, the CD-ROM) on a directory inthe file system. swapoffDeactivates a swap space. swaponActivates a swap space. syncWrites buffered (saved in memory) data to files. ttyDisplays the device name for the current terminal. umountUnmounts a device from the file system. Working with Date and TimecalDisplays a calendar for a specified month or year. dateShows the current date and time or sets a new date and time. Becoming root (superuser) When you want to do anything that requires a high privilege level (for exam- ple, administering your system), you have to become root. Normally you login as a regular user with your normal username. When you need the privi- leges of the superuser, though, use the following command to become root: su - That s sufollowed by the minus sign (or hyphen). The shell then promptsyou for the rootpassword. Type the password and press Enter. After you re done with whatever you wanted to do asroot(and you havethe privilege to do anything as root), type exitto return to your normal self. Instead of becoming rootby using the sucommand, you can also type sudo, followed by the command that you want to run as root. If you are listed asan authorized user in the /etc/sudoersfile, sudoexecutes the command as if you were logged in as root. Type man sudoersto read more about the/etc/sudoersfile.
Note: If you are looking for reliable webhost to maintain and run your java application check Vision java hosting services