You are on page 1of 4

uptime tells you how long the system has been running.

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.

-V, --version Display version information, and exit.

Displays system uptime information. Output will resemble the following:


08:11:22 up 146 days, 34 min, 3 users, load average: 0.28, 0.45,
0.38

Below is a breakdown of what the above output means.


08:11:22 up 146 days, 34 min 3 users load average: 0.28
Current time The actual up time. How many users logged in The load average

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.

UNIX Basic commands: man


The man command displays the online manual pages.

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.

You might also like