[15936] 2020-10-07_Bashtop:一款功能强大的LinuxOSXFreeBSD资源监控工具

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-18
2020-10-07_Bashtop:一款功能强大的LinuxOSXFreeBSD资源监控工具 B a s h t o p L i n u x O S X F r e e B S D A l p h a _ h 4 c k   F r e e B u f   2 0 2 0 - 1 0 - 0 7 B a s h t o p L i n u x / O S X / F r e e B S D U I C P U U I 使 使 B a s h t o p S I G K I L L S I G T E R M S I G I N T B a s h t o p L i n u x m a c O S F r e e B S D B a s h t o p P y t h o n h t t p s : / / g i t h u b . c o m / a r i s t o c r a t o s / b p y t o p 使 使   U I   U P D O W N     S I G T E R M S I G K I L L S I G I N T     U I   使 使 B a s h t o p B a s h   4 . 4 G i t G N U   C o r e u t i l s G N U   s e d a w k g r e p p s L m C P U B a s h t o p L i n u x B a s h t o p g i t 使 B a s h t o p U b u n t u B a s h t o p U b u n t u B a s h t o p 使 s n a p 使 A P T 使 s n a p $   g i t   c l o n e   h t t p s : / / g i t h u b . c o m / a r i s t o c r a t o s / b a s h t o p . g i t $   c d   b a s h t o p $   s u d o   m a k e   i n s t a l l $   s u d o   m a k e   u n i n s t a l l
使 A P T B a s h t o p   P P A B a s h t o p D e b i a n B a s h t o p B a s h t o p D e b i a n F e d o r a B a s h t o p B a s h t o p F e d o r a C e n t O S   /   R H E L   8 B a s h t o p C e n t O S   8   /   R H E L   8 E P E L A r c h   L i n u x B a s h t o p B a s h t o p A U R b a s h t o p - g i t B a s h t o p L i n u x 使 使 B a s h t o p B a s h t o p : $ H O M E / . c o n f i g / b a s h t o p b a s h t o p . c f g $   s n a p   i n s t a l l   b a s h t o p $   s u d o   a d d - a p t - r e p o s i t o r y   p p a : b a s h t o p - m o n i t o r / b a s h t o p $   s u d o   a p t   u p d a t e $   s u d o   a p t   i n s t a l l   b a s h t o p $   s u d o   a p t   i n s t a l l   b a s h t o p $   g i t   c l o n e   h t t p s : / / g i t h u b . c o m / a r i s t o c r a t o s / b a s h t o p . g i t $   c d   b a s h t o p / $   c d   D E B $   s u d o   . / b u i l d $   s u d o   d n f   i n s t a l l   b a s h t o p $   s u d o   y u m   i n s t a l l   e p e l - r e l e a s e $   s u d o   d n f   i n s t a l l   b a s h t o p $   s u d o   p a c m a n   - S   b a s h t o p b a s h t o p # ?   C o n f i g   f i l e   f o r   b a s h t o p   v .   0 . 9 . 2 1 # *   C o l o r   t h e m e ,   l o o k s   f o r   a   . t h e m e   f i l e   i n   " $ H O M E / . c o n f i g / b a s h t o p / t h e m e s "   a n d   " $ H O M E / . c o n f i g / b a s h t o p / u s e r _ t h e m e s " # *   S h o u l d   b e   p r e f i x e d   w i t h   e i t h e r   " t h e m e s / "   o r   " u s e r _ t h e m e s / "   d e p e n d i n g   o n   l o c a t i o n ,   " D e f a u l t "   f o r   b u i l t i n   d e f a u l t   t h e m e c o l o r _ t h e m e = " D e f a u l t " # *   U p d a t e   t i m e   i n   m i l l i s e c o n d s ,   i n c r e a s e s   a u t o m a t i c a l l y   i f   s e t   b e l o w   i n t e r n a l   l o o p s   p r o c e s s i n g   t i m e ,   r e c o m m e n d e d   2 0 0 0   m s   o r   a b o v e   f o r   b e t t e r   s a m p l e   t i m e s   f o r   g r a p h s u p d a t e _ m s = " 2 5 0 0 " # *   P r o c e s s e s   s o r t i n g ,   " p i d "   " p r o g r a m "   " a r g u m e n t s "   " t h r e a d s "   " u s e r "   " m e m o r y "   " c p u   l a z y "   " c p u   r e s p o n s i v e " # *   " c p u   l a z y "   u p d a t e s   s o r t i n g   o v e r   t i m e ,   " c p u   r e s p o n s i v e "   u p d a t e s   s o r t i n g   d i r e c t l y p r o c _ s o r t i n g = " c p u   l a z y " # *   R e v e r s e   s o r t i n g   o r d e r ,   " t r u e "   o r   " f a l s e " p r o c _ r e v e r s e d = " f a l s e "
U I # *   S h o w   p r o c e s s e s   a s   a   t r e e p r o c _ t r e e = " f a l s e " # *   C h e c k   c p u   t e m p e r a t u r e ,   o n l y   w o r k s   i f   " s e n s o r s " ,   " v c g e n c m d "   o r   " o s x - c p u - t e m p "   c o m m a n d s   i s   a v a i l a b l e c h e c k _ t e m p = " t r u e " # *   D r a w   a   c l o c k   a t   t o p   o f   s c r e e n ,   f o r m a t t i n g   a c c o r d i n g   t o   s t r f t i m e ,   e m p t y   s t r i n g   t o   d i s a b l e d r a w _ c l o c k = " % X " # *   U p d a t e   m a i n   u i   w h e n   m e n u s   a r e   s h o w i n g ,   s e t   t h i s   t o   f a l s e   i f   t h e   m e n u s   i s   f l i c k e r i n g   t o o   m u c h   f o r   c o m f o r t b a c k g r o u n d _ u p d a t e = " t r u e " # *   C u s t o m   c p u   m o d e l   n a m e ,   e m p t y   s t r i n g   t o   d i s a b l e c u s t o m _ c p u _ n a m e = " " # *   E n a b l e   e r r o r   l o g g i n g   t o   " $ H O M E / . c o n f i g / b a s h t o p / e r r o r . l o g " ,   " t r u e "   o r   " f a l s e " e r r o r _ l o g g i n g = " t r u e " # *   S h o w   c o l o r   g r a d i e n t   i n   p r o c e s s   l i s t ,   " t r u e "   o r   " f a l s e " p r o c _ g r a d i e n t = " t r u e " # *   I f   p r o c e s s   c p u   u s a g e   s h o u l d   b e   o f   t h e   c o r e   i t ' s   r u n n i n g   o n   o r   u s a g e   o f   t h e   t o t a l   a v a i l a b l e   c p u   p o w e r p r o c _ p e r _ c o r e = " f a l s e " # *   O p t i o n a l   f i l t e r   f o r   s h o w n   d i s k s ,   s h o u l d   b e   n a m e s   o f   m o u n t p o i n t s ,   " r o o t "   r e p l a c e s   " / " ,   s e p a r a t e   m u l t i p l e   v a l u e s   w i t h   s p a c e d i s k s _ f i l t e r = " " # *   E n a b l e   c h e c k   f o r   n e w   v e r s i o n   f r o m   g i t h u b . c o m / a r i s t o c r a t o s / b a s h t o p   a t   s t a r t u p d a t e _ c h e c k = " t r u e " # *   E n a b l e   g r a p h s   w i t h   d o u b l e   t h e   h o r i z o n t a l   r e s o l u t i o n ,   i n c r e a s e s   c p u   u s a g e h i r e s _ g r a p h s = " f a l s e " # *   E n a b l e   t h e   u s e   o f   p s u t i l   p y t h o n 3   m o d u l e   f o r   d a t a   c o l l e c t i o n ,   d e f a u l t   o n   O S X u s e _ p s u t i l = " t r u e "
B a s h t o p h t t p s : / / g i t h u b . c o m / a r i s t o c r a t o s / b a s h t o p

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则