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
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
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
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
Display the top 10 processes ranked by memory usage
Answer:
You can display the top 10 processes, ranked by memory usage.
# ps aux | sort -nk +4 | tail
How to create an empty file in Linux
Answer:
A simple touch command will create an empty file for you.
# touch test.txt
Network connectivity testing using ping command
Answer:
To test the network connection between your server and other place, such as google.com, you can use the ping command
# ping google.com
PING google.com (64.233.189.103) 56(84) bytes of data.
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103)..
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103)..
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103)..
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103)..
.
.
.
Successful connection will return something similar to the above