首页 > 其他分享 >/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用

/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用

时间:2022-11-08 17:35:22浏览次数:72  
标签:profile 文件 etc 用户 bashrc bash

/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.
并从/etc/profile.d目录的配置文件中搜集shell的设置.可以认为系统环境变量.

~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,
当用户登录时,该 文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件.

标签:profile,文件,etc,用户,bashrc,bash
From: https://www.cnblogs.com/pansidong/p/16870475.html

相关文章

  • 【Leetcode】 剑指offer:链表(简单)--Day02
    剑指Offer06.从尾到头打印链表可借助栈。或先遍历列表得到元素数,开辟数组空间倒序填入。剑指Offer24.反转链表可借助栈:classSolution{publicListNodere......
  • .NetCore 接口接收图片文件并保存
    本文实例环境及版本.NetCore3.1publicIActionResultUploadFile([FromForm]IFormCollectionformCollection){if(formCollection==nu......
  • Leetcode第1684题:统计一致字符串的数目(Count the number of consistent strings)
    解题思路采用位运算的思路不太好理解。但思想就是根据allowed建立一个\(mask\),遍历words中的每个元素的每个字符c,查看\(mask\)的值是否为真。如果存在就返回结果加一。......
  • leetcode 541. 反转字符串 II
    题目给定一个字符串s和一个整数k,从字符串开头算起,每计数至2k个字符,就反转这2k字符中的前k个字符。如果剩余字符少于k个,则将剩余字符全部反转。如果剩余字符......
  • [LeetCode] 1544. Make The String Great
    Givenastring s ofloweranduppercaseEnglishletters.Agoodstringisastringwhichdoesn'thave twoadjacentcharacters s[i] and s[i+1] where:......
  • 问题_libpng warning: iCCP: known incorrect sRGB profile
     ​​https://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile​​ 报错原因: Libpng-1.6检查ICC配置要比之前版本严格。解决......
  • leetcode 35. 搜索插入位置 js 实现
    给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。请必须使用时间复杂度为 O(logn) 的算法。......
  • [LeetCode] 1323. Maximum 69 Number
    Youaregivenapositiveinteger num consistingonlyofdigits 6 and 9.Return themaximumnumberyoucangetbychanging atmost onedigit(6 becomes......
  • leetcode 300. 最长递增子序列 js 动态规划实现
    给你一个整数数组nums,找到其中最长严格递增子序列的长度。子序列是由数组派生而来的序列,删除(或不删除)数组中的元素而不改变其余元素的顺序。例如,[3,6,2,7]是数组[0......
  • LeetCode刷题记录.Day8
    两个数组的交集链接349.两个数组的交集-力扣(LeetCode)classSolution{public:vector<int>intersection(vector<int>&nums1,vector<int>&nums2){......