Skip to main content

Linux command: htop

htop on Fedora Workstation

[tuyen@g73jh ~]$ htop
bash: htop: command not found...
Similar command is: 'top'
[tuyen@g73jh ~]$ sudo dnf install -y htop
[sudo] password for tuyen: 
Last metadata expiration check: 0:17:29 ago on Sat 16 Nov 2019 05:16:43 PM +07.
Dependencies resolved.
================================================================================
 Package        Architecture     Version                 Repository        Size
================================================================================
Installing:
 htop           x86_64           2.2.0-4.fc30            fedora           103 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 103 k
Installed size: 335 k
Downloading Packages:
htop-2.2.0-4.fc30.x86_64.rpm                     50 kB/s | 103 kB     00:02    
--------------------------------------------------------------------------------
Total                                            28 kB/s | 103 kB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : htop-2.2.0-4.fc30.x86_64                               1/1 
  Running scriptlet: htop-2.2.0-4.fc30.x86_64                               1/1 
  Verifying        : htop-2.2.0-4.fc30.x86_64                               1/1 

Installed:
  htop-2.2.0-4.fc30.x86_64                                                      

Complete!
[tuyen@g73jh ~]$ htop

Popular posts from this blog

Powershell: Enable Firewall Log

We sometimes need to enable Windows firewall's log to troubleshoot. Here is how.

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

MySQL: Notes

Ways to check MySQL version mysql --version mysql -V dpkg -l 'mysql-sever' mysql -u root -p How to check MySQL version: mysql --version Database folder On Microsoft Windows, by default, MySQL save databases in this folder: %ProgramData%\MySQL\MySQL Server 5.5\data Check databases' size SELECT table_schema AS "Database name", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Export database schema $ mysqldump -u root -p --no-data wordpress1001 > c:\backup\schema-wordpress1001.sql Enter password: **************** Create a dedicated user to backup databases Give credit to: http://www.fromdual.com/privileges-of-mysql-backup-user-for-mysqldump Create dedicated mysql user and grant privileges to run backup $ mysql -u root -p CREATE USER 'backupdb'@'localhost' IDENTIFIED BY 'passwordhere'; GRANT SELECT,SHOW VIEW,RELOAD,REPLICATION CLIENT...