tailieunhanh - Checking Resource Usage in Linux

There is a server running Linux that has been running efficiently for a long time but the system resources might be reaching their limits. The technician decides decide to run a few of the commands to check the system resources to ensure that the system will continue run properly. | Lab Checking Resource Usage in Linux Estimated Time 20 Minutes Objective In this exercise the student will learn how to check the resources on a Linux system. This lab covers the following commands df du top Equipment The following equipment is required for this exercise A computer running Linux Red Hat or greater Scenario There is a server running Linux that has been running efficiently for a long time but the system resources might be reaching their limits. The technician decides decide to run a few of the commands to check the system resources to ensure that the system will continue run properly. Procedures There are three basic Linux commands used to check and record the resource usage on a Linux system. Step 1 The df Command disk file system 1. Login as the root user. If in the GUI interface open a terminal window. 2. To use the man df command type man df 3. In the space below give a brief description of the df command. 1 - 6 IT Essentials II - Lab Copyright 2002 Cisco Systems Inc. 4. What does the -h switch do 5. To determine the amount of hard drive space that is being used by Linux type df To make the output of the df command easier to read type df -h Record the results in the table below Filesystem Size Used Avail Use Mounted on root@systemAl boot df -h Filesyem Size Used Avail Use Mounted on dev hda2 827M 45 dev hdal 30M 26M 10 boot none 62M 0 6 IM 0 dev shm root@systemAl boot Example of the df command Step 2 The du Command disk usage 1. Remain logged in as the root user Use the man command to learn about the du command. From a terminal window type man du 2. In the space below give a brief description of the du command. 3. What does the -h switch do 4. What does the -s switch do 2 - 6 IT Essentials II - Lab Copyright 2002 Cisco Systems Inc. 5. Go to a student home page and type cd home studentA5 Note studentA5 is used as an example only. Use the student account that the instructor has assigned. 6. From .

TỪ KHÓA LIÊN QUAN