Linux Startup configuration file notes

Source: Internet
Author: User
Linux Startup configuration file notes-general Linux technology-Linux technology and application information. The following is a detailed description. Public STARTUP configuration file

/Etc/bashrc contains the alias and function of the entire system (it is found that Ubuntu is/etc/bash. bashrc)
/Etc/profile contains environment parameters and startup programs of the entire system

Personal STARTUP configuration file

Determine the configuration that is unique to the user.
$ HOME/. bashrc contains user aliases and functions
$ HOME/. bash_profile contains user environment parameters and startup programs (Ubuntu is ~ /. Profile)
$ HOME/. bash_logout contains the end method when the system exits.
$ HOME/. inputrc contains major bind values and other bitwise values (Ubuntu only has/etc/inputrc by default)

The process of disabling a machine:
Reboot Linux:
Reboot [-f]
-F: if the user is not running level 0 or 6, the system cannot be shut down.
Temporarily stop running Linux:
Halt [-f]
Change the running level or synchronize disk operations:
Init [run-level] or sync
Run-level: running level

It is important to follow the correct process when shutting down the Linux system. Because Linux uses the disk cache, it does not immediately write data to the disk, but intermittent write-back. This greatly improves the performance, but also means that if the user suddenly turns off the power, the cache may retain a large amount of data, and the data on the disk may not be a complete file system that can work normally. Another reason why the power supply cannot be directly turned off is that in a multitasking system, many resources may run in the background, and sudden Power Supply Shutdown may cause heavy losses.

Command to shut down the Linux system normally:
Shutdown [-t sec] [-fhrk] time [message]
-T sec: Waiting Time
-H: stops the system.
-R: reboot the system
-F: do not perform general checks on the file system during system boot.
-K: Virtual shutdown is performed only when the system is not actually shut down.

E.g. shutdown-h now
Shutdown-h + time 'message'
It is better to wait for some time before shutting down normally. The program has the opportunity to store the cached data back to the hard disk.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.