2016-2-3 Linux Basic Learning 9

Source: Internet
Author: User

umask: Masking code
Files: 666-umask
Catalog: 777-umask

View Current user masking code: Umask
Set Mask CodeUmask Count
(after exiting the current user, log in again and restore the original mask code)

The administrator's Mask code is 022, the file created by default permission is 644, the directory permission created is 755
The user's mask code is 002, the file created by default permission is 664, the directory permission created is 775

The file cannot have Execute permission by default, and if the result has Execute permission, it will add 1
If the result is negative, there is no permission---

In terms of user login,type of Shell:
log-in Shell:
Log in normally via a terminal
Su-username
Su-1 USERNAME
non-sign-on Shell:
Su USERNAME
Open Command Window under graphics terminal
Self-executing shell footsteps

BASH: script interpreter
Bash's configuration file:
Global Configuration
/etc/profile,/etc/profile.d/*.sh,/ETC/BASHRC
Personal Configuration(Final failure)
~/.bash_profile, ~/.BASHRC

Profile class file
Setting environment variables
Run Commands or footsteps

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7A/B4/wKioL1aw3luzGfvgAAA9YCN6N78827.gif "style=" float: none; "title=" Test2.gif "alt=" Wkiol1aw3luzgfvgaaa9ycn6n78827.gif "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/B4/wKioL1aw3luwBLmqAAAp8P8s3G0907.gif "style=" float: none; "title=" Test2-1.gif "alt=" Wkiol1aw3luwblmqaaap8p8s3g0907.gif "/>



BASHRC class file
Setting Local Variables
Defining command aliases
1

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/B4/wKioL1aw3nSDOk1FAAAlYwxQrtY321.gif "style=" float: none; "title=" Test1.gif "alt=" Wkiol1aw3nsdok1faaalywxqrty321.gif "/>

2

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/B5/wKiom1aw3ibDjwMzAAAlCfE0Ysw876.gif "style=" float: none; "title=" Test1-2.gif "alt=" Wkiom1aw3ibdjwmzaaalcfe0ysw876.gif "/>

3

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/B5/wKiom1aw3ibjNy2sAAAgDhvAvX0793.gif "style=" float: none; "title=" Test1-3.gif "alt=" Wkiom1aw3ibjny2saaagdhvavx0793.gif "/>


How does the login shell read the configuration file?
/etc/profile--/etc/profile.d/*--and/.bash_profile--~/.BASHRC--/ETC/BASHRC

How does a non-logon shell read a configuration file?
~/.BASHRC--/ETC/BASHRC-/etc/profile.d/*

This article is from the "11160930" blog, please be sure to keep this source http://11170930.blog.51cto.com/11160930/1740823

2016-2-3 Linux Basic Learning 9

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.