Linux basic maintenance commands

Source: Internet
Author: User
Basic Linux maintenance commands-general Linux technology-Linux technology and application information. For details, refer to the following section. 1. df? K. Check disk space usage

2. du check disk space occupied by the Directory

For example, du/root? H. Check the disk space usage of root and Its subdirectories.

3. ls? L view the Directory and Its subdirectories.

4. uname? A. View linux information.

5. top View processes running in the current system (Real-time update)

PID: the ID of each program or self-running process.

USER: Maybe my friends will know what this column means when they look at this name? By the way. This column shows the program or the user who started the process.

TIME +: indicates how long the program or process has been running.

COMMAND: This is simpler. That is to say, what is the name of this program or process?

% Cpu usage

6. clear screen command

7. echo DISPLAY variable content

8. cat displays the File Content

9. nl displays the file content and adds the row number.

10. more pages are displayed. Only forward

11. less page display. You can use pageup to forward and backward pagedown.

12. touch file creation command

13. View file Types

14. which looked for execution files. (Find the executable file based on the path specified by the path variable)

15. whereis find a specific file.

16. view the total number of data records read by the hard disk by iostat. Average Data Reading and Writing rate.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.