Professional Documents
Culture Documents
Description
uptime gives a one-line display of the following information:
The current time
how long the system has been running
how many users are currently logged on
the system load averages for the past 1, 5, and 15 minutes.
uptime syntax
uptime [options]
Options
-h, --help Display a brief help message, and exit.
du (Disk Usage)
The Linux du (Disk Usage) is a standard Unix/Linux command, used to
check the information of disk usage of files and directories on a machine.
The du command has many parameter options that can be used to get the
results in many formats. The du command also displays the files and directory
sizes in a recursively manner.
Using -h option with du command provides results in Human Readable
Format. Means you can see sizes
in Bytes, Kilobytes, Megabytes, Gigabytes etc.
Basically, df reads the superblock only and trusts it completely. du reads each object and
sums them up.
Also, a running process can keep a deleted file open. This means the space will still be
reserved and seen by df, but since du will no longer see a reference to that file in the
directory tree, it cannot see those reserved blocks.
Syntax
The syntax for the man command is:
man [options] [ [section] subjects]
man is the system's manual viewer; it can be used to display manual pages.
Each argument given to man is normally the name of a program, utility or function.