Reset a screen
Answer:
To reset a screen when clear does not work, use reset
# reset
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
“Device is busy” when umounting
Answer:
Sometimes when you want to unmount a filesystem, error of "Device is busy" will appear.
To solve this:
1. Find out who is using the mount point
# fuser /mnt/cdrom
2. Force to kill it
# fuser -k /mnt/cdrom
How to mount an ISO file in Linux
Answer:
1. Create the mount point
# mkdir -p /mnt/mdf
2. Mount the mdf file using the mount command
# mount -o loop -t iso9660 dvd.mdf /mnt/mdf
How to search man pages by keyword
Answer:
Sometimes, you want to search for all commands related to mysql, for example
You can use the following command
# man -k mysql
Bundle::DBD::mysql (3pm) - A bundle to install Perl drivers for MySQL
DBD::mysql (3pm) - MySQL driver for the Perl5 Database Interface (DBI)
DBD::mysql::INSTALL (3pm) - How to install and configure DBD::mysql
innotop (1) - MySQL and InnoDB transaction/status monitor.
msql2mysql (1) - convert mSQL programs for use with MySQL
mysql (1) - the MySQL command-line tool
mysql_client_test (1) - test client API
mysql_client_test_embedded (1) - test client API for embedded server
mysql_config (1) - get compile options for compiling clients
...
All the related man pages will be shown.
Synchronize data on disk with memory
Answer:
sync flush data buffered in memory (e.g. delayed reads/writes) out to disk by executing the sync(2) system call.
# sync
Some people like to execute multiple sync commands before reboot (But in fact it is not needed in most modern Linux distributions)
# sync; sync; sync; reboot