Zhangminghui-linux Common Catalogue-2

Source: Internet
Author: User


/etc/sysconfig/i18n setting the Linux system character set

English: lang= "en_US. UTF-8 "

English: lang= "EN_CN. UTF-8 "

"You should develop the habit of using English."



Set Idle timeout time

Export tmout=10 (timeout is 10 seconds, unit is seconds, so set timeout time, only valid in this time)


Setting the time-out period to be permanently active changes ( global configuration file )

[Email protected] ~]# Vi/etc/profile


/etc/pam.d/login set the user to log in continuously, password is not correct, lock user Time


Auth Required pam_tally2.so deny=3 unlock_time=5 even_deny_root root_unlock_time=10


If you do not restrict the root user, you can write

Auth required pam_tally2.so deny=3 unlock_time=5

Even_deny_root also restricts root users;

Deny sets the maximum number of consecutive error logins for regular users and root users, and the maximum number of times to lock the user;

Unlock_time set the normal user lock, how much time after unlocking, Unit is seconds;

Root_unlock_time set the root user lock, how much time after the unlock, the unit is seconds;



~/.bash_history Command History file


Historical command History

[Email protected] ~]# history

History-c Empty Command history

history-d 5 Delete 5th command history

! 5 Executive Order History 5th

History-a Append the command history to the command history file ~/.bash_history

History-w will write the cache command history to the command history file, overwriting the commands in the original command history file .

Exit exits will write the cache command history to the command history file.


The default cache command history and the size of the command history file can hold 1000 historical commands

Histsize (histsize) Cache command History

Histfilesize (histfilesize) command history file


Sets the history of the cache command to a number of 5 bars



/etc/issue after the boot is complete, the login screen displays the version information






Zhangminghui-linux Common Catalogue-2

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.