Some LINUX advanced command notes-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. mount command
To use peripherals, insert the peripherals and then execute the mount command.
In RedHat, he will mount the peripherals to/dev,
For example, the disc is automatically mounted to/dev/cdrom /.
You can specify that you want to add the mounted peripherals to the mount point.
Mount <Default mount point> <Target mount point>
Mount/dev/cdrom/mnt/cdrom to mount your peripherals.
2. Run umount to uninstall peripherals.
If you do not need to use mounted peripherals, you can use this command to complete the operation. Remember to unmount the peripherals before pulling them out.
Umount/mnt/cdrom this is the disk mount point
Umount/mnt/... other peripherals
3. Run the program in the background
Sometimes a user's program may take a long time. If you put it on the foreground and run it, you will not be able to continue to do other things. The best way is to run it on the background, you can also use
1) run the program &, bg command in the background
<Command> &
Updatedb & update data in the background
Direct bg
2) The fg command of the program running on the foreground
If you already have a program running in the background, enter the fg command to move it from the background to the foreground.
3) The nohup command for the program to continue running after exiting
This command causes the program to continue running after the user exits the system
For example, nobup myserver &
Then you can exit. When you log on again, you can run the ps-aux command to see that the program is still running in the background.
4. Service Running commands
Services are mainly used to enable and view some network services.
Service <Service name> Status/restart
View the chkconfig -- list service
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service