小编Abe*_*Abe的帖子

~/.profile, ~/.bashrc, ~/.bash_profile, ~/.gnomerc, /etc/bash_bashrc, /etc/screenrc ... 有什么区别?

关于SOaskubuntu的问题的答案,以及翻阅(和阅读的标题)$HOME/etc/,指出了一些可用于设置环境变量的文件,包括:

  • ~/.profile
  • ~/.bashrc
  • ~/.bash_profile
  • ~/.gnomerc
  • ~/.Rprofile
  • /etc/bash_bashrc
  • /etc/profile
  • /etc/screenrc

/etc/为所有用户收集这些文件,而其中的文件$HOME是特定于用户的。我还收集.profile在登录.bashrc时加载而在/bin/bash执行时加载的信息。我也明白不同的程序有不同的设置文件(例如.RprofileR)。但我希望得到一些澄清:

  • *rc*profile文件本质上的区别?
  • 此类文件的范围是什么(例如,Linux 通常使用哪些文件)
  • 是否有层次结构(例如.bashrc覆盖 中设置的变量.settings
  • 此类文件有什么好的参考?对于这些文件中的选项?

相关问题

bash settings environment-variables profile bashrc

72
推荐指数
2
解决办法
6万
查看次数

“top”使用什么时间单位?

如果我发出“top”命令并收到如下结果:

PID   USER  PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND   
00001 bob   25   0 77380 1212 1200 R 95.8  0.0  89122:13 fee         
00002 bob   25   0 77380 1196 1184 R 95.4  0.0  88954:14 fi         
00003 sam   18   0  427m  16m 6308 R 30.0  0.1  54:46.43 fo         
00004 sam   18   0  427m  16m 6308 R 26.5  0.1  52:55.33 fum         
Run Code Online (Sandbox Code Playgroud)

问题: “TIME+”列中的单位是什么?

我尝试过的:(请提出一个更好的搜索文档的策略......)

  • man top | grep -C 4 time 或者
  • man top | grep <X>当我替补minute …

man top time

72
推荐指数
2
解决办法
12万
查看次数

标签 统计

bash ×1

bashrc ×1

environment-variables ×1

man ×1

profile ×1

settings ×1

time ×1

top ×1