`
shuaigg.babysky
  • 浏览: 567891 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

Basic Linux Utilities Part 1

 
阅读更多

查看服务器负载

 

uptime

 

查看内存情况

 

cat /proc/meminfo

free

 

查看cpu信息

 

cat /proc/cpuinfo

top

 

每两秒钟查看一次内存情况

watch free

 

运行top的过程中,按下k 输入id号,按下回车,就能把相应的pid对应的进程干掉。

 

ps -aux 能够一次显示所有的进程信息

 

使用 kill  进程号 能够干掉某个进程

 

干掉gnome-system-monitor这个进程

 

kill `ps aux | sed -ne '3,$p' | sed  -ne '/gnome-system-monitor/p' | grep -v sed | awk {'print $2'}`
 
分享到:
评论

相关推荐

    《Linux宝典 2010版》(Wiley Linux Bible 2010 Edition)(Christopher Negus)文字版

    Chapter 1: Starting with Linux. Chapter 2: Linux Projects, Activities, and Careers. Part II: Running a Linux Desktop. Chapter 3: Getting into the Desktop. Chapter 4: Playing Music and Video. ...

    Linux Bible 2010 Edition: Boot Up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 13 Other Disributions

    Part I: Getting off the Ground with Linux . . . . . . . . . . . . . . . . . . 1 Starting with Linux Chapter 1: ............................................................................................

    sed_awk.chm

    Since pattern matching is such an important part of their use, this book explains UNIX regular expression syntax very thoroughly. Because there is a natural progression in learning from grep to sed ...

    Ubuntu The Complete Reference

    **Chapter 1 - Introduction to Ubuntu Linux** - **Overview of Ubuntu**: This chapter provides an introduction to Ubuntu Linux, covering its history, philosophy, and the reasons for its popularity among...

    EXECUTABLE AND LINKABLE FORMAT

    It was originally developed by UNIX System Laboratories and has since been adopted as the standard binary format in many operating systems, including various Unix systems, Linux, and Solaris....

    python3.6.5参考手册 chm

    Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...

    ICS delphixe10源码版

    1. The origin of this software must not be misrepresented, you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product ...

    NTFS Documentation

    This part provides background information about the documentation itself, including its purpose, scope, and intended audience. It emphasizes that the document is technical and designed for developers ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Table of Contents Header Files The #define Guard Header File Dependencies Inline Functions The -inl.h Files Function Parameter Ordering Names and Order of Includes Scoping Namespaces Nested Classes ...

Global site tag (gtag.js) - Google Analytics